/* ================================================= */
/* 1. Definición de Variables (Paleta y Fuentes) */
/* ================================================= */

/* ===== GLOBAL RESET ===== */

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    /* Paleta de Colores */
    --color-navy: #0D1846; 
    --color-orange: #E95623; 
    --color-blue: #406E87; 
    --color-off-white: #E3E3E3; 
    --color-texto-claro: var(--color-off-white);
    
    /* Variables de Fuentes */
    --font-titulo: 'ClashGrotesk', sans-serif;
    --font-cuerpo: 'InterTight', sans-serif;
    --font-frase: 'Caveat', cursive; /* Reservada por si usas "¡Hablemos!" en otro lado */
}

/* ================================================= */
/* 2. Carga de Tipografías (@font-face) */
/* ================================================= */
@font-face {
    font-family: 'ClashGrotesk';
    src: url('../fonts/ClashGrotesk-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'InterTight';
    src: url('../fonts/InterTight-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Caveat';
    src: url('../fonts/Caveat-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
}

/* ================================================= */
/* 3. Estilos Globales y Tipografía */
/* ================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-cuerpo);
    background-color: var(--color-off-white);
    color: var(--color-navy);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

h1, h2, h3, h4 {
    font-family: var(--font-titulo);
    color: var(--color-navy);
    margin-bottom: 0.5em;
}

/* LA FRASE: Ahora con Naranja y Clash Grotesk */
/* Localiza esta sección en tu CSS y déjala así */
/* 1. LA FRASE: Estilo manuscrito y naranja */
/* ESTA ES LA CLAVE PARA EL ESTILO MANUSCRITO */
.frase-acento { 
    /* AHORA SÍ: El nombre coincide con la variable de arriba */
    font-family: var(--font-frase) !important; 
    color: var(--color-orange) !important; 
    
    /* Ajustes para que se vea grande y clara como en la imagen */
    font-size: 4rem !important; 
    font-weight: 400; 
    line-height: 1.1;
    display: inline-block;
    padding: 10px 0;
    font-style: normal; 
    text-transform: none; /* Evita que se ponga en mayúsculas si el contenedor lo fuerza */
}

/* 2. VISIBILIDAD: Texto blanco sobre fondo Navy */
.bg-navy { 
    background-color: var(--color-navy) !important; 
    color: white !important; 
}

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5 {
    color: white !important;
}

/* 3. TARJETAS: Más "lindas" y legibles */
.target-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-top: 4px solid var(--color-orange); /* Acento superior naranja */
    transition: transform 0.3s ease;
}

.target-card h5 {
    color: var(--color-orange) !important;
    font-family: var(--font-titulo);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.target-card p {
    color: rgba(255, 255, 255, 0.9); /* Blanco suave para el párrafo */
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-wrapper {
    padding-top: 20px;
    min-height: 80vh;
}

/* ================================================= */
/* 4. Estilos de Botones (CTA) */
/* ================================================= */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    font-family: var(--font-cuerpo);
    text-transform: uppercase;
    cursor: pointer;
}
.btn-principal {
    background-color: var(--color-orange);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 18px;
    border: 1px solid #ccc;
}
.btn-principal:hover {
    background-color: #d84a1e;
    border-color: #ffffff;
}
.btn-secundario {
    background-color: var(--color-blue);
    color: white;
    border: 1px solid white;
    padding: 8px 20px;
}

/* ================================================= */
/* 5. Estilos del HEADER */
/* ================================================= */
.main-header {
    background-color: var(--color-navy);
    padding: 20px 0;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid var(--color-orange);
}

.header-container {
    width: 100%;
    max-width: none;
    padding-left: 40px;
    padding-right: 40px;
}


.logo-row {
    margin-bottom: 15px;
}

.logo {
    font-family: var(--font-titulo);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-off-white) !important;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: white !important;
    font-weight: 500;
    font-family: var(--font-cuerpo);
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-orange) !important;
}

/* ================================================= */
/* 6. Formuarios e Inputs */
/* ================================================= */
.input-container input, 
.input-container input[type="date"],
.input-container input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

input:invalid {
    border-color: #dc3545;
}

.form-group p {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================= */
/* 7. Grids y Secciones (De la versión anterior) */
/* ================================================= */
.section-spacer {
    padding: 100px 0;
    width: 100%;
}

.hero-clean {
    /* ANTES: 140px -> AHORA: 40px (Esto sube todo el contenido) */
    padding: 40px 0 80px 0; 
    text-align: left; /* Alineado a la izquierda es más corporativo */
}

/* El pequeño texto de "Eyebrow" (Laura Gómez | Consultora) */
.eyebrow {
    font-family: var(--font-cuerpo);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy); /* Naranja para conectar con la marca */
    display: block;
    margin-bottom: 15px;
}

/* NUEVO TÍTULO PROFESIONAL (Reemplaza a la frase manuscrita) */


.text-navy {
    color: var(--color-navy);
    font-weight: 700; /* Negrita sólida */
}

.text-orange-italic {
    color: var(--color-orange);
    font-weight: 400; /* Peso normal para contraste */
    font-style: italic; /* La cursiva elegante de Clash Grotesk */
}



.hero-clean h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 20px 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    overflow-x: hidden;
}

.target-card {
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-orange);
     width: 100%;
    max-width: 100%;
}

.bg-navy { 
    background-color: var(--color-navy); 
    color: var(--color-off-white) !important; /* Esto hace que el texto sea visible */
}

/* Forzamos a que los títulos dentro de fondos oscuros también sean claros */
.bg-navy h1, 
.bg-navy h2, 
.bg-navy h3, 
.bg-navy h4, 
.bg-navy h5 {
    color: var(--color-off-white) !important;
}
.bg-light { background-color: #f9f9f9; }
.bg-orange { background-color: #ff5e3a; }



/* Estilos para la sección de contacto visual */
.section-tag-white {
    font-family: var(--font-titulo); /* Clash Grotesk */
    font-size: 2.8rem;
    color: white;
    margin-bottom: 10px;
}

.contact-label {
    display: block;
    font-family: var(--font-cuerpo); /* Inter Tight */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 25px; /* Espaciado para que no esté encimado */
}

.social-circle {
    width: 65px;
    height: 65px;
    background-color: white;
    color: var(--color-orange); /* Tu naranja #E95623 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Efecto al pasar el mouse */
.social-circle:hover {
    transform: scale(1.15) translateY(-5px);
    background-color: var(--color-navy); /* Tu azul #0D1846 */
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.lead {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* EL NUEVO TÍTULO "EDITORIAL" */
.titulo-editorial {
    font-family: var(--font-titulo); /* Clash Grotesk */
    font-size: 3.8rem; /* Grande e impactante */
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-navy {
    color: var(--color-navy);
    font-weight: 700; /* Bien negrita para autoridad */
    letter-spacing: -1px; /* Las letras un poco más juntas se ven más modernas */
}

.text-orange-italic {
    color: var(--color-orange);
    font-weight: 400; /* Un poco más fina */
    font-style: italic; /* La cursiva de Clash Grotesk es MUY elegante */
}



/* Iconos naranjas en listas */
.text-orange {
    color: var(--color-orange) !important;
}

/* Bordes naranjas para las tarjetas de ejes */
.border-orange {
    border-color: var(--color-orange) !important;
}

/* Ajuste para iconos dentro de tarjetas oscuras */
.target-card i {
    font-size: 2rem;
    color: var(--color-orange);
    display: block;
}

/* Quita los puntos y el margen izquierdo de las listas */
.list-unstyled {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Estilo del Botón Salir */
.btn-salir {
    background-color: #d32f2f; /* Un rojo elegante para indicar "salir" */
    color: white;
    border: none;
    padding: 6px 15px; /* Un poco más pequeño que los botones principales */
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-salir:hover {
    background-color: #b71c1c; /* Un rojo más oscuro al pasar el mouse */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-dropdown {
    position: relative;
}

.user-btn {
    background: transparent;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-btn i {
    font-size: 0.8rem;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    left:auto;
    background-color: white;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.btn-salir-dropdown {
    width: 100%;
    padding: 10px 15px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.btn-salir-dropdown:hover {
    background-color: #e60000;
}

.dropdown-menu.show {
    display: flex;
}


.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    border: 2px solid transparent;
    background-color: #eaeaea;
    cursor: pointer;
    font-weight: bold;
}

.tab.active {
    border: 2px solid #ff6a00; /* recuadro */
    background-color: #fff;
}

.cursos {
    display: none;
}

.cursos.visible {
    display: block;
}

.container-cursos {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.contenido-cursos {
    margin-top: 30px;
}

.explorar-wrapper {
    max-width: 1200px;   /* más presencia */
    margin: 0 auto;
    padding: 0 24px;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.curso-card {
    background: white;
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.curso-imagen img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}


.curso-card h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.curso-card p {
    font-size: 1.05rem;
    color: #555;
}

.badge {
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}

.badge.gratis {
    color: var(--color-orange);
}

.badge.pago {
    color: var(--color-navy);
}
 
.curso-card-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.curso-imagen {
    width: 220px;
    height: 140px;
    flex-shrink: 0; /* evita que se achique */
}

.curso-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔑 CLAVE */
    border-radius: 10px;
    display: block;
}

.curso-info {
    flex: 1;
}

.badge-curso.pago {
    background: var(--color-orange);
    color: white;
}

.badge-curso.inscripto {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7e4c7;
    font-weight: 600;
}




.curso-card {
    position: relative; /* 🔑 CLAVE */
    background: white;
    padding: 30px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    width: 100%;
}

.badge-curso {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-curso.gratis {
    background-color: #fff3e8;
    color: var(--color-orange);
}

.badge-curso.pago {
    background-color: #e6ecff;
    color: var(--color-navy);
}

.material-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.material-item {
    margin-bottom: 12px;
}

.material-item a {
    font-weight: 600;
    color: var(--color-navy);
}

.material-item a:hover {
    color: var(--color-orange);
}

/* Imagen principal del curso (detalle) */

.curso-imagen-detalle {
    max-width: 900px;
    margin: 30px auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.curso-imagen-detalle img {
    width: 100%;
    height: 260px;       /* 👈 más chica */
    object-fit: cover;
}
/* ================= MATERIALES ================= */

.materiales-section {
    max-width: 900px;
    margin: 50px auto;
}

.materiales-section h2 {
    font-family: var(--font-titulo);
    margin-bottom: 20px;
    color: var(--color-navy);
}

.materiales-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.material-item {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.material-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.material-icon {
    font-size: 1.4rem;
}

.material-titulo {
    font-weight: 600;
    color: var(--color-navy);
}

/* Botón descargar */
.btn-material {
    background-color: var(--color-orange);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-material:hover {
    background-color: #0D1846;
}

/* Encabezado del curso */
.curso-header {
    max-width: 900px;
    margin: 40px auto 20px;
}

.curso-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.curso-header p {
    font-size: 1.1rem;
    color: #444;
    max-width: 700px;
}

.separador-suave {
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 40px auto;
    max-width: 900px;
}

.btn-volver {
    display: inline-block;
    margin: 20px auto 0;
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: none;
}

.btn-volver:hover {
    text-decoration: underline;
}

.material-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
}



.volver-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-material {
    background-color: var(--color-orange);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-material:hover {
    background-color: var(--color-navy);
    transform: translateY(-2px);
}

.material-vacio {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #555;
    font-weight: 600;
}

.material-acciones {
    display: flex;
    gap: 10px;
}

.btn-ver {
    background-color: var(--color-blue);
}

.btn-ver:hover {
    background-color: var(--color-navy);
}

.material-bloqueado {
    padding: 8px 14px;
    background-color: #f2f2f2;
    color: #999;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: not-allowed;
}

/* ================= ACCIONES CURSO (BOTONES) ================= */

.acciones-curso {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* Asegura que los botones se vean bien juntos */
.acciones-curso .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
}

/* Botón "Ya inscripto" */
.acciones-curso button[disabled] {
    background-color: #e0e0e0;
    color: #777;
    cursor: not-allowed;
    border: none;
}

/* Botón secundario dentro de cards blancas */
.curso-card .btn-secundario {
    background-color: var(--color-orange);
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.curso-card .btn-secundario:hover {
    background-color: var(--color-blue);
    color: var(--color-orange);
}


/* Botón informativo: YA INSCRIPTO */
.btn-inscripto {
    background-color: #e0e0e0;     /* gris claro */
    color: #777;                  /* texto apagado */
    border: 1px solid #ccc;
    cursor: default;
    opacity: 0.9;
}

/* Evita cualquier efecto hover */
.btn-inscripto:hover {
    background-color: #e0e0e0;
    color: #777;
}

/* ================= PANEL ADMIN ================= */

.panel-layout {
    display: flex;
    min-height: 100vh;
}

.panel-sidebar {
    width: 260px;
    background-color: var(--color-navy);
    color: white;
    padding: 30px 20px;
}

.panel-logo {
    font-family: var(--font-titulo);
    font-size: 1.6rem;
    margin-bottom: 40px;
    color: white;
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.panel-nav a {
    color: white;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.3s;
}

.panel-nav a:hover {
    background-color: rgba(255,255,255,0.15);
}

.panel-logout {
    margin-top: 30px;
    background-color: var(--color-orange);
    text-align: center;
}

/* CONTENIDO */
.panel-content {
    flex: 1;
    padding: 40px;
    background-color: #f5f5f5;
}


.panel-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: white;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.25s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card h3 {
    font-size: 2.5rem;
    color: var(--color-orange);
    margin-bottom: 10px;
}

.dashboard-card p {
    font-weight: 600;
    color: var(--color-navy);
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.panel-table th,
.panel-table td {
    padding: 14px 16px;
    text-align: left;
}

.panel-table thead {
    background-color: var(--color-navy);
    color: white;
}

.panel-table tr:nth-child(even) {
    background-color: #f7f7f7;
}

.estado {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

.estado.activo {
    background: #e6f7ee;
    color: #1b7f4b;
}

.estado.inactivo {
    background: #fdeaea;
    color: #b71c1c;
}

.btn-sm {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #eaeaea;
    margin-right: 6px;
}

.btn-danger {
    background: #ffdddd;
    color: #b71c1c;
}

.panel-form {
    max-width: 700px;
    margin: 0 auto;        /* 🔑 ESTO LO CENTRA */
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
}

.input,
.panel-form input,
.panel-form textarea,
.panel-form select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;   /* 👈 separación con la tabla */
}

.panel-title {
    margin: 0;
}

/* Opcional: que el botón se vea más "importante" */
.panel-header .btn {
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* Radios de tipo de curso */
.form-group input[type="radio"] {
    margin-right: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.dropdown-menu a.panel-link {
    font-weight: 700;
    color: var(--color-orange);
}

/* Quitar espacio superior SOLO en panel */
.panel-page .content-wrapper {
    padding-top: 0;
}

.panel-box {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.panel-box h3 {
    margin-bottom: 20px;
    color: var(--color-navy);
}

.form-row {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.material-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.add-material-wrapper {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
}

.btn-add-material {
    background: none;
    border: none;
    color: #2e7d32;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-add-material:hover {
    text-decoration: underline;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    margin: 0;
}


/* ===== Alineación correcta checkbox materiales ===== */
.material-visible {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.material-visible input[type="checkbox"] {
    margin: 0;
}

.material-visible label {
    display: inline;
    margin: 0;
    font-weight: 600;
}

/* ===== FIX REAL checkbox materiales ===== */
.material-visible input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
}

.estado-curso {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* Switch base */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

/* Oculta checkbox real */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 30px;
}

/* Botón */
.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

/* Activo */
.switch input:checked + .slider {
    background-color: var(--color-orange);
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

.estado-texto {
    font-weight: 600;
    color: var(--color-navy);
}

.material-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

/* Visible */
.material-visible {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Eliminar */
.material-eliminar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c62828;
    font-weight: 600;
}

.material-eliminar input[type="checkbox"] {
    accent-color: #c62828;
}

/* =============================== */
/* HEADER - REGLAS ÚNICAS */
/* =============================== */

/* Público: header centrado */
body:not(.panel-page) .header-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 40px;
    padding-right: 40px;
}

/* Panel: header full width */
body.panel-page .header-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 40px;
    padding-right: 40px;
}

.btn-material {
    border: none;
    outline: none;
    box-shadow: none;
}

.btn-material:focus,
.btn-material:active {
    outline: none;
    box-shadow: none;
}


/* ================= MATERIAL ITEM ================= */

.material-item {
    display: flex;
    align-items: center;               /* 🔑 centra vertical */
    justify-content: space-between;
    border: none;
    box-shadow: none;
    transition: all 0.25s ease;
}

.material-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* ================= INFO ================= */

.material-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* ================= ACCIONES ================= */

.material-acciones {
    display: flex;
    align-items: center;               /* 🔑 botón centrado */
}

/* ================= BOTÓN ================= */

.btn-material {
    border: none;
    outline: none;
    box-shadow: none;
}

/* ================= FIX DEFINITIVO MATERIAL ================= */

.material-item {
    display: flex;
    align-items: center;              /* 🔑 centrado vertical REAL */
    justify-content: space-between;
}

/* Quitamos cualquier línea heredada */
.material-acciones {
    display: flex;
    align-items: center;              /* 🔑 botón centrado */
    border: none !important;
    border-top: none !important;      /* 🔥 mata la línea */
    margin: 0 !important;
    padding: 0 !important;
}

/* Por las dudas */
.material-item * {
    border-top: none !important;
}

/* ===================== */
/* TABS CURSOS – PRO */
/* ===================== */

.tabs {
    display: inline-flex;
    background: #e6e6e6;
    border-radius: 14px;
    padding: 6px;
    gap: 6px;
}

/* Base */
.tab {
    border: none;
    background: transparent;
    padding: 10px 22px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-cuerpo);
    transition: all 0.25s ease;
}

/* 🔹 INACTIVO */
.tab:not(.active) {
    color: #f7f7f7;                /* gris azulado elegante */
    background-color: var(--color-blue);
}

/* Hover sobre inactivo */
.tab:not(.active):hover {
    background-color: rgba(13, 24, 70, 0.08); /* navy suave */
    color: var(--color-navy);
}

/* 🟧 ACTIVO */
.tab.active {
    background-color: white;
    color: var(--color-orange);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.panel-messages {
    margin: 20px 0;
}

.panel-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.panel-alert.success {
    background-color: #e6f7ee;
    color: #1b7f4b;
    border-left: 5px solid #1b7f4b;
}

/* ================== LAYOUT CURSOS ================== */

.cursos-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 40px;
}

/* PANEL FILTROS */
.filtros-panel {
    width: 260px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.filtros-panel h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* BLOQUES */
.filtro-bloque {
    margin-bottom: 18px;
}

.filtro-bloque label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.filtro-bloque input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* CONTENIDO */
.cursos-contenido {
    flex: 1;
}

/* BOTÓN LIMPIAR */
.btn-limpiar {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #f0f0f0;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* ================== MOBILE ================== */

.btn-filtros-mobile {
    display: none;
    margin-bottom: 20px;
}



.mensaje-vacio {
    margin-top: 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    font-weight: 600;
}

/* ================= CHECKOUT ================= */

.checkout-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    background: #f4f5f7;
}

.checkout-card {
    background: #ffffff;
    width: 100%;
    max-width: 720px;
    border-radius: 16px;
    padding: 32px 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Títulos */
.checkout-card h2 {
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 700;
}

/* Secciones */
.checkout-section {
    margin-bottom: 28px;
}

.checkout-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Curso */
.curso-resumen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fb;
    padding: 16px 20px;
    border-radius: 12px;
}

.curso-precio {
    font-weight: 700;
    font-size: 18px;
    color: #ff6a00;
}

/* Datos alumno */
.datos-alumno p {
    margin: 4px 0;
    color: #333;
}

/* Form */
.checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.checkout-form input[type="file"] {
    margin-bottom: 20px;
}

/* Botón */
.checkout-form button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #ff6a00;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.checkout-form button:hover {
    background: #e85c00;
}

/* ================= CHECKOUT PAGE FIX ================= */

body.checkout-page {
    background: #f4f5f7;
}

body.checkout-page .content-wrapper {
    padding-top: 0;
    min-height: auto;
}

body.checkout-page .main-header {
    box-shadow: none;
    border-bottom: none;
}

.checkout-hint {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.checkout-form input[type="file"] {
    font-size: 14px;
}

.badge-curso {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}


.badge-curso.pendiente {
    background-color: #fff3cd;
    color: #856404;
    font-size: 0.85rem;
}

.panel-alert.clickable {
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.panel-alert.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* 🔔 NOTIFICACIONES HEADER */

.notif-dropdown {
    position: relative; /* 🔥 CLAVE ABSOLUTA */
    display: flex;
    align-items: center;
}


.notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: white;
}

.notif-btn i {
    font-size: 1.15rem;
    line-height: 1;
}

/* Badge */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--color-orange);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Dropdown */
.notif-menu {
    position: absolute;
    top: 38px;          /* más controlado que 130% */
    right: 0;
    background: white;
    min-width: 240px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    z-index: 2000;
}

.notif-menu.show {
    display: block;
}

.notif-menu a {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
}

.notif-menu a:hover {
    background: #f5f5f5;
}

.notif-empty {
    padding: 12px 16px;
    color: #777;
    font-weight: 600;
}

/* ===== HEADER FIX DEFINITIVO ===== */

.auth-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-btn,
.notif-btn {
    line-height: 1;
    height: 32px;
    display: flex;
    align-items: center;
}

.notif-btn {
    color: white;
    transition: color 0.25s ease;
}

.notif-btn.has-alert {
    color: var(--color-orange);
}

.notif-item {
    display: block;
    padding: 12px 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* 🟧 NOTIFICACIÓN NUEVA */
.notif-item.nueva {
    background: #fff3e8;
    color: var(--color-orange);
}

/* Puntito visual */
.notif-item.nueva::before {
    content: "●";
    color: var(--color-orange);
    margin-right: 8px;
    font-size: 0.7rem;
}

.notif-fecha {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.notif-item:hover {
    background: #f5f5f5;
}

.notif-menu {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.2s ease;
}

.notif-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    align-items: flex-start;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.notif-item small {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* 🆕 NUEVAS */
.notif-item.nueva {
    background: #fff7f2;
}

.notif-item.nueva:hover {
    background: #ffe7db;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--color-orange);
    border-radius: 50%;
    margin-top: 6px;
}

.notif-nueva {
    background-color: #fff3e0;
    font-weight: 700;
    border-left: 4px solid var(--color-orange);
}

/* ================= COMPROBANTE – PANEL PAGOS ================= */

.comprobante-cell {
    text-align: center;
}

.comprobante-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
}

/* Botones chicos y prolijos */
.comprobante-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
    line-height: 1;
}

/* Estilo outline real */
.btn-outline {
    background-color: var(--color-orange);
    border: 1px solid #d0d0d0;
    color: var(--color-off-white);
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

/* ================= HERO FINAL ================= */

.hero-clean {
    background-color: #e9e9e9;
    padding: 60px 0;
}

/* Usamos container normal */
.hero-clean .container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Grid flexible */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    gap: 80px;
}

/* Texto */
.hero-text {
    max-width: 640px;
    text-align: left;
}

/* Imagen 
.hero-image {
    display: flex;
    justify-content: flex-start;
}

.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}*/

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px; /* ajustable */
    overflow: hidden;
    border-radius: 24px;
}
.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 CLAVE */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch; /* 🔑 */
}


/* ===== RESPONSIVE ===== */
/* ================= TICKER INFINITO REAL ================= */

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #a9c4c5;
    padding: 10px 0;
}

.ticker {
    display: flex;
    width: max-content;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.ticker span {
    font-family: var(--font-titulo);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 22px;
}

/* Separador */
.ticker .sep {
    color: var(--color-orange);
    font-weight: 900;
    margin: 0 6px;
}

/* 🔁 LOOP PERFECTO */
@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

.respuesta-card {
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.badge-admin {
    background: #E95623;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

.respuesta-dirigida {
    color: #406E87;
    font-size: 0.8rem;
    margin-left: 6px;
}

.btn-responder {
    background: none;
    border: none;
    color: #406E87;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 6px;
}

.respuesta-inline {
    margin-top: 10px;
}

.respuesta-inline textarea {
    width: 100%;
    border-radius: 8px;
    padding: 8px;
}

.respuesta-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.respuesta-hija {
    margin-top: 12px;
    margin-left: 40px;
    padding-left: 16px;
    border-left: 3px solid #ff6a00;
    background: #f9f9f9;
    border-radius: 8px;
}

.respuesta-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

/* Sangría progresiva */
.nivel-1 { margin-left: 40px; }
.nivel-2 { margin-left: 80px; }
.nivel-3 { margin-left: 120px; }

.respuesta-card {
    border-left: 3px solid #ff6a00;
}

.respuesta-inline {
    margin-top: 10px;
}

.btn-editar {
    background: transparent;
    color: #406E87;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
}

.editar-inline textarea {
    width: 100%;
    margin-top: 8px;
}

/* ================= RESPUESTAS FORO ================= */

.respuesta-card {
    background: white;
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    position: relative;
}

/* Sangría por nivel (hilo) */
.respuesta-card.nivel-1 { margin-left: 30px; }
.respuesta-card.nivel-2 { margin-left: 60px; }
.respuesta-card.nivel-3 { margin-left: 90px; }

/* ===== DOCENTE ===== */
.respuesta-card:has(.badge-admin) {
    background: #fff7f2;
    border-left: 5px solid var(--color-orange);
}

/* Badge docente */
.badge-admin {
    background: var(--color-orange);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
}

.respuesta-editada {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
}

/* ================== TEMA PRINCIPAL ================== */

.tema-principal {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-left: 6px solid var(--color-orange);
}

.tema-titulo {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.tema-contenido {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 16px;
    line-height: 1.6;
}

.tema-meta {
    font-size: 0.8rem;
    color: #777;
}

.btn-danger {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.tema-card {
    position: relative;
}

.tema-acciones {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.icon-btn.edit:hover {
    background: #e3f2fd;
}

.icon-btn.delete:hover {
    background: #fdecea;
}

.respuesta-editada {
    font-size: 0.75rem;
    color: #888;
    margin-left: 6px;
}

.tema-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
    margin-bottom: 40px;
}

.tema-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #0b1b3a;
    margin-bottom: 10px;
}

.tema-contenido {
    font-size: 16px;
    color: #333;
    margin: 15px 0;
}

.tema-meta {
    font-size: 13px;
    color: #777;
}

.responder-tema {
    margin-bottom: 40px;
}

.responder-tema textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 12px;
    resize: vertical;
    margin-bottom: 10px;
}

.respuesta-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.respuesta-card.nivel-1 {
    margin-left: 40px;
    border-left: 4px solid #ff7a00;
    background: #fff7f0;
}

.respuesta-card.nivel-2 {
    margin-left: 80px;
    border-left: 4px solid #ffb980;
}

.btn-responder-tema {
    margin-top: 15px;
    background: transparent;
    color: #f25c2a;
    border: 1px solid #f25c2a;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-responder-tema:hover {
    background: #f25c2a;
    color: white;
}

.respuesta-tema-form {
    margin-top: 15px;
}

.respuesta-tema-form textarea {
    width: 100%;
    resize: vertical;
}


.tema-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(180deg, #ff6b2c, #ff9a6b);
    border-radius: 18px 0 0 18px;
}

.tema-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #0c1b3a;
    margin-bottom: 10px;
}

.tema-meta {
    font-size: 14px;
    color: #777;
}

.tema-acciones {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.icon-btn.delete {
    color: #e63946;
}

.icon-btn.edit {
    color: #457b9d;
}

.btn-responder-tema {
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #ff6b2c;
    background: var(--color-navy);
    color: #ff6b2c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-responder-tema:hover {
    background: #ff6b2c;
    color: #fff;
}

/* CARD GENERAL */
.foro-wrapper {
    background: var(--color-blue);   /* navy */
    padding: 32px;
    border-radius: 24px;
}

/* CARD DEL TEMA */
.tema-card {
    background: var(--color-off-white);   /* azul distinto */
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 30px;
    color: white;
}

/* RESPUESTAS */
.respuestas-wrapper {
    background: transparent;
}

.foro-titulo {
    color: #fffefe;           /* blanco */
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}

.foro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.foro-title {
    font-size: 32px;
    font-weight: 800;
    color: #0c1b3a;
}

.btn-nuevo-tema {
    background: #ff6b2c;
    color: white;
    padding: 10px 18px;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.btn-nuevo-tema:hover {
    background: #e85a1f;
    transform: translateY(-1px);
}

.foro-tema-card {
    background: white;
    border-radius: 18px;
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.foro-tema-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.foro-tema-titulo {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0c1b3a;
}

.foro-tema-meta {
    font-size: 14px;
    color: #666;
}

.btn-ver-debate {
    background: #ff6b2c;
    color: white;
    padding: 10px 20px;
    border-radius: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    white-space: nowrap;
}

.btn-ver-debate:hover {
    background: #e85a1f;
    transform: translateY(-1px);
}

/* CARD CREAR TEMA */
.crear-tema-card {
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* TITULOS */
.crear-tema-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #0c1b3a;
    margin-bottom: 6px;
}

.crear-tema-subtitulo {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

/* FORM */
.crear-tema-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.crear-tema-form label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0c1b3a;
}

.crear-tema-form input,
.crear-tema-form textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.crear-tema-form input:focus,
.crear-tema-form textarea:focus {
    outline: none;
    border-color: #ff6b2c;
    box-shadow: 0 0 0 2px rgba(255, 107, 44, 0.15);
}

/* BOTON */
.form-actions {
    margin-top: 30px;
}

.form-actions .btn {
    padding: 12px 26px;
    font-size: 15px;
}

.btn-secundario {
    padding: 12px 26px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: var(--color-blue);
    color: #555;
    margin-right: 10px;
}

/* CARD */
.crear-tema-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* TITULOS */
.crear-tema-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #0c1b3a;
    margin-bottom: 6px;
}

.crear-tema-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 26px;
}

/* FORM */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #0c1b3a;
}

.form-group input,
.form-group textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b2c;
}

/* ACCIONES */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.btn-secundario {
    padding: 10px 22px;
    border-radius: 18px;
    border: 1px solid #ccc;
    background: var(--color-blue);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.foro-tema-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.foro-tema-info h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #0c1b3a;
}

.foro-tema-info small {
    color: #777;
    font-size: 13px;
}

.foro-tema-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}

.icon-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.icon-btn.edit {
    color: #457b9d;
}

.icon-btn.delete {
    color: #e63946;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.testimonio-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: left;
}

.testimonio-texto {
    font-style: italic;
    color: #333;
    margin-bottom: 12px;
}

.testimonio-autor {
    font-weight: 600;
    color: #0c1b3a;
    font-size: 14px;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
}

.panel-table thead th {
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #f8f8f8;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.panel-table tbody tr:last-child td {
    border-bottom: none;
}

.contenido-testimonio {
    color: #555;
    line-height: 1.5;
    max-width: 420px;
}

.btn-approve {
    background: #22c55e;
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-approve:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #777;
    font-style: italic;
}

.testimonio-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.testimonio-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 14px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.testimonio-form textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255,120,60,0.15);
}

.testimonio-form button {
    display: block;
    margin-left: auto;
}

/* -------------------------------------*/

.testimonios-section {
    margin-top: 80px;
}

.testimonios-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 40px;
    position: relative;
}

.testimonios-section h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--color-orange);
    display: block;
    margin-top: 12px;
    border-radius: 2px;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.testimonio-card {
    background: var(--color-blue);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.testimonio-card {
    transition: box-shadow 0.25s ease, filter 0.25s ease;
}

.testimonio-card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    filter: brightness(1.03);
    transform: scale(1.01);
    .swiper-slide {
    padding-top: 6px;}
}


.testimonio-card::before {
    content: "“";
    font-size: 4rem;
    color: var(--color-orange);
    position: absolute;
    top: -5px;
    left: 6px;
    opacity: 1.45;
    font-family: serif;
    background: none;          /* 🔑 CLAVE */
    z-index: 0;                /* 🔑 CLAVE */
    pointer-events: none;
}

.testimonio-texto {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonio-autor {
    font-weight: 600;
    color: var(--color-navy);
    display: block;
    text-align: right;
}

.btn-testimonio-wrapper {
    text-align: center;
    margin-top: 40px;
}

.testimonio-card > * {
    position: relative;
    z-index: 1;                /* texto arriba */
}



.swiper-slide {
    height: auto;
}



.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

/* Contenedor del slider */
.testimonios-slider {
    position: relative;
    padding: 20px 90px; /* espacio lateral para flechas */
}

/* Flechas */
.swiper-button-prev,
.swiper-button-next {
    color: var(--color-orange);
    width: 40px;
    height: 40px;
}

/* Izquierda */
.swiper-button-prev {
    left: 0;
}

/* Derecha */
.swiper-button-next {
    right: 0;
}

.swiper-button-prev,
.swiper-button-next {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* === CONTENEDOR DEL SLIDER === */
.testimonios-slider {
    position: relative;
    padding: 20px 120px; /* espacio real para flechas */
}

/* === SLIDES === */
.swiper-slide {
    height: auto;
}



/* === FORM RESPUESTA === */
.form-respuesta {
    margin-top: 15px;
}

/* === TEXTAREA === */
.respuesta-textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;

    border-radius: 12px;
    border: 1.5px solid #d6d6d6;
    background: #fff;

    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;

    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.respuesta-textarea::placeholder {
    color: #999;
}

/* Focus elegante */
.respuesta-textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 120, 60, 0.18);
}

/* Botón alineado */
.form-respuesta button {
    margin-top: 10px;
}

.tema-contenido a {
    color: #ff6a00;
    font-weight: 500;
    text-decoration: underline;
}

.tema-contenido a:hover {
    text-decoration: none;
}

.curso-descripcion a {
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
}

.curso-descripcion a:hover {
    color: #e0551c;
    text-decoration: none;
}

.curso-info p a {
    color: var(--color-orange);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
}

.curso-info p a:hover {
    color: #e0551c;
    text-decoration: none;
}

.btn-delete {
    background: #dc3545;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #b02a37;
}

.perfil-card {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fafafa 100%
    );
    position: relative;
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.6) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.perfil-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 4px;
    background: linear-gradient(
        to bottom,
        #ff6a2a,
        #ff9a6a
    );
    border-radius: 4px;
}

.perfil-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.perfil-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.perfil-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0b1f44;
}

.perfil-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        #eee,
        transparent
    );
    margin-left: 16px;
}

.perfil-dato {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.perfil-dato:last-child {
    border-bottom: none;
}

.perfil-dato strong {
    color: #0b1f44;
    font-weight: 600;
}

.perfil-dato span {
    color: #444;
}


.perfil-item {
    margin-bottom: 12px;
    font-size: 1.05rem;
}



.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.perfil-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 30px;
}


.perfil-separador {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #ddd,
        transparent
    );
    margin: 28px 0;
}

.btn-editar-perfil {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #0b1f44;
    transition: all 0.25s ease;
}

.btn-editar-perfil:hover {
    background: #f6f8ff;
    border-color: #cfd8ff;
    transform: translateY(-1px);
}

/* CARD PERFIL */
.perfil-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 45px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* TÍTULOS */
.perfil-card h2 {
    margin-bottom: 30px;
}

.perfil-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

/* FORM */
.perfil-card form {
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 22px;
}

/* BOTONES FORM */
.perfil-card .btn {
    margin-right: 10px;
}

/* DIVISOR */
.perfil-card hr {
    margin: 40px 0 25px;
    border: none;
    border-top: 1px solid #eee;
}

/* SEGURIDAD */
.perfil-seguridad {
    padding-top: 5px;
}

.perfil-seguridad p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* BOTÓN CAMBIAR PASSWORD */
.perfil-seguridad .btn {
    margin-top: 10px;
}

/* CARD CAMBIAR PASSWORD */
.password-card {
    padding: 40px 45px;
}

/* TÍTULO */
.password-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

/* INPUTS */
.password-card input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.password-card input:focus {
    border-color: var(--color-orange);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,123,0,0.15);
}

/* FORM GROUP */
.password-card .form-group {
    margin-bottom: 20px;
}

/* AYUDA CONTRASEÑA */
.password-help {
    background: #f8f9fb;
    border-left: 4px solid var(--color-orange);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.password-help ul {
    margin: 0;
    padding-left: 20px;
}

.password-help li {
    margin-bottom: 6px;
    color: #444;
}

/* BOTONES */
.acciones-form {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* ERRORES */
.form-error {
    margin-top: 6px;
    padding: 8px 12px;
    background: #fff1f1;
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #c0392b;
}

.form-error ul {
    margin: 0;
    padding-left: 18px;
}

.form-error li {
    list-style: disc;
}

/* ERROR GLOBAL */
.form-error-global {
    background: #fdecea;
    border-left: 4px solid #e74c3c;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.galeria-trabajo {
    margin-top: 60px;
}

.galeria-trabajo h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.galeria-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.galeria-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.galeria-info {
    padding: 20px;
}

.galeria-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #0e1b4d;
}

.galeria-info p {
    font-size: 0.95rem;
    color: #555;
}

/* =========================
   EXPERIENCIAS SLIDER
========================= */

.experiencia-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

.experiencia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
}

.experiencia-img {
    height: 200px;
    overflow: hidden;
}

.experiencia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experiencia-info {
    padding: 20px;
}

.experiencia-info h5 {
    color: var(--navy);
    margin-bottom: 8px;
}

.experiencia-info p {
    font-size: 0.9rem;
    color: var(--color-blue);
}

/* Flechas abajo centradas */
.experiencias-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* =========================
   FLECHAS EXPERIENCIAS
========================= */

.experiencias-controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.exp-prev,
.exp-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #f15a24; /* tu naranja */
    color: #f15a24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}

.exp-prev:hover,
.exp-next:hover {
    background-color: #f15a24;
    color: #fff;
}

.section-shadow-top {
    box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}

/* =========================
   CONTROLES SLIDERS (GLOBAL)
========================= */

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.slider-controls > div {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #f15a24;
    color: #f15a24;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls > div:hover {
    background-color: #f15a24;
    color: #fff;
}

.bg-navy .section-tag {
    color: #ffffff !important;
}

.bg-navy h2 {
    color: #ffffff !important;
}
.experiencia-card h5 {
    color: var(--color-orange) !important;   /* azul oscuro fuerte */
    font-weight: 700;
}






.logo img {
    height: 50px;   /* tamaño del logo */
    width: auto;
    display: block;
}

.menu-toggle{
    display:none;
}

/* ================================================= */
/* RESPONSIVE */
/* ================================================= */

/* ---------- TABLET ---------- */

@media (max-width: 992px) {

.hero-grid{
grid-template-columns:1fr;
gap:40px;
}

.hero-image{
justify-content:center;
}

.hero-text{
max-width:100%;
}

}


/* ---------- CURSOS / FILTROS ---------- */

@media (max-width: 900px){

.cursos-layout{
flex-direction:column;
padding:20px;
}

.filtros-panel{
display:none;
width:100%;
}

.filtros-panel.activo{
display:block;
}

.btn-filtros-mobile{
display:inline-block;
padding:10px 16px;
border-radius:8px;
background:var(--color-orange);
color:white;
border:none;
font-weight:600;
margin-bottom:20px;
}

}

.user-dropdown{
    position:relative;
}

.dropdown-menu{
    position:absolute;
    top:100%;
    right:0;
    min-width:200px;
}
/* ---------- MOBILE ---------- */

@media (max-width:768px){

    /* HEADER */


    .user-dropdown{
    max-width:none;
}

.dropdown-menu{
    min-width:200px;
    position:absolute;
    top:110%;
    left:85%;
    transform:translateX(-50%);
}

    .main-header{
    padding:15px 20px;
    overflow:visible;
    }

    .main-nav{
    display:block;
    grid-column:2;
    justify-self:center;
    }

    .main-nav.is-open{
    display:flex;
    }

    .main-nav ul{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:150px;
    }



    .user-dropdown{
    position:relative;
    }

    .dropdown-menu a {
    display:block;
    padding:10px 16px;
    text-decoration:none;
    color:#333;
    font-size:0.9rem;
    }

    .dropdown-menu a:hover {
        background-color: #f5f5f5;
    }

    .user-dropdown{
    position:relative;
    max-width:none;
}
    /* Poner el boton hamburguesa */

    .menu-toggle{
        display:block;
        background:none;
        border:none;
        color:white;
        font-size:24px;
        cursor:pointer;
    }

    /* logo */

    .logo-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
    height: 60px;
    }

    .logo{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    z-index:1;
    }


    /* navegación */

    .nav-row{
    display: flex;
    flex-direction:column;
    gap:12px;
    margin-top:10px;
    align-items:stretch;
    grid-column:1 / 4;
    overflow:visible;
    }

    .nav-row.is-open{
    display:block;
    }
    /* usuario + notificaciones */

.auth-actions{
    display:none;
    width:100%;
    gap:10px;
    margin-top:10px;
    flex-direction:row;      /* <-- faltaba esto */
    justify-content:center;  /* <-- importante */
}

.auth-actions.is-open{
    display:flex;
}

.auth-actions .btn{
    flex:1;
    text-align:center;
}


    .user-dropdown{
    position:relative;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:visible;
    z-index:20;
    }

    .notif-dropdown{
    justify-self:end;
    }

    .notif-btn{
    font-size:1.2rem;
    padding:6px;
    }

    .user-btn{
    display:flex;
    align-items:center;
    gap:4px;
    cursor:pointer;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    }

    .btn-salir-dropdown{
    display:block;
    width:100%;
    padding:12px 16px;
    background:#d32f2f;
    color:white;
    border:none;
    cursor:pointer;
    border-radius:0 0 10px 10px;
    }

    .btn-salir-dropdown:hover {
        background-color: #b71c1c;
    }
    /* HERO */

    .hero-clean{
    padding-top:30px;
    text-align:center;
    }

    /* TITULOS */

    .titulo-editorial{
    font-size:2.5rem;
    line-height:1.1;
    }

    /* GRIDS */

    .triple-grid{
    grid-template-columns:1fr;
    }

    /* CURSOS */

    .curso-card-content{
    flex-direction:column;
    align-items:flex-start;
    }

    .curso-imagen img{
    width:100%;
    height:auto;
    }

    .badge-curso{
    top:15px;
    right:15px;
    }

    .curso-header h1{
    font-size:2.2rem;
    }

    .curso-imagen-detalle img{
    height:220px;
    }

    /* MATERIALES */

    .material-item{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    }

    .btn-material{
    width:100%;
    text-align:center;
    }

    /* TESTIMONIOS */

    .testimonios-controls{
    margin-top:25px;
    gap:30px;
    }



    /* PAGINA CURSOS */

    .acciones-curso{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:10px;
    }

    .acciones-curso .btn{
    width:100%;
    text-align:center;
    }

    .curso-info{
    display:flex;
    flex-direction:column;
    gap:10px;
    }

    .curso-imagen img{
    width:100%;
    height:140px;
    object-fit:cover;
    border-radius:10px;
    }
    .cards-grid{
    display:flex;
    flex-direction:column;
    gap:20px;
    width:100%;
    }

    .curso-card{
    width:100%;
    max-width:none;
    }

    .filtros-panel{
    display:none;
    }

    .cursos-contenido{
    width:100%;
    }

    .curso-header,
    .materiales-section{
    padding:20px;
    max-width:900px;
    margin:auto;
    }

    .container{
    padding-left:20px;
    padding-right:20px;
    }
}

#cursos-gratis .cards-grid,
#cursos-pagos .cards-grid{
display:flex;
flex-direction:column;
gap:20px;
}

#cursos-gratis .curso-card,
#cursos-pagos .curso-card{
width:100%;
max-width:none;
}

.container{
max-width:1100px;
margin:auto;
padding:0 20px;
}

.datos-pago{
margin-top:20px;
}

.pago-box{
background:#f4f6f8;
border-radius:10px;
padding:15px;
margin-top:10px;
border-left:4px solid var(--color-orange);
}

.pago-box h4{
margin-bottom:8px;
font-size:1rem;
}

.pago-box p{
margin:4px 0;
font-size:0.9rem;
}

.pago-nota{
margin-top:8px;
font-size:0.85rem;
color:#666;
}

.panel-mobile-toggle{
    display:none;
}

/* SOLO CELULAR */
@media (max-width:768px){

        .panel-layout{
        display:block;
    }

    .panel-mobile-toggle{
        display:flex;
        padding:15px 20px;
    }

    .panel-toggle{
        background:#14235c;
        color:white;
        border:none;
        width:38px;
        height:38px;
        font-size:18px;
        border-radius:8px;
        cursor:pointer;
        display:flex;
        align-items:center;
        justify-content:center;
    }
    .panel-sidebar{
        position:fixed;
        left:-260px;
        top:0;
        height:100vh;
        width:240px;
        transition:left 0.3s ease;
        z-index:2000;
    }

    .panel-sidebar.open{
        left:0;
    }

        .panel-content{
        width:100%;
    }


    .panel-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:1500;
}

.panel-overlay.active{
    opacity:1;
    visibility:visible;
}

}

.panel-actions{
    display:flex;
    gap:8px;
    align-items:center;
}

.panel-actions a{
    white-space:nowrap;
}

.acciones{
    display:flex;
    align-items:center;
    gap:8px;
}

.acciones form{
    margin:0;
}

.acciones button{
    white-space:nowrap;
}

.material-texto{
    display:flex;
    flex-direction:column;
}

.material-descripcion{
    font-size:0.85rem;
    color:#666;
    margin-top:4px;
}

.messages-container {
    margin-bottom: 15px;
}

.alert {
    background: #28a745;
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.alert.success {
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}