/**
 * -----------------------------------------------------------------
 * ENCABEZADO PRINCIPAL
 * -----------------------------------------------------------------
 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-family: var(--fuente-inter);
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
}

.header-int {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  font-family: var(--fuente-inter);
  padding: 10px 0;
}

/* NAV */
.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;

}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    /* background-color: #fff; */
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--color-principal);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform .35s ease, color .2s ease;
}

.nav-links a:hover {
    color: var(--color-principal-hover);
    transform: translateY(-4px);
    will-change: transform;
    font-weight: 500;
}

/* P脕GINAS INTERNAS */

/* NAV LINKS INTERNOS */
.nav-int {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 馃憟 ancla los items al borde inferior */
  min-height: 50px;      /* ajusta seg煤n tu dise帽o */
}

.nav-links-int {
  display: flex;
  gap: 2rem;
  list-style: none;
  transform: translateY(10px); /* si quieres bajarlo un poco */
}

.nav-links-int li {
  /* Quita margin-top */
  position: relative;
}

.nav-links-int a {
  color: var(--header-bg);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: transform .35s ease, color .2s ease;
}

.nav-links-int a:hover {
  color: var(--color-principal-hover);
  transform: translateY(-4px);
  font-weight: 500;
}

.informacion-int {
    display: block;
    position: absolute;
    justify-content: center;
    margin: 0 auto;
    top: 50%;
    /* background-color: red; */
}





/* Bot贸n de b煤squeda */
.btn-search {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--color-principal);
    transition: transform .35s ease, color .2s ease;
}

.btn-search:hover {
    color: var(--color-principal-hover);
    transform: scale(1.15);
}

/**
 * -----------------------------------------------------------------
 * T脥TULOS PRINCIPALES
 * -----------------------------------------------------------------
 */
.titulos {
    text-align: center;
    padding: 1rem;
    margin-top: -20px;
}

.titulos .principal-titulo {
    color: var(--color-principal);
    font-size: 3rem;
    letter-spacing: 10px;
    font-family: var(--fuente-lora);
    font-weight: 500;
}

.titulos h1 {
    color: var(--color-principal);
    font-size: 3rem;
    letter-spacing: 15px;
    font-family: var(--fuente-lora);
    margin: 0;
}

.titulos h3 {
    color: var(--color-principal);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-family: var(--fuente-rubik);
    font-weight: 400;
}

.titulos p {
    color: var(--color-principal);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-family: var(--fuente-inter);
    font-weight: 300;
}

/**
 * -----------------------------------------------------------------
 * MEN脷 M脫VIL (HAMBURGUESA Y OVERLAY)
 * -----------------------------------------------------------------
 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10003 !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-principal);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburguesa fija visible al hacer scroll en m贸vil */
.hamburger.fixed-visible {
    display: flex !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
}

/* Cuando tiene ambas clases (fixed-visible y active) */
.hamburger.fixed-visible.active {
    background: var(--color-principal);
}

.hamburger.fixed-visible.active span {
    background: #fff !important;
}

/* Animaci贸n hamburger a X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #fff;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #fff;
}

/* Men煤 m贸vil - overlay completo */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-principal) 0%, var(--color-principal-hover) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10002;
    overflow: hidden;
}

.mobile-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/overlay.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.4s ease, opacity 0.2s ease;
    z-index: 10004;
}

.mobile-menu-close:hover {
    transform: rotate(90deg) scale(1.2);
    opacity: 0.8;
    color: var(--warning);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    list-style: none;
    margin-top: 30%;
}

.mobile-menu-links li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

/* Retrasos escalonados para cada elemento */
.mobile-menu.active .mobile-menu-links li:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(4) {
    animation-delay: 0.25s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(5) {
    animation-delay: 0.3s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(6) {
    animation-delay: 0.35s;
}

.mobile-menu.active .mobile-menu-links li:nth-child(7) {
    animation-delay: 0.4s;
}

.mobile-menu-links a {
    color: white;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    font-family: var(--fuente-inter);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease; /* Solo una transici贸n */
    display: inline-block; /* Asegura que el transform funcione correctamente */
    transform: translateY(0); /* Estado inicial */
}

.mobile-menu-links a:hover {
    color: var(--warning);
    transform: translateY(-2px) scale(1.05); /* Ajusta el valor de translateY seg煤n necesites */
}


/* Contenedor interior: men煤 vertical centrado (ligeramente hacia arriba) */
.mobile-menu-inner {
    width: 100%;
    max-width: 760px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* por encima del overlay visual */
    transform: translateY(-6vh);
    /* desplaza el bloque un poco hacia arriba */
    padding: 0 1.25rem;
    /* evitar que el contenido toque los laterales */
    box-sizing: border-box;
}

/* Ajustar layout del overlay: footer pegado abajo, men煤 en centro superior */
.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 0 0 0;
}

/* Footer pegado abajo dentro del overlay */
.mobile-menu-footer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1;
    pointer-events: auto;
    padding: 1rem;
    box-sizing: border-box;
    margin-bottom: 35%;
}

/* Asegurar que las redes queden en fila y centradas */
.mobile-menu-footer .social-buttons {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;

}
.mobile-menu-footer .social-buttons svg {
    color: var(--warning);
    cursor: pointer;
    transition: all 0.3s ease;
}
.mobile-menu-footer .social-buttons svg:hover {
    color: var(--header-bg);
    transform: translateY(-50%) scale(1.02);
   

}
.mobile-site-address {
    font-size: 1.5rem;
    font-family: var(--fuente-inter);
    color: var(--header-bg);
    margin-top: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.2;
}
/* Ajustes para pantallas muy peque帽as: reducir desplazamiento hacia arriba */
@media (max-width: 420px) {
    .mobile-menu-inner {
        transform: translateY(-2vh);
    }

    .mobile-menu {
        padding: 3rem 0 0 0;
    }

    .mobile-menu-footer {
        margin-bottom: 5rem;
    }
}

/* Prevenir scroll del body cuando el men煤 m贸vil est谩 activo */
body:has(.mobile-menu.active) {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100vh;
}

/* Animaci贸n de entrada */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/**
 * -----------------------------------------------------------------
 * BARRA DE NAVEGACI脫N SIMPLE (AL HACER SCROLL)
 * -----------------------------------------------------------------
 */
.simple-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 8vh;
    background: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    font-family: var(--fuente-inter);
}

.simple-navbar.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.simple-navbar ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.5rem 1rem;
}

.simple-navbar a {
    display: inline-block;
    color: var(--color-principal);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .35s ease, color .2s ease;
    will-change: transform;
}

.simple-navbar .btn-search {
    display: inline-flex;
    align-items: center;
    color: var(--color-principal);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .35s ease, color .2s ease;
    will-change: transform;
}

.simple-navbar a:hover,
.simple-navbar .btn-search:hover {
    color: var(--color-principal-hover);
    transform: translateY(-3px);
}

/**
 * -----------------------------------------------------------------
 * MODAL DE BÚSQUEDA
 * -----------------------------------------------------------------
 */
.search-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(13, 17, 23, 0.96);
    background-image: url(../img/overlay-buscar.webp);
    background-size: cover; 
    backdrop-filter: blur(12px);
    display: flex;
    align-items: flex-end; /* Changed from center to flex-end */
    justify-content: center;
    padding-bottom: 5vh; /* Added padding to lift it slightly from the bottom */
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.watermark-svg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    filter: grayscale(1) brightness(0.4);
    opacity: 0.3;
    width: 50%;
    max-width: 800px;
    pointer-events: none;
}

.search-wrapper {
    position: absolute;
    right: 5%;
    width: 60%;
    /* max-width: 400px; */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2rem;
    margin-bottom: 20%;
}

.search-input-container {
    position: relative;
    width: 80%;
    margin: 0 auto;
}

.search-wrapper input {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    box-sizing: border-box;
    font-size: 1.5rem;
    border: 0.135rem dotted var(--color-principal, #ddd);
    border-radius: 1rem;
    box-shadow: 0 0 30px var(--glow-subtle);
    outline: none;
    background: transparent;
    color: var(--header-bg);
    text-shadow: 1px 1px 2px var(--color-principal);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1.8px;
    font-weight: bold;
}

.search-wrapper input::placeholder {
    color: var(--header-bg);
    opacity: 0.9;
    font-size: 1.2rem;
}

.search-submit-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-principal);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    background: var(--color-principal-hover);
    transform: translateY(-50%) scale(1.05);
}

.search-submit-btn .icon {
    color: #fff;
}

.search-message {
    color: var(--header-bg);
    text-shadow: 2px 1px 1px var(--color-principal);
    font-size: 1.3rem;
    font-family: var(--fuente-inter);
    margin: 0 auto;
}

.search-message .autor-cita {
    display: block;
    margin-top: 15px;
    text-align: right;
    margin-left: 0;
}