/*==================================================================================
  style.css — FullStack & WordPress‑style Professional CSS
==================================================================================*/

/*--------------------------------------
  IMPORTS
--------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
@import url('../assets/icomoon-v1.0/style.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');


/*--------------------------------------
  VARIABLES
--------------------------------------*/
:root {
  /* — Color Palette — */
  --color-dark-blue-1:   #0F2239;
  --color-dark-blue-2:   #0F1E33;
  --color-blueish:       #0F3C5E;
  --color-gold-1:        #E9A84C;
  --color-gold-2:        #D6A63D;
  --color-white:         #F6F6F6;
  --color-black:         #000000;

  /* — Semantic Colors — */
  --base:         var(--color-gold-1);
  --base-dark:    var(--color-dark-blue-1);
  --accent:       var(--color-gold-2);
  --text:         var(--color-dark-blue-2);
  --text-light:   var(--color-white);
  --bg:           var(--color-white);

  /* — Typography — */
  --font-body:      'Montserrat', sans-serif;
  --font-heading:   'Montserrat', sans-serif;
  --fz-base:        1rem;
  --fz-sm:          0.875rem;
  --fz-lg:          1.125rem;
  --fz-xl:          1.875rem;
  --fz-xxl:         2.25rem;
  --fw-regular:     400;
  --fw-medium:      500;
  --fw-bold:        700;

  /* — Layout — */
  --header-height:  4.5rem;
  --gutter:         1.5rem;
  --radius:         0.25rem;

  /* — Effects — */
  --transition:     0.3s ease;
  --box-shadow:     0 2px 6px rgba(0, 0, 0, 0.1);
  --backdrop-blur:  saturate(180%) blur(4px);
}

/*--------------------------------------
  GLOBAL RESET
--------------------------------------*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--fz-base);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Watermark background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../img/cts1.png') no-repeat center/contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/*--------------------------------------
  UTILITIES
--------------------------------------*/
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 768px) {
  .container {
    width: 100% !important;
    padding: 0 1rem !important;
    box-sizing: border-box;
  }
}


.grid {
  display: grid;
  gap: 2rem;
}

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

/* Scroll snap */
main {
  scroll-snap-type: y mandatory;
  overflow-y: auto;
}
main > section {
  scroll-snap-align: start;
}

/* Divider variations */
.divider {
  width: 80%;
  max-width: 600px;
  height: 1px;
  background: #eee;
  margin: 3rem auto;
  border: none;
}
.divider-1,
.divider-2 {
  height: 2px;
  background: linear-gradient(270deg, var(--base), rgba(15,34,57,0.34));
}
.divider-2 {
  background: linear-gradient(270deg, rgba(15,34,57,0.34), var(--base));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--base);
  color: var(--text-light);
  font-weight: var(--fw-medium);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/*--------------------------------------
  HEADER & NAVIGATION
--------------------------------------*/
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  padding: 0 var(--gutter);
  background: var(--bg);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 2px solid var(--base);
  z-index: 100;
  transition: box-shadow var(--transition);
}
.site-header.scroll {
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.site-logo img {
  max-height: calc(var(--header-height) - 1rem);
  transition: transform var(--transition);
}
.site-logo img:hover {
  transform: scale(1.05);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-nav .menu {
  display: flex;
  gap: 2rem;
}
.site-nav .menu a {
  position: relative;
  font-size: var(--fz-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  color: var(--text);
  padding: 0.5rem 0;
  transition: color var(--transition);
}
.site-nav .menu a::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--base);
  transition: width var(--transition);
}
.site-nav .menu a:hover,
.site-nav .menu a.active {
  color: var(--base);
}
.site-nav .menu a:hover::after,
.site-nav .menu a.active::after {
  width: 100%;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--base);
}
@media (max-width: 768px) {
  .site-nav .menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* Mobile menu overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: none;
  grid-template-rows: auto 1fr;
  place-items: center;
  z-index: 200;
}
.mobile-nav.active {
  display: grid;
}
.mobile-nav .mobile-close {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  font-size: 2rem;
  color: var(--base);
}
.mobile-nav .mobile-menu {
  display: grid;
  gap: 2rem;
  text-align: center;
}
.mobile-nav .mobile-menu a {
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
}

/*--------------------------------------
  HERO SECTION
--------------------------------------*/
--------------------------------------*/
.hero-section {
  /* espacio arriba/abajo y centrado de texto */
  padding: 8rem 0 6rem;
  text-align: center;

  /* aquí va tu imagen de fondo */
  background: url('/img/cta1.jpeg') no-repeat center center;
  background-size: cover;

  /* para colocar overlay y contenido encima */
  position: relative;
}
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  background: var(--bg);
}
.hero__title {
  font: var(--fw-bold) var(--fz-xxl) var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}
.hero__subtitle {
  font-size: var(--fz-lg);
  color: #888;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.hero__image {
  max-width: 400px;
  margin: 0 auto;
  justify-content: flex-start;
}
.hero-section .hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* contenido encima del overlay */
.hero-section .hero-content {
  position: relative;
  z-index: 2;

  /* opcional: si quieres texto e imagen lado a lado */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/*--------------------------------------
  SECTION HEADINGS & CONTENT
--------------------------------------*/
.section {
  padding: calc(5rem + var(--header-height)) 0;
}
.section header {
  text-align: center;
  margin-bottom: 3rem;
}
.section .title {
  font: var(--fw-bold) var(--fz-xl) var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.section .subtitle {
  font-size: var(--fz-lg);
  color: #555;
}

/*--------------------------------------
  ABOUT / GUIDING / COURSES / RESOURCES
--------------------------------------*/
.about__inner,
.guiding__inner,
.courses__grid,
.resources__list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Flip‑card (Team) */
.flip-card {
  perspective: 1000px;
}
.flip-card-inner {
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
}
.flip-card-back {
  background: var(--base);
  color: var(--text-black);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hover-container {
  position: relative;
  overflow: hidden;
}

.hover-content {
  transition: max-height 0.5s, opacity 0.5s;
}

/* Por defecto (escritorio): oculto */
@media (min-width: 769px) {
  .hover-content {
    max-height: 0;
    opacity: 0;
  }

  .hover-container:hover .hover-content {
    max-height: 100vh;
    opacity: 1;
  }
}

/* En móvil, siempre visible */
@media (max-width: 768px) {
  .hover-content {
    max-height: none !important;
    opacity: 1 !important;
    display: block !important;
  }
}


/* Card components */
.card,
.course-card,
.enlace-card,
.testimonial {
  background: var(--bg);
  box-shadow: var(--box-shadow);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition);
}
.card:hover,
.course-card:hover,
.enlace-card:hover {
  transform: translateY(-5px);
}
.course-card__icon,
.enlace-icon i,
.card i {
  font-size: 3rem;
  color: var(--base);
  margin-bottom: 1rem;
}

/* Testimonials (Swiper) */
.swiper-slide {
  padding: 2rem;
}
.swiper-pagination-bullet-active {
  background: var(--base);
}

/*--------------------------------------
  CONTACT
--------------------------------------*/
.contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
  align-items: center;
}
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--base);
  color: var(--text-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.contact-button:hover {
  background: var(--accent);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/*--------------------------------------
  FOOTER
--------------------------------------*/
.site-footer {
  background: var(--base-dark);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}
.site-footer__nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.site-footer__nav a:hover {
  color: var(--base);
}

.back-to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--base);
  color: var(--text-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*--------------------------------------
  ANIMATIONS
--------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-on-load {
  animation: fadeInUp 0.99s var(--transition) forwards;
}

/*--------------------------------------
  RESPONSIVE BREAKPOINTS
--------------------------------------*/
/* Large desktops */
@media (min-width: 1200px) {
  .container { max-width: 1120px; }
}

/* Tablets & below */
@media (max-width: 768px) {
  .section { padding: calc(3rem + var(--header-height)) 0; }
  .site-header { padding: 0 1rem; }
}

/* Mobile */
@media (max-width: 480px) {
  :root { --fz-base: 0.9rem; }
  .site-nav .menu a { font-size: var(--fz-sm); }
}
/* 1) Definimos la animación (si no la tienes ya) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2) La aplicamos a la imagen del hero */
.hero-image img {
  /* parte inicial antes de animar */
  opacity: 0;
  transform: translateY(30px);

  /* animación */
  animation: fadeInUp 0.8s ease-out forwards;
  /* opcional: retardo para que cargue un pelín después del texto */
  animation-delay: 0.2s;
}
/* ========================
   HEADER FIJO Y PROFESIONAL
   ======================== */
   #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  /* Contenedor interno con flex */
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo-img {
    height: 60px;   /* ajusta este valor al tamaño que necesites */
    width: auto;
  }
  
  /* Menú de escritorio */
  .menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .menu ul li {
    margin: 0 1rem;
  }
  
  .menu ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: color 0.25s;
    font-size: 0.700rem;
  }
  
  .menu ul li a:hover {
    color: #E9BA4C;
  }
  
  /* Iconos sociales */
  .social-icons {
    display: flex;
    align-items: center;
  }
  
  .social-icons a {
    margin-left: 0.75rem;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.25s;
  }
  
  .social-icons a:hover {
    color: #007BFF;
  }
  
  /* Botón hamburguesa (sólo móvil) */
  .toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
  }
  
  /* Evita que el contenido quede oculto bajo el header */
  body {
    padding-top: 72px; /* ajústalo si cambias la altura del header */
  }
  
  /* ========================
     RESPONSIVE (MÓVIL)
     ======================== */
  @media (max-width: 768px) {
    .menu,
    .social-icons {
      display: none;
    }
    .toggle {
      display: block;
    }
  }
  /* Botón sólo para móvil */
.mobile-toggle-btn {
  display: none;
  background: var(--base-color, #E9A84C);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* En móvil */
@media (max-width: 768px) {
  /* Muestra el botón */
  .mobile-toggle-btn {
    display: block;
  }
  /* Oculta el contenido inicialmente */
  .hover-content {
    display: none;
  }
  /* Cuando tenga la clase active, lo mostramos */
  .hover-content.active {
    display: block;
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  /* ocultas por defecto */
  .hover-content {
    display: none !important;
    max-height: none !important;    /* anula el max-height:0 */
    opacity: 1 !important;          /* anula el opacity:0 */
    transition: none !important;
  }

  /* cuando tenga .active, solo entonces se muestre */
  .hover-content.active {
    display: block !important;
    /* ya no hace falta volver a especificar max-height/opacity */
    margin-top: 1rem;
  }

  /* tu botón móvil */
  .mobile-toggle-btn {
    display: block;
  }
}
@media (max-width: 768px) {
  /* — Orientadores: apilar en columna — */
  #orientadores .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  #orientadores .hover-container,
  #orientadores img {
    width: 100% !important;
    max-width: 100% !important;
  }

  @media (max-width: 768px) {
    #cursos .container {
      padding: 1rem !important;
    }
  
    #cursos .container > div:nth-child(2) {
      display: grid !important;
      grid-template-columns: 1fr !important;
      width: 100% !important;
    }
  
    #cursos .hover-container {
      width: 100% !important;
      box-sizing: border-box !important;
    }
  }
  
  }
  /* — Contacto: apilar formulario y datos — */
  #contact .container > div { /* tu grid 2col */
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* — Imágenes siempre responsivas — */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

     /* Estilos básicos para el hero, menú móvil y otras secciones que no fueron trasladados a style.css */

      /* General */
      body {
        font-family: 'Montserrat', sans-serif;
        margin: 0;
        padding: 1;
      }
      header, main, footer {
        padding: 0 1.5rem;
      }
      .container {
        max-width: 1200px;
        margin: 0 auto;
      }
      header {
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }
      .logo-img {
        max-height: 60px;
      }
      nav ul {
        list-style: none;
        display: flex;
        gap: 1rem;
        padding: 0;
        margin: 0;
      }
      nav a {
        text-decoration: none;
        color: #0F2239;
      }
      .button {
        text-decoration: none;
        display: inline-block;
        padding: 0.75rem 1.5rem;
        border-radius: 2.25rem;
        background-color: var(--base-color, #E9A84C);
        color: var(--text-color-light, #fff);
      }
      .section {
        padding: 6rem 0;
      }
      .divider {
        border: none;
        height: 1px;
        background: #eee;
        margin: 2rem 0;
      }
      
      /* SECCIÓN HERO */
/* SECCIÓN HERO */
/*--------------------------------------
  HERO SECTION CON FONDO ANIMADO
--------------------------------------*/

.hero-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  --overlay-opacity: 0.2;
  padding-top: calc(var(--header-height) + 1rem);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/steptodown.com128509.jpg') no-repeat center/cover;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.1s;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay-opacity));
  z-index: 1;
}

/* FLEX CON GAP Y MIN-WIDTH PARA NO UNIR TEXTO / IMG */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-content: flex-start;
  gap: 2rem;              /* espacio constante */
}

.hero-text {
  flex: 1 1 50%;
  min-width: 280px;       /* nunca menos ancho que esto */
  color: #fff;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-image {
  flex: 1 1 40%;
  min-width: 240px;
  position: relative;
  
  /* esto la empuja al borde derecho */
  margin-left: auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

/* ANIMACIÓN */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------
  RESPONSIVIDAD
--------------------------------------*/
/* Tablets y pantallas medias */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .hero-text,
  .hero-image {
    flex: 1 1 100%;
    min-width: auto;
  }
  .hero-image {
    margin: 0 auto;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 0;
    padding-top: calc(var(--header-height) + 5rem) !important;
  }
  .hero-text h1 {
    font-size: 1.75rem;
  }
  .hero-text p {
    font-size: 0.9rem;
  }
}


      
      /* Menú Móvil */
      .sidebar {
        display: none;
      }
      @media (max-width: 768px) {
        .menu {
          display: none;
        }
        .sidebar {
          display: block;
          position: fixed;
          top: 0;
          left: 0;
          width: 80%;
          height: 100%;
          background: #fff;
          box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
          padding: 2rem;
          transform: translateX(-100%);
          transition: transform 0.3s ease;
          z-index: 1000;
        }
        .sidebar.active {
          transform: translateX(0);
        }
        .sidebar nav ul {
          flex-direction: column;
          gap: 1rem;
        }
      }
      
      /* Estilos para el Equipo */
      .team {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        
      }
      .team-member {
        text-align: center;
      }
      .flip-card {
        perspective: 1000px;
      }
      .flip-card-inner {
        position: relative;
        width: 200px;
        height: 200px;
        transition: transform 0.6s;
        transform-style: preserve-3d;
      }
      .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
      }
      .flip-card-front, .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 0.5rem;
      }
      .flip-card-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .flip-card-back {
        background: #E9A84C;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: rotateY(180deg);
        padding: 1rem;
      }
      
      /* Sección Enlaces de Interés */
      .links-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
      }
      .links-list li {
        margin: 0.5rem 0;
      }
      .links-list a {
        text-decoration: none;
        color: var(--base-color, #E9A84C);
        font-weight: 500;
      }
      
      /* Back-to-Top */
      .back-to-top {
        position: fixed;
        right: 1.5rem;
        bottom: 1.5rem;
        background: var(--base-color, #E9A84C);
        color: #fff;
        padding: 0.5rem;
        border-radius: 50%;
        text-decoration: none;
        z-index: 1000;
      }
      
      /* Footer */
      .footer {
        background-color: #0F2239;
        color: #F6F6F6;
        padding: 2rem 0;
      }
/* ─────────────────────────────────────
   Clases de layout para ajustes JS/CSS
   ───────────────────────────────────── */
.layout-mobile .hero-image img {
  max-width: 100% !important;
}
.layout-tablet .hero-image img {
  max-width: 400px !important;
}
.layout-desktop .hero-image img {
  max-width: 500px !important;
}

.layout-mobile img {
  height: auto;
}
.layout-desktop img {
  display: block;
  margin: 0 auto;
}
.hero-title { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s ease-out forwards; }
.hero-title__pre {
  display: block;
  font-size: clamp(1rem, 4vw, 1.25rem);
  letter-spacing: 0.1em;
}
.hero-title__main {
  display: block;
  font-size: clamp(2rem, 8vw, 3rem);
  letter-spacing: 0.2em;
}
/* 1) Oculta el contenido de texto y botón móvil */
#about-content,
.mobile-toggle-btn {
  display: none !important;
}

/* 2) Estilos para la imagen y animación CSS */
.about-image img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 3) Estado “visible” tras hacer scroll */
.about-image.visible img {
  opacity: 1;
  transform: translateY(0);
}
/* 1) Imagenes ocultas y desplazadas al cargar */
.orient-image {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.orient-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2) Estilo de las imágenes */
.orient-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.orient-image img:hover {
  transform: scale(1.05);
}

/* 3) Modal lightbox */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.img-modal.open {
  display: flex;
}
.img-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
}
.img-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
@media (max-width: 480px) {
  .hero-title__main { font-size: 2rem; }
}
/* ─────────────────────────────────────
   Layout horizontal para “Elementos Orientadores”
   ───────────────────────────────────── */
   .orientadores-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding: 1rem 0;
  }
  
  /* opcional: styling de scrollbar horizontal */
  .orientadores-container::-webkit-scrollbar {
    height: 6px;
  }
  .orientadores-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
  }
  
  /* cada figura en fila */
  .orient-image {
    flex: 0 0 auto;
    width: 300px; /* ancho fijo o ajústalo */
  }
  
  /* en pantallas más grandes, repartir en 3 columnas fluidas */
  @media (min-width: 768px) {
    .orient-image {
      width: calc((100% - 2rem) / 3);
    }
  }
  
  @media (max-width: 768px) {
    #cursos .container > div { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    #contact .container > div { grid-template-columns: 1fr; }
  }
  body {
    overflow-x: hidden;
  }
  @media (max-width: 768px) {
    #cursos .container {
      padding: 1rem !important;
    }
  
  
  
    #cursos .hover-container {
      width: 100% !important;
      box-sizing: border-box !important;
    }
  }
  @media (max-width: 768px) {
    /* Contenedor general: no rebasa pantalla */
    #cursos .container {
      padding: 1rem !important;
      overflow-x: hidden;
      width: 100% !important;
    }
  
    /* Grid de cursos: columna única */
    #cursos .container > div:nth-child(2) {
      display: grid !important;
      grid-template-columns: 1fr !important;
      gap: 1.5rem;
      width: 100% !important;
      box-sizing: border-box;
    }
  
    /* Cada tarjeta (eje temático) debe ocupar todo el ancho sin romper */
    #cursos .hover-container {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
  
    /* Si tienes margen lateral en el body o section, lo eliminas */
    body,
    section,
    .section {
      margin: 0 !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  }
  /* Mostrar contenido siempre en móviles */
@media (max-width: 768px) {
  .hover-container {
    overflow: visible !important;
  }

  .hover-content {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    transition: none !important;
    margin-top: 1rem;
  }
}
/* ====== about-container: tamaño fijo en desktop ====== */
#about .about-container figure img {
  width: auto;        /* no se estira */
  max-width: none;    /* mantiene sus dimensiones reales */
  cursor: default;    /* no indica clic fuera de móvil */
}

/* ====== en móviles: ancho 100% y cursor pointer ====== */
@media (max-width: 768px) {
  #about .about-container figure img {
    width: 100%;
    height: auto;
    max-width: 100%;
    cursor: pointer;  /* muestra mano al pasar */
  }
}
/* 1) Desktop: mantiene tamaño real y no cambia puntero */
#about .about-image img {
  width: auto;        /* no se escala */
  max-width: none;    /* respeta dimensiones nativas */
  cursor: default;    /* no parece clickeable */
}

/* 2) Móvil (<=768px): ancho completo y puntero mano */
@media (max-width: 768px) {
  #about .about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    cursor: pointer;
  }
}

/* 3) Modal (si aún no lo tienes) */
.img-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
}
.img-modal.open {
  display: flex;
}
.img-modal img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 10px #000;
}
.img-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
/* === RECUADRO BLANCO Y GRID === */
.curso-section {
  background: url('img/webinars.jpg') center/cover no-repeat;
  padding: 4rem 1rem;
}
.curso-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
}

/* Header */
.curso-header {
  text-align: center;
  margin-bottom: 2rem;
}
.curso-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: #0F2239;
}
.curso-header p {
  font-size: 1.1rem;
  color: #555555;
}

/* Grid de dos columnas, ambas igual de altas */
.curso-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Cada columna centra su contenido verticalmente */
.curso-logo,
.curso-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Logo ocupa toda la altura de la columna */
.curso-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Texto e inscripción */
.curso-info h3 {
  font-size: 1.8rem;
  color: #0F2239;
  margin-bottom: 1rem;
}
.curso-info p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Botón */
.btn-inscribir {
  display: inline-block;
  background-color: #E9A84C;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.btn-inscribir:hover {
  background-color: #cf922f;
}

/* En móvil apilamos */
@media (max-width: 768px) {
  .curso-card-grid {
    grid-template-columns: 1fr;
  }
}
/* === SECCIÓN INSCRIPCIONES (Compacta) === */
.inscripciones-section {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
}
.inscripciones-section .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Título */
.inscripciones-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  color: #0F2239;
  text-align: center;
  margin-bottom: 1rem;
}

/* Texto introductorio */
.inscripciones-section .intro {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Grid compacto de cursos */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Tarjeta de curso */
.course-card {
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

/* Imagen */
.course-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

/* Título del curso */
.course-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #0F2239;
  text-align: center;
  margin: 0.75rem 0 0.5rem;
}

/* Descripción */
.course-desc {
  flex-grow: 1;
  font-size: 0.9rem;
  color: #555555;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

/* Botón de inscripción */
.btn-enroll {
  display: block;
  background-color: #003366;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.3s ease;
  margin: 0 auto;
  font-size: 0.9rem;
  width: 80%;
}
.btn-enroll:hover {
  background-color: #002244;
}

/* Responsive: apilar en móvil */
@media (max-width: 576px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}
/* FOOTER */
.footer {
  background-color: #0b2342;
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columna 1: Logo */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  max-width: 80px;    /* logo más pequeño */
  height: auto;
  margin-bottom: 0.5rem;
}

/* Columna 2: Navegación */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin: 0.3rem 0;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

/* Columna 3: Redes sociales */
.footer-social a {
  margin-left: 0.6rem;
  font-size: 1.3rem;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-social a:first-child {
  margin-left: 0;
}

.footer-social a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Responsive: apila en móviles */
@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand,
  .footer-nav,
  .footer-social {
    margin-bottom: 1.5rem;
  }
  .footer-nav ul {
    display: inline-block;
  }
  .footer-nav li {
    display: inline;
    margin: 0 0.8rem;
  }
}
