/** Header **/
body.home .header {
    padding-top: 2rem;
    height: auto;
    min-height: 70rem;
    background-size: cover;
    background-position: center center;
    position: relative;
    overflow: hidden;
    
}
@media (min-width: 768px) {
    
    body.home .header {
        height: 100vh;
        max-height: 90rem;
      
    }
}

@media (max-width: 768px) {
    body.home .header {
        min-height: 75vh;
        padding-bottom: 0;
    }
}
@media (max-width: 768px) {
    body.home .tagline {
        position: absolute;
        left: 50%;
        bottom: 18%;
        transform: translateX(-50%);
        width: 90%;
        margin: 0;
        text-align: center;
        z-index: 5;
    }
}

@media (max-width: 768px) {
    .tagline h1.slogan {
        font-size: clamp(2.6rem, 7vw, 3.4rem);
        line-height: 1.2;
    }

    .tagline p.slogan {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    body.home .contenedor-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 20;
    }

    body.home .contenedor-menu.mostrar {
        background: #ffffff;
        margin: 0 1.5rem;
        padding: 2rem;
        border-radius: 1.2rem;
        box-shadow: 0 10px 25px rgba(0,0,0,.2);
    }
}



.header {
    background-color: var(--dorado);
    padding: 2rem 0;
    border-bottom: 5px solid var(--oro); 
}
/* Tamaño del logo en el header */
.header .custom-logo {
  max-height: 180px;  /* altura máxima del logo */
  width: auto;       /* mantiene proporción */
  height: auto;
}

/* Contenedor del logo */
.header .logo {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .header .custom-logo {
    max-height: 160px; /* 🔹 más grande en móviles */
    width: auto;
    height: auto;
  }

  .header {
    padding: 1.5rem 0; /* mantiene equilibrio visual */
  }

  .barra-navegacion {
    flex-direction: column; /* logo arriba y menú debajo */
    align-items: center;
    gap: 1.5rem; /* espacio entre logo y menú */
  }
}
.barra-navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (min-width: 768px) {
    .barra-navegacion {
        flex-direction: row;
        justify-content: space-between;
    }
}
.tagline {
    color: var(--primario);
    margin-top: 5rem;
}
@media (min-width: 768px) {
    .tagline {
        margin-top: 15rem;
    }
}
.tagline p {
    font-size: 2rem;
}
@media (min-width: 992px) {
    .fixed-top {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: var(--dorado);
        padding: 1rem 5rem;
        height: 10rem;
        z-index: 1000;
        transition: background-color 300ms ease-in-out;
    }
    .fixed-top .logo{
        width: 12rem;
    }
}

/* .menu-principal {
    display: none;
} */

.hamburguer-menu:hover {
    cursor: pointer;
}
@media (min-width: 768px) {
    .hamburguer-menu {
        display: none;
    }
}
.contenedor-menu {
    opacity: 0;
    max-height: 0;
    transition-delay: 100ms, 300ms;
    transition-property: opacity, max-height ;
    transition-timing-function: ease-in-out;
    transition-duration: 300ms;
}
@media (min-width: 768px) {
    .contenedor-menu {
        all: unset;
    }
}
.mostrar {
    opacity: 1;
    max-height: 999rem; /* práctico e infinito */
    transition-delay: 0ms;
    transition-property: opacity, max-height;
    transition-duration: 300ms;
}

@media (min-width: 768px) {
    .menu-principal {
        display: block;
    }
    .menu-principal .menu {
        display: flex;
    }
}
.menu-principal a {
    font-family: var(--fuente-headings);
    display: block;
    text-align: center;
    color: var(--negro);
    font-size: 2.8rem;
    padding: .5rem 2rem;
}
body.home .menu-principal a {
    color: #ffffff !important; /* Solo color */
}

@media (max-width: 767px) {
  body.home .header .menu-principal a {
    color: var(--negro) !important;
  }
}


@media (max-width: 767px) {

  /* HOME → menú móvil en contenedor blanco */
  body.home .contenedor-menu.mostrar {
    background-color: #ffffff;
    width: 100%;
    padding: 2rem 1.5rem;
    margin-top: 1rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  /* Asegura contraste del texto */
  body.home .contenedor-menu.mostrar .menu-principal a {
    color: var(--negro) !important;
  }
}

@media (min-width: 992px) {

    /* HOME + SCROLL → TEXTO NEGRO */
    body.home .barra-navegacion.fixed-top .menu-principal a {
        color: var(--negro) !important;
    }
}


@media (min-width: 768px) {

    /* Submenú en HOME */
    body.home .menu-principal .sub-menu a {
        color: var(--negro) !important;
    }

}

@media (min-width: 768px) {
    .menu-principal a {
        position: relative;
        z-index: 1;
    }
    .menu-principal .current_page_item {
        border-bottom: 3px solid var(--oro);
    }

    .header .menu-principal a::before,
    .header .menu-principal a::after {
        position: absolute;
        left: 0;
        content: '';
        display: block;
        width: 100%;
        height: 50%;
         background: rgba(223, 205, 102, 0.377);
        z-index: -1;
        transform: scaleX(0);
        transition: transform .6s;
    }
      .header .menu-principal a::before {
        top: 0;
        transform-origin: left;
    }
      .header .menu-principal a::after {
        top:50%;
        transform-origin: right;
    }
     .header  .menu-principal a:hover::before {
        transform: scaleX(1);
    }
      .header .menu-principal a:hover::after {
        transform: scaleX(1);
    }
      .header .menu-principal a:hover {
  color: var(--negro);
}
}

/* === COLOR DEL ÍCONO DE MENÚ HAMBURGUESA === */
.hamburguer-menu {
  color: var(--oro); /* Usa tu color principal */
  font-size: 4rem; /* Ajusta el tamaño según el ícono */
  transition: color 0.3s ease;
}

/* Cuando pasas el cursor (en desktop o simulación móvil) */
.hamburguer-menu:hover {
  color: var(--oro); /* Tono más oscuro o alternativo */
  cursor: pointer;
}

/* Si el ícono es un SVG, asegura que también cambie el color del trazo/relleno */
.hamburguer-menu svg path {
  fill: var(--oro);
  transition: fill 0.3s ease;
}

.hamburguer-menu:hover svg path {
  fill: var(--oro, #010002);
}

/* desactivar eventos del menu oculto en responsive */
/* SOLO PARA MÓVIL */
@media (max-width: 767px) {

  .contenedor-menu {
      opacity: 0;
      max-height: 0;
      overflow: hidden;
      pointer-events: none;
  }

.mostrar {
    opacity: 1;
    max-height: 100vh;   /* 🔥 ocupa todo el alto visible */
    overflow-y: auto;    /* 🔥 permite scroll si es largo */
    pointer-events: auto;
}
}

@media (min-width: 768px) and (max-width: 1024px) {

  .menu-principal a {
    font-size: 1.8rem;
    padding: .5rem 1rem;
  }

  .header .custom-logo {
    max-height: 120px;
  }

}

/* =========================
   HEADER HERO – MÓVIL
   ========================= */
@media (max-width: 768px) {

    /* Header como contenedor del hero */
    body.home .header.hero-home {
        position: relative;
        height: auto;           /* altura flexible según contenido */
        min-height: 75vh;       /* ocupa suficiente espacio */
        padding: 1rem 0 2rem;   /* espacio interno */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        z-index: 1;
    }
    


    /* Barra de navegación y logo encima */
    body.home .barra-navegacion {
        position: relative;
        z-index: 10;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 1.5rem;
    }

    /* Tagline / slogan encima */
    body.home .tagline {
        position: relative;
        z-index: 10;
        text-align: center;
        margin: 2rem auto 0;
        width: 90%;
    }

    body.home .tagline h1.slogan {
        font-size: clamp(2.4rem, 7vw, 3rem);
        line-height: 1.2;
        margin: 0;
        color: var(--primario);
    }

    body.home .tagline p.slogan {
        font-size: 1.4rem;
        line-height: 1.4;
        margin-top: 0.8rem;
        color: var(--primario);
    }

    /* Menú desplegable */
    body.home .contenedor-menu {
        position: relative;
        z-index: 10;
        margin-top: 1rem;
        width: 100%;
    }

    body.home .contenedor-menu.mostrar {
        background: #ffffff;
        border-radius: 1.2rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        padding: 1.5rem;
        color: var(--negro);
    }
}

/* Animación segura del hero */
@keyframes heroMove {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

/* =========================
   HOME HERO = iPAD MINI MODE
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {

  body.home .header {
    padding-top: 0 !important;
    min-height: unset !important;
    height: auto !important;
    max-height: none !important;
  }
}

body.home .barra-wrapper {
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: 100%;
    z-index: 20;
}

@media (max-width: 768px) {
    body.home .header.hero-home {
        padding-top: 22rem;
    }
}


.barra-wrapper {
    background-color: var(--dorado);
    
}
body.home .barra-wrapper {
    background: transparent;
    
}

