/* ==========================================================================
   SECCI脫N: INDEX / ESTILOS BASE (styles.css)
   ========================================================================== */
/* CSS Document */
*{margin:0px;padding:0px;}
body{}
/*VIDEO Y CINTA*/
#videoBG {width:100%;height:100%;position:relative;z-index: -1;}
img.uni{width:4%;height:auto;margin-left:3%;}
/*PRESENTACI脫N Y SLIDER*/
#presenta{margin:100px auto;}
#main{}
article{width:90%; height:auto; margin:0px auto;}
#aside{}

/* ==========================================================================
   MODAL FLOTANTE DE REGISTRO (SECCI覰 CURSOS)
   ========================================================================== */
body.modal-registro-abierto {
  overflow: hidden;
}

.modal-registro-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-registro-overlay.is-open {
  display: flex;
}

.modal-registro-dialog {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto;
  animation: fadeIn 0.2s ease-in-out;
}

.modal-registro-card.columna-registro {
  max-height: 88vh;
  overflow-y: auto;
}

.modal-cerrar-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--pastel-green-dark, #68b693);
  background-color: #ffffff;
  color: var(--primary-color, #1e3a4c);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-cerrar-btn:hover {
  background-color: #fde2e4;
  transform: scale(1.06);
}

/*SLIDER*/
.slider{width:45%;height:auto;float:left;border:2px solid #fff;}
.jssorb01{position: absolute;}
.jssorb01 div, .jssorb01 div:hover, .jssorb01 .av{position: absolute;width:12px;height: 12px;filter: alpha(opacity=70);opacity: .7;
overflow: hidden;cursor: pointer;border:1px solid #fff;border-radius:50%;}
.jssorb01 div { background-color:#000; }
.jssorb01 div:hover, .jssorb01 .av:hover{background-color:#fff; }
.jssorb01 .av {background-color: #fff;}
.jssorb01 .dn, .jssorb01 .dn:hover {background-color:#fff; }
.jssora05l, .jssora05r{display: block;position: absolute;width: 40px;height: 40px;cursor: pointer;background: url('/img/a17.png') no-repeat;
 overflow: hidden;}
.jssora05l { background-position: -10px -40px; }
.jssora05r { background-position: -70px -40px; }
.jssora05l:hover { background-position: -130px -40px; }
.jssora05r:hover { background-position: -190px -40px; }
.jssora05l.jssora05ldn { background-position: -250px -40px; }
.jssora05r.jssora05rdn { background-position: -310px -40px; }
/*FIN DEL SLIDER*/

/*CURSOS*/
#cursos1{display:none;}

p.aula{font-weight:bold; color:#000;}
#guias{ width:100%; height:auto; background:#003366; color:#FFFFFF; text-align:center;}
img.universidad{width:80%;height:auto;border-radius:10px;margin:10px auto;}
img.comipems{width:100%;height:auto;border-radius:10px;margin:10px auto;}
img.ceneval{width:80%;height:auto;border-radius:10px;margin:10px auto;}
img.univ{width:15%;height:auto;margin-left:2%;}
img.univ1{width:25%;height:auto;margin-left:2%;}
color:#585858; border:2px solid #E3CEF6;}
#universitat{height:500px;text-align:center;font-family:Maiandra GD;border:1px solid #fff;border-radius:10px;
box-shadow: 5px 10px #E3CEF6;color:#585858; border:2px solid #E3CEF6;}
#comipems{height:500px;text-align:center;font-family:Maiandra GD;border:1px solid #fff;border-radius:10px;
box-shadow: 5px 10px #E3CEF6;color:#585858; border:2px solid #E3CEF6;}
#ceneval{height:500px;text-align:center;font-family:Maiandra GD;border:1px solid #fff;border-radius:10px;box-shadow: 5px 10px #E3CEF6; 
color:#585858; border:2px solid #E3CEF6;}
#informes{height:500px;text-align:center;font-family:Maiandra GD;border:1px solid #fff;border-radius:10px;box-shadow: 5px 10px #E3CEF6; 
color:#585858; border:2px solid #E3CEF6;}
p.titulo{font-size:180%;font-weight:bold;margin-top:120px;margin-bottom:25px;font-family:Maiandra GD; color:#4C0B5F;}
p.curso{font-size:120%; color:#08088A;font-weight:bold;}
article.curso{width:90%; height:auto;}

#inter{margin-top:0px;}
p.informa{width:80%;margin:20px auto;}
img.inicio{width:90%;height:320px;margin:10px auto;box-shadow: 5px 10px #A4A4A4;transition-duration:.5s;}
img.viaje{width:90%;height:320px;margin:10px auto;box-shadow: 5px 10px #A4A4A4;transition-duration:.5s;}
img.prepa{width:90%;height:320px;margin:10px auto;box-shadow: 5px 10px #A4A4A4;transition-duration:.5s;}
img.dialectica{width:90%;height:320px;margin:10px auto;box-shadow: 5px 10px #A4A4A4;transition-duration:.5s;}
img.inicio:hover{width:95%;height:350px;margin:10px auto;box-shadow: 5px 10px #848484;transition-duration:.5s;}
img.viaje:hover{width:95%;height:350px;margin:10px auto;box-shadow: 5px 10px #848484;transition-duration:.5s;}
img.prepa:hover{width:95%;height:350px;margin:10px auto;box-shadow: 5px 10px #848484;transition-duration:.5s;}
img.dialectica:hover{width:95%;height:350px;margin:10px auto;box-shadow: 5px 10px #848484;transition-duration:.5s;}
#modulo1{height:600px;text-align:center;font-family:Maiandra GD;border-radius:10px; color:#585858;border:2px solid #E6E6E6;}
#modulo2{height:500px;text-align:center;font-family:Maiandra GD; color:#585858;border:2px solid #E6E6E6;}
#modulo3{height:600px;text-align:center;font-family:Maiandra GD;border-radius:10px; color:#585858;border:2px solid #E6E6E6;}
p.face{font-size:120%;margin:10px auto;}
p.aula1{font-weight:bold; color:#FFFFFF;}
img.comipems1{width:80%;height:auto;border-radius:10px;margin:10px auto;}
img.superior1{width:80%;height:110px;border-radius:10px;margin:10px auto;}
p.mod{color:#848484; font-size:120%; margin:10px auto; font-weight:bold;}
/*SLIDER2*/
.contenedor-slider{width:100%;height:200px;position: relative;overflow:hidden;box-shadow: 0 0 0 5px #fff,0 15px 10px;}
.slider {display: flex;width:600%;}
.slider__section {width: 100%;}
.slider__img{ display: block; width: 100%;height:200px;}
.btn-prev, .btn-next {width:40px;height:40px;background: rgba(255, 255, 255, 0.7);position: absolute;top: 50%;transform: translateY(-50%);
line-height:40px;font-size: 30px;font-weight: bold;text-align: center;border-radius:50%;font-family: monospace;cursor: pointer;}
.btn-prev:hover, .btn-next:hover{background: white;}
.btn-prev { left: 10px;}
.btn-next {right: 10px;}
/*FINDESLIDER2*/
a.red{ color:#FFFFFF;}
img.elementos{width:100%; height:auto;}
img.funciones{width:100%; height:auto;}
img.mate{width:100%; height:auto;border-radius:10px;}


@media (max-width:767px){
body{}
#encabezado{margin-top:60px;}
#head{font-size:90%;}
img.logo{ width:50%; height:auto;}
img.aime{ width:50%; height:auto;}
#presenta{margin:20px auto;}
#comipems{height:500px;}
#superior{height:500px;}
#ceneval{height:500px;}
#informes{height:500px;}
img.inicio{height:250px;}
img.prepa{height:250px;}
img.viaje{height:250px;}
img.dialectica{height:250px;}
img.inicio:hover{height:260px;}
img.prepa:hover{height:260px;}
img.viaje:hover{height:260px;}
img.dialectica:hover{height:260px;}
.loader {
display:none;
}

}


/*CELULAR VERTICAL*/
@media (max-width:480px){
body{}
#presenta{margin:10px auto;}
img.logo{width:80%;height:auto;}
img.aime{width:80%;height:auto;}
p.titulo{margin-top:10px;}
img.inicio{height:400px;}
img.prepa{height:400px;}
img.viaje{height:400px;}
img.dialectica{height:400px;}
/*SLIDER2*/
.contenedor-slider{width:100%;height:120px;position: relative;overflow:hidden;box-shadow: 0 0 0 5px #fff,0 15px 10px;}
.slider {display: flex;width:600%;}
.slider__section {width: 100%;}
.slider__img{ display: block; width: 100%;height:120px;}
.btn-prev, .btn-next {width:20px;height:20px;background: rgba(255, 255, 255, 0.7);position: absolute;top: 50%;transform: translateY(-50%);
line-height:25px;font-size:20px;font-weight: bold;text-align: center;border-radius:50%;
font-family: monospace;cursor: pointer;}
.btn-prev:hover, .btn-next:hover{background: white;}
.btn-prev {left: 10px;}
.btn-next {right: 10px;}
/*FINDESLIDER2*/
.loader {
display:none;
}

#modulo1{height:auto;}
#modulo2{height:auto;}
#modulo3{height:auto;}
#modulo4{height:auto;}

}/*FIN DE CELULAR VERTICAL*/


/* ==========================================================================
   SECCI脫N: HEADER
   ========================================================================== */
/* Contenedor general del header */
#head {
    background-image: url("/img/gray.jpg");
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Imagen del logo adaptativa */
.logo {
    max-width: 70px;
    height: auto;
}

/* Tipograf铆a del encabezado */
.heade .one {
    font-size:3rem;
    color: #2c3e50;
    line-height:1;
    text-align:left;
    font-weight:bold;
    margin-top:20px;
}

.heade .two {
    font-size:1.5rem;
    color: #7f8c8d;
    text-align:left;
    line-height:0.5;  
}

/* Iconos de redes sociales */
.redes .redx {
    font-size:2rem;
    color: #0F4B69;
    transition: color 0.3s ease;
    margin-left:5px;
}

.redes .redx:hover {
    color: #007bff; /* Color al pasar el cursor */
}


/* ==========================================================================
   SECCI脫N: MENU
   ========================================================================== */
/* Estilos generales del contenedor y barra */
.menu-container {
    background-color:#0F4B69; /* Color de fondo del men煤 */
    font-family: sans-serif;
    position: relative;
    z-index: 1000;
}

.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ocultar bot贸n m贸vil por defecto en escritorio */
.nav-movil {
    display: none;
}

/* Men煤 principal (Desktop) */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size:1.3rem;
    transition: background 0.3s ease;
}

.nav-menu > li > a:hover {
    background-color: #1a252f;
}

/* Submen煤s (Desktop - Desplegable al pasar el mouse) */
.nav-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    list-style: none;
    padding: 10px 0;
    min-width: 250px;
    z-index: 100;
}

.nav-submenu li a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    text-decoration: none;
    font-size:1.1rem;
    white-space: nowrap;
}

.nav-submenu li a:hover {
    background-color: #f4f6f7;
    color: #007bff;
}

/* Mostrar submen煤 en hover en pantallas grandes */
@media (min-width: 992px) {
    .has-submenu:hover .nav-submenu {
        display: block;
    }
}

/* Flechita indicadora de submen煤 */
.arrow {
    font-size: 0.75rem;
    margin-left: 5px;
}

/* --- DISE脩O RESPONSIVO (M脫VILES Y TABLETS < 992px) --- */
@media (max-width: 991px) {
    .navbar-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    .nav-movil {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        align-items: center;
    }

    /* Bot贸n Hamburguesa Estilizado */
    .nav-toggle {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 30px;
        padding: 0;
    }

    .nav-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Men煤 desplegable m贸vil oculto por defecto */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu > li > a {
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Submen煤s en dispositivos m贸viles (Abatibles por toque) */
    .nav-submenu {
        position: static;
        box-shadow: none;
        background-color: #1a252f;
        padding-left: 15px;
        display: none; /* Se abrir谩 mediante JS o clase */
    }

    .nav-submenu.active {
        display: block;
    }

    .nav-submenu li a {
        color: #bdc3c7;
        white-space: normal;
    }
}


/* ==========================================================================
   SECCI脫N: CURSOS
   ========================================================================== */
/* Contenedor principal */
.courses-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.courses-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Cuadr铆cula de cursos */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tarjeta individual */
.course-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Contenedor de la imagen */
.course-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen animada con efecto suave */
.course-animated-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Animaci贸n de zoom al pasar el cursor sobre la tarjeta */
.course-card:hover .course-animated-img {
    transform: scale(1.08);
}

/* Informaci贸n del curso */
.course-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-heading {
    font-size: 2rem;
    color: #2F5C44;
    margin-bottom: 0.5rem;
}

.course-date {
    color: #C72C67;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.course-link {
    margin-top: auto;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.course-link:hover {
    color: #004080;
    text-decoration: underline;
}


/* ==========================================================================
   SECCI脫N: MODULO
   ========================================================================== */
/* --- PALETA DE COLORES Y ESTILOS GENERALES --- */
:root {
  --primary-color: #1e3a4c;      /* Azul pizarra suave y sereno */
  --pastel-blue: #cfe8f7;        /* Azul pastel principal */
  --pastel-blue-dark: #5b9bd5;   /* Azul pastel profundo para bordes/controles */
  --pastel-green: #d8f0e3;       /* Verde pastel principal */
  --pastel-green-dark: #68b693;  /* Verde pastel profundo para acentos/bot&oacute;n */
  --bg-card: #f4faf7;            /* Fondo muy suave verde/azul pastel */
  --text-main: #2c4251;          /* Texto legible y tranquilo */
  --border-color: #b7d7e8;       /* Borde suave azul pastel */
}

/* T&iacute;tulo Principal */
.courses-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* T&iacute;tulos de secci&oacute;n */
.titulo-seccion {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--pastel-green-dark);
  padding-bottom: 0.5rem;
}

/* --- CUADRO DE MENSAJE VERDE PASTEL CON TACHE --- */
.alerta-exito-pastel {
  display: none;
  position: relative;
  background-color: #d8f0e3;
  color: #154734;
  border: 2px solid #68b693;
  border-radius: 10px;
  padding: 14px 42px 14px 16px;
  margin-bottom: 18px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(104, 182, 147, 0.25);
  animation: fadeIn 0.25s ease-in-out;
}

.alerta-exito-pastel.alerta-error {
  background-color: #fde2e4;
  color: #6b1d28;
  border-color: #e07a86;
}

.btn-cerrar-alerta {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* --- COLUMNA 1 (IZQUIERDA): YOUTUBE / VIDEOS (1/3) --- */
.video-item {
  margin-bottom: 1.2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.video-item:hover {
  box-shadow: 0 4px 12px rgba(91, 155, 213, 0.15);
}

.video-item a {
  text-decoration: none;
  color: var(--text-main);
  display: block;
}

.video-item span {
  display: block;
  padding: 10px 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  background-color: #ffffff;
}

.video-item img.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-item:hover img.responsive-img {
  transform: scale(1.02);
}

/* --- COLUMNA 2 (CENTRO): PLUGIN DE FACEBOOK (1/3) --- */
.columna-fb {
  background: #f5fafe;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.fb-page, 
.fb-page span, 
.fb-page iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* --- COLUMNA 3 (DERECHA): FORMULARIO EN AZUL Y VERDE PASTEL (1/3, ALTURA INICIAL 400PX) --- */
.columna-registro {
  background: linear-gradient(180deg, var(--pastel-blue) 0%, var(--pastel-green) 100%);
  padding: 0;
  border-radius: 12px;
  border: 2px solid var(--pastel-green-dark);
  box-shadow: 0 6px 20px rgba(104, 182, 147, 0.22);
  min-height: 400px;
  max-height: 680px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.registro-header {
  background: linear-gradient(135deg, #a7d8f0 0%, #bfead4 100%);
  color: var(--primary-color);
  padding: 16px 20px;
  border-bottom: 2px solid var(--pastel-green-dark);
}

.registro-header .titulo-registro {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--primary-color);
}

.registro-header .subtitulo-registro {
  margin: 4px 0 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.25rem;
  color: #2c4f63;
}

.registro-body {
  padding: 18px 20px 22px;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.65);
}

.columna-registro label {
  display: block;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 12px;
  margin-bottom: 5px;
}

.columna-registro .form-control {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.35rem;
  height: auto;
  padding: 9px 12px;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--pastel-blue-dark);
  border-radius: 8px;
}

.columna-registro .form-control:focus {
  border-color: var(--pastel-green-dark);
  box-shadow: 0 0 0 3px rgba(104, 182, 147, 0.3);
  outline: none;
}

.campos-dinamicos {
  margin-top: 8px;
  animation: fadeIn 0.25s ease-in-out;
}

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

/* Leyenda y checkbox de pol&iacute;ticas de privacidad */
.privacidad-box {
  margin-top: 16px;
  padding: 10px 12px;
  background-color: rgba(207, 232, 247, 0.55);
  border: 1px solid var(--pastel-blue-dark);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.privacidad-box input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--pastel-green-dark);
  cursor: pointer;
}

.privacidad-box label.privacidad-label {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-main);
  cursor: pointer;
}

.privacidad-box a {
  color: #165a72;
  font-weight: 700;
  text-decoration: underline;
}

.privacidad-box a:hover {
  color: #0f3d4d;
}

.btn-registro {
  margin-top: 14px;
  width: 100%;
  padding: 12px 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #16382b;
  background: linear-gradient(135deg, #9be3c2 0%, #89d4f5 100%);
  border: 2px solid var(--pastel-green-dark);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(104, 182, 147, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-registro:hover {
  background: linear-gradient(135deg, #84d6b0 0%, #72c6ec 100%);
  transform: translateY(-1px);
}

.banner-curso-img {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--pastel-blue-dark);
}

.banner-curso-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- MEDIA QUERIES PARA RESPONSIVIDAD ADICIONAL --- */
@media (max-width: 991px) {
  .columna-fb {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .container {
    margin-top: 40px !important;
  }
  
  .courses-title {
    font-size: 1.8rem;
  }

  .columna-youtube, 
  .columna-fb, 
  .columna-registro {
    margin-bottom: 2rem;
  }
}


/* ==========================================================================
   SECCI脫N: PUBLICACIONES
   ========================================================================== */
/* --- Estilos Generales y Tipograf铆a --- */
.section-title {
  font-size: 3rem;
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2c3e50;
  font-weight: 700;
  letter-spacing: -1px;
}

/* --- Contenedor Principal (Grid Responsivo) --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding-bottom: 50px;
}

/* --- Tarjetas de Publicaci贸n --- */
.pub-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  
  /* Transici贸n suave para la tarjeta */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Animaci贸n al pasar el cursor sobre la tarjeta */
.pub-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* --- Contenedor de la Imagen --- */
.img-container {
  width: 100%;
  height: 220px; /* Altura fija para mantener el orden visual */
  background-color: #f8f9fa; /* Fondo sutil para rellenar los espacios libres */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.pub-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Muestra la imagen completa sin recortarla */
  display: block;
  
  /* Animaci贸n de zoom suave ajustada */
  transition: transform 0.5s ease;
}

.pub-card:hover .pub-img {
  transform: scale(1.05);
}

/* --- Bot贸n Elegante --- */
.btn-detalles {
  margin-top: 20px;
  background-color: #3498db;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  
  /* Transici贸n del bot贸n */
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-detalles:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

.btn-detalles:active {
  transform: scale(0.98);
}


/* ==========================================================================
   SECCI脫N: FOOTER
   ========================================================================== */
/* Encapsulamiento total para evitar que estilos del panel account.php lo alteren */
#footer-exclusivo {
    background-color: #695370 !important;
    color: #ffffff !important;
    width: 100%;
}

#footer-exclusivo, 
#footer-exclusivo .text-white-50 {
    color: #ffffff !important;
}

#footer-exclusivo img.logofooter {
    margin-top: 10px !important;
    border-radius: 10px !important;
    max-height: 70px !important;
    width: auto !important;
}

#footer-exclusivo p.cesoac {
    font-size: 2.2rem !important;
    color: #fff !important;
    font-weight: bold !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

#footer-exclusivo a.transition-link {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

#footer-exclusivo a.transition-link:hover {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

#footer-exclusivo .icon-whatsapp + span,
#footer-exclusivo a .icon-whatsapp {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.footer-bottom-bar {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 8px 10px !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    width: 100% !important;
}

.footer-bottom-bar p {
    margin-bottom: 0 !important;
    color: #ffffff !important;
}