/* 
    Rediseño Premium: Inspiración "Vejer de la Frontera"
    Los Pueblos Más Bonitos de España
*/

html {
    scroll-behavior: smooth;
}

:root {
    /* --- BRANDING & COLORS --- */
    --bg-color: #f7f4f0;
    /* Color de fondo principal */
    --text-main: #362f2d;
    /* Color de texto principal */
    --text-muted: #7a706b;
    /* Color de texto secundario/suave */
    --accent-gold: #737100;
    /* Color de acento principal */
    --accent-red: #82181a;
    /* Color de acento secundario */
    --white: #ffffff;

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Jost', sans-serif;
    --font-script: 'Pinyon Script', cursive;

    /* --- LAYOUT & SHAPES --- */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --v-depth: 30px;
    /* Profundidad de la forma en V del header */
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* -----------------------------------------------------
   HEADER OVERLAY
----------------------------------------------------- */
.header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    --header-bg: rgba(247, 244, 240, 0.9);
    --header-pad: 15px 40px 25px 40px;
    /* Aumentado padding general */
    padding: var(--header-pad);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* El contenedor ahora permite proyectar la sombra del recorte sin cortarla */
    will-change: filter, padding;
}

.header-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--v-depth)), 50% 100%, 0 calc(100% - var(--v-depth)));
    transition: background 0.5s ease;
}

.header-container {
    position: relative;
    z-index: 1;
}

section {
    scroll-margin-top: 100px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left ul,
.nav-right ul {
    display: flex;
    gap: 30px;
}

.nav-left a,
.nav-right a {
    color: var(--text-main);
    /* Cambiado a oscuro para contraste */
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--accent-gold);
}

.logo {
    display: flex;
    align-items: center;
    padding: 20px;
    transform: translateY(15px);
    /* Posición más equilibrada */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-img {
    height: 45px;
    /* Logo mucho más pequeño y elegante */
    transition: height 0.5s ease;
}

.mobile-menu-toggle {
    display: none;
    color: var(--text-main);
    font-size: 24px;
}


/* -----------------------------------------------------
   HERO FULLSCREEN
----------------------------------------------------- */
.hero-fullscreen {
    position: relative;
    height: 75vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    overflow: hidden;
    /* Importante para que el fondo no sobresalga */
}

.hero-parallax-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    /* Altura extra para permitir el movimiento parallax */
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
    /* Hint para hardware acceleration */
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Degradado mucho más liviano: transparente casi todo el recorrido, solo oscurece la base */
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.breadcrumb {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb .dot {
    color: var(--accent-gold);
    margin: 0 5px;
}

.hero-title {
    font-size: 82px;
    font-weight: 600;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    color: var(--white);
    /* Sombra de texto por capas: una dura para contorno y una blanda para contraste global */
    text-shadow:
        1px 2px 4px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(0, 0, 0, 0.35);
    line-height: 1.05;
}

.badges {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.badge {
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.badge i {
    color: var(--accent-gold);
    margin-right: 8px;
    font-size: 13px;
}


/* -----------------------------------------------------
   SUB NAV SECTION (ICONS)
----------------------------------------------------- */
.sub-nav-section {
    background: var(--bg-color);
    padding: 50px 0 0px;
    /* Reducimos el padding inferior a 0 */
    border-bottom: none;
    /* Eliminamos el borde */
    /* Usamos un spread negativo para que la sombra NO se desparrame hacia abajo */
    box-shadow: 0 -40px 50px -20px rgba(0, 0, 0, 0.15);


    position: relative;
    z-index: 10;
    margin-top: -70px;
    /* Mayor solape con el Hero */
    border-radius: 60px 60px 0 0;
    /* Curva más pronunciada y elegante */
}

.icon-nav {
    display: flex;
    justify-content: space-between;
    gap: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
}

.icon-nav li {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 110px;
    /* Asegura que no se amontonen en móviles antes de romper línea */
}

.icon-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    transition: transform 0.3s;
    text-align: center;
}

.icon-nav a:hover {
    transform: translateY(-3px);
    color: var(--accent-gold);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0ddd8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
}

.icon-nav a:hover .icon-circle {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background: #fffbfa;
}

.icon-circle.fill {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.icon-nav span {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #e0ddd8;
}

.phone-mockup {
    font-size: 24px;
    color: var(--accent-gold);
}

.guide-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}


/* -----------------------------------------------------
   STATS & INTRO TEXT
----------------------------------------------------- */
.stats-section {
    padding: 40px 0 60px;
    background: var(--bg-color);
    position: relative;
    z-index: 20;
    /* Elevado para tapar la sombra inferior del nav */
}

.script-subtitle {
    font-family: var(--font-script);
    color: var(--accent-gold);
    font-size: 42px;
    line-height: 1;
    display: block;
    margin-bottom: -10px;
}

.section-heading {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 10px;
}

.script-font .stat-number {
    font-family: var(--font-script);
    font-size: 64px;
    color: var(--text-main);
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-text p:first-of-type {
    font-size: 22px;
    color: var(--text-main);
}


/* -----------------------------------------------------
   MIXED MEDIA GALLERY (ASYMMETRICAL)
----------------------------------------------------- */
.gallery-section {
    padding: 60px 0 100px;
}

.section-title-left {
    margin-bottom: 50px;
}

.section-title-left .script-subtitle {
    text-align: left;
}

.section-title-left .section-heading {
    text-align: left;
    margin-bottom: 20px;
}

.masonry-grid-expanded {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    /* Eliminamos grid-auto-rows para dejar que el aspect-ratio mande */
}

.masonry-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    aspect-ratio: 16 / 10;
    /* Formato horizontal premium */
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.item-lg {
    grid-column: span 2;
    grid-row: span 2;
    /* Sigue siendo horizontal porque 2x2 respeta el aspect-ratio del bloque */
}

.item-tall {
    /* La convertimos en horizontal quitando el span de fila */
    grid-row: span 1;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 37, 32, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.masonry-item:hover .img-overlay {
    opacity: 1;
}

.masonry-item:hover img {
    transform: scale(1.08);
}

/* -----------------------------------------------------
   LIGHTBOX PREMIUM
----------------------------------------------------- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 22, 20, 0.98);
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 3010;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--accent-gold);
}

.lightbox-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 3005;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

#lightbox-caption {
    color: white;
    margin-top: 25px;
    font-size: 18px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* -----------------------------------------------------
   PLACES OF INTEREST (CARDS)
----------------------------------------------------- */
.poi-section {
    padding: 60px 0 100px;
}

.poi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.poi-card {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.poi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.poi-img {
    width: 40%;
    flex-shrink: 0;
}

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

.poi-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    width: 60%;
}

.kicker {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 10px;
}

.kicker.natural {
    color: #5a8a63;
}

.kicker.heritage {
    color: var(--accent-gold);
}

.kicker.architecture {
    color: #8a6c5a;
}

.poi-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
    letter-spacing: -0.2px;
}

.poi-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Audio Player Compacto inside Card */
.poi-audio {
    background: #fdfbf9;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poi-audio i {
    color: var(--accent-gold);
}

.compact-audio {
    height: 30px;
    width: 100%;
}

.btn-leer-mas {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-leer-mas i {
    font-size: 10px;
    transition: transform 0.3s;
}

.poi-expanded-content.open+.btn-leer-mas i {
    transform: rotate(180deg);
}

.poi-expanded-content {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13.5px;
    color: var(--text-muted);
}

.poi-expanded-content.open {
    display: block;
    animation: fadeIn 0.5s;
}

.poi-expanded-content p {
    margin-bottom: 10px;
}


/* -----------------------------------------------------
   PRACTICAL INFO
----------------------------------------------------- */
.mixed-info {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid #f0ece6;
}

.practical-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-card {
    padding: 30px 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

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

.info-card i {
    font-size: 32px;
    margin-bottom: 20px;
}

.info-card h5 {
    font-size: 18px;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.h-green i {
    color: #5a8a63;
}

.h-yellow i {
    color: var(--accent-gold);
}

.h-blue i {
    color: #4a758c;
}

.h-red i {
    color: #8a4a4a;
}


/* -----------------------------------------------------
   FOOTER EDITORIAL
----------------------------------------------------- */
.footer-editorial {
    background: #1a1614;
    /* Marrón muy oscuro */
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 30px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
    margin-bottom: 25px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    margin-right: 10px;
    transition: background 0.3s;
}

.socials a:hover {
    background: var(--accent-gold);
}

.footer-links h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    background: #120f0e;
    padding: 25px 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Contact Tab */
.contact-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-gold);
    color: white;
    padding: 20px 10px;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
    border-radius: 4px 0 0 4px;
    z-index: 2000;
    cursor: pointer;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.contact-tab:hover {
    background: #966531;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------------------
   DEDICATED MEDIA SECTIONS (VIDEO & TOUR 360)
----------------------------------------------------- */
.dedicated-media-section {
    padding: 100px 0;
}

.dedicated-media-section.bg-dark {
    background: #1a1614;
    /* Marrón muy oscuro */
}

.dedicated-media-section.bg-beige {
    background: #e8e4dc;
    /* Beige contrastante */
}

.large-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 50vh;
    /* Altura dinámica al 50% del viewport */
    min-height: 400px;
    /* Asegura que no sea demasiado pequeño en móviles apaisados */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.large-media-wrapper video,
.large-media-wrapper iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay,
.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 10;
}

.video-overlay i,
.tour-overlay i {
    font-size: 50px;
    width: 90px;
    height: 90px;
    background: rgba(180, 123, 62, 0.9);
    /* accent-gold */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    /* Ajuste visual para el icono play */
    box-shadow: 0 0 0 0 rgba(180, 123, 62, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-overlay i {
    padding-left: 0;
    /* No necesita ajuste para el icono VR */
}

.video-overlay span,
.tour-overlay span {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.large-media-wrapper:hover .video-overlay,
.large-media-wrapper:hover .tour-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.large-media-wrapper:hover .video-overlay i,
.large-media-wrapper:hover .tour-overlay i {
    transform: scale(1.1);
    background: var(--accent-gold);
    box-shadow: 0 0 30px rgba(180, 123, 62, 0.6);
}

.large-media-wrapper:hover .video-overlay span,
.large-media-wrapper:hover .tour-overlay span {
    background: var(--white);
    color: var(--text-main);
    transform: translateY(5px);
}

.video-overlay i,
.tour-overlay i {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(180, 123, 62, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(180, 123, 62, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(180, 123, 62, 0);
    }
}

/* -----------------------------------------------------
   ANIMATIONS & PREMIUM REVEALS
----------------------------------------------------- */

/* Clase base para elementos que se revelan al hacer scroll */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variación con desenfoque para un look más cinematográfico */
.reveal-blur {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px);
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        opacity 1.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        filter 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Variación con efecto elástico 'Spring' para iconos */
.reveal-spring {
    opacity: 0;
    transform: translateY(30px) scale(0.7);
    transition: transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal-spring.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delay para grupos de elementos */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Micro-interacción premium para tarjetas (con sombra) */
.info-card:hover,
.poi-card:hover,
.masonry-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Micro-interacción premium para iconos de navegación (limpia, sin contenedor) */
.icon-nav li:hover .icon-circle {
    transform: scale(1.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(180, 123, 62, 0.2);
}

.icon-nav li:hover span {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.icon-nav li a {
    transition: all 0.4s ease;
}

.icon-nav li span {
    transition: all 0.4s ease;
    display: inline-block;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }

    .stats-grid {
        gap: 40px;
    }

    .poi-grid,
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .masonry-item.large {
        grid-column: auto;
        grid-row: auto;
        height: 300px;
    }

    .masonry-grid {
        grid-auto-rows: minmax(200px, auto);
    }
}

@media (max-width: 768px) {
    .header-overlay {
        --header-pad: 10px 20px 30px 20px;
        --logo-h: 40px;
        --logo-y: 10px;
    }

    .header-container {
        position: relative;
        justify-content: flex-end;
        /* Empuja el toggle a la derecha */
        min-height: 80px;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%) translateY(var(--logo-y));
        margin: 0;
        z-index: 10;
        transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .logo-img {
        height: var(--logo-h);
        transition: height 0.5s ease;
    }

    .nav-left,
    .nav-right {
        display: none;
        /* Ocultos por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        padding: 40px;
    }

    /* Cuando el menú está activo */
    .header-overlay.nav-active .nav-left {
        display: flex;
        z-index: 1001;
    }

    .header-overlay.nav-active .nav-right {
        display: flex;
        top: 50vh;
        /* La segunda mitad del menú */
        height: 50vh;
        z-index: 1001;
        background: transparent;
    }

    .header-overlay.nav-active .nav-left ul,
    .header-overlay.nav-active .nav-right ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .header-overlay.nav-active .nav-left a,
    .header-overlay.nav-active .nav-right a {
        font-size: 24px;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1100;
        /* Por encima del menú abierto */
        font-size: 28px;
        cursor: pointer;
    }

    .hero-title {
        font-size: 42px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

    .poi-card {
        flex-direction: column;
    }

    .poi-img {
        width: 100%;
        height: 250px;
    }

    .poi-content {
        width: 100%;
    }

    .practical-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .icon-nav {
        row-gap: 30px;
        padding-bottom: 20px;
    }

    /* Galería Móvil: 1ª imagen 1 col (full), siguientes 2 col */
    .masonry-grid-expanded {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .masonry-item,
    .item-lg,
    .item-tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        aspect-ratio: 1 / 1;
        /* Cuadradas en móvil para mejor grid */
    }

    .masonry-item:first-child {
        grid-column: span 2 !important;
        aspect-ratio: 16 / 9;
        /* La primera mantiene formato panorámico */
    }
}