/* === START: Content from global.css === */
:root {
    --primary-color: #f0f0e0;
    --secondary-color: #0e140f;
    --text-color: #f0f0e0;
    --light-text: #c0c0b0;
    
    --section-background: linear-gradient(to right, 
        hsl(135, 15%, 7%),
        hsl(137, 25%, 14%),
        hsl(135, 8%, 10%)
    );

    --font-secondary: 'Lato', sans-serif;
}

/* NEW: Animation keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
}
/* ... (rest of the file) ... */
.preloader-logo {
    max-width: 400px; 
    width: 8%;
    height: auto;
    /* NEW: Added animation */
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-hidden {
/* ... (rest of the file) ... */    
    opacity: 0;
    visibility: hidden;
}   

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif; 
    
    background-color: var(--secondary-color);
    
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: clip;
}

/* NEW: Stop body from scrolling when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

h1, h2, h3 { 
    font-family: 'Aboreto', serif; 
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #dad7cd;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease; 
}

.preloader-logo {
    max-width: 400px; 
    width: 8%;
    height: auto;
    /* NEW: Added animation */
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- Desktop Header --- */
.header {
    position: fixed;
    top: 10px; 
    left: 20%; 
    right: 20%; 
    background-color: rgba(14, 20, 15, 0.275);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(240, 240, 224, 0.038);
    border-radius: 17px; 
    overflow: hidden; /* This is fine for desktop */
    z-index: 1000; 
    
    /* Use flexbox for desktop */
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding: 8px 30px;
    
    box-shadow: 
        inset 1px 1px 1px 0px rgba(240, 240, 224, 0.25), 
        inset -1px -1px 1px 0px rgba(0, 0, 0, 0.05),
        0px 2px 12px rgba(0, 0, 0, 0.2);

    transition: background-color 0.9s ease;
}

.header-scrolled {
    background-color: rgba(14, 20, 15, 0.355);
}

.header .logo {
    letter-spacing: 0.26em;
    font-family: 'Aboreto', serif;
    font-size: 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 6px 10px; /* makes background visible on hover */
    border-radius: 8px;
    background-color: transparent;
    /* slightly slower transitions for a smoother hover */
    transition: color 400ms ease, transform 250ms ease;
    /* prepare for feathered background via pseudo-element */
    position: relative;
    z-index: 0;
}

.header .logo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.037); /* semi-transparent white */
    filter: blur(10px); /* feathered/soft edge */
    opacity: 0;
    transform: scale(1);
    transition: opacity 400ms ease, transform 250ms ease;
    pointer-events: none;
    z-index: -1; /* place behind the text */
}

.header .logo:hover::before,
.header .logo:focus::before {
    opacity: 1;
    transform: scale(1.02);
}

.header .logo:hover,
.header .logo:focus {
    /* keep element background transparent so ::before provides the soft fill */
    background-color: transparent;
    color: #ffffff; /* text becomes black */
    transform: translateY(0px);
    outline: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .header .logo,
    .header .logo:hover {
        transition: none;
        transform: none;
    }
}

/* Wrapper for nav + button */
.main-nav-container {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between nav and button */
}
.header nav {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.header nav a:hover {
    color: var(--primary-color); 
}

.header .header-btn {
    font-family: 'Lato', sans-serif; 
    font-weight: 500;
    padding: 2px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    background-color: #09350f;
    color: #ffffff;
    border: 2px solid #09350f;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.header .header-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}


/* --- Hamburger Menu Button --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Must be above the header AND the mobile menu overlay */
    
    /* NEW: Ensure it stays in place when its parent (.header) is 'overflow: visible' */
    position: relative; 
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-bar:not(:last-child) {
    margin-bottom: 5px;
}

/* Animate hamburger to "X" */
.menu-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: 20px;
    background-color: #25d36500;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float img {
    width: 100px;
    height: 100px;
}


/* =============================================== */
/* === START: Mobile Styles (Max-width: 768px) === */
/* =============================================== */

/* ALL CONTENT FROM THE @media (max-width: 768px) BLOCK HAS BEEN REMOVED. */

/* NEW: Footer Styles */
.site-footer {
    background-color: #1d1d1d; /* Dark grey bar */
    color: #000000;
    text-align: center;
    padding: 20px 10px;
    width: 100%;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    margin-top: auto; /* Helps stick to bottom if content is short */
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.site-footer p {
    margin: 0;
    opacity: 0.7;
}

/* === END: Content from global.css === */

/* === START: Content from index.css === */
/* Styles specific to index.html */

.hero {
    position: relative;
    /* CHANGED: Use 100vh to fill the screen */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    overflow: hidden; 
}

/* FAQ collapsible styles */
#faq {
    position: relative; /* Necesario para que z-index funcione */
    z-index: 5;         /* Para que se muestre por encima de #alojamiento */
    background-image: var(--section-background); /* Añade el fondo */
    min-height: 100vh;
     max-width: 100%;
    margin-bottom: 0px;
}

.faq-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 10px;
}

details.faq-item {
    background: rgba(240, 240, 224, 0.03);
    border: 1px solid rgba(240, 240, 224, 0.06);
    border-radius: 10px;
    margin-bottom: 16px;
}

details.faq-item summary {
    list-style: none; /* remove default marker */
    cursor: pointer;
    /* CHANGED: Fluid padding and font-size */
    padding: clamp(16px, 1.5vw, 18px) clamp(16px, 2vw, 20px);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 300;
    color: var(--text-color);
    user-select: none;
    transition: background 0.14s ease, color 0.14s ease;
}

/* Hide the default marker across browsers */
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::marker { content: none; }

/* custom chevron */
details.faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 12px;
    opacity: 0.95;
}

details.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

details.faq-item p {
    margin: 0;
    color: var(--light-text);
    line-height: 1.6;
    background: transparent;
    overflow: hidden;
    max-height: 0; /* collapsed */
    opacity: 0;
    /* CHANGED: Fluid horizontal padding */
    padding: 0 clamp(16px, 2vw, 20px);
    transform-origin: top;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, transform 0.3s ease;
}

/* Open state */
details.faq-item[open] p {
    max-height: 600px;
    opacity: 1;
    /* CHANGED: Fluid padding */
    padding: clamp(12px, 1.5vw, 16px) clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px);
}

/* Continuous background wrapper */
.sections-continuous {
    position: relative;
    background-image: var(--section-background);
    background-repeat: no-repeat;
    background-size: cover;
    /* CHANGED: Use vh to match #alojamiento's new height */
    margin-top: -100vh;
    /* CHANGED: Use vh and a fluid clamp() for the gap */
    padding-top: calc(100vh + clamp(60px, 15vw, 220px));
}

.sections-continuous > section {
    position: relative;
    z-index: 1;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover; 
    object-position: center center; 
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 20, 15, 0);
    z-index: -1; 
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 500px; 
    width: 25%;       
    height: 25%;
    margin-bottom: 100px; 
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    /* This is the sticky button you fixed earlier */
    position: sticky;
    left: 50%;
    /* CHANGED: Use vh for vertical positioning */
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    /* CHANGED: Fluid padding and font-size */
    padding: clamp(10px, 1.2vw, 12px) clamp(25px, 2.5vw, 30px);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #ffffff00;
    color: #ffffff;
    border: 2px solid #ffffff75;
    z-index: 60;
}

.hero .btn:hover {
    background-color: #ffffff3e;
    color: var(--primary-color);
    font-size: larger;
}

.content-section {
    /* CHANGED: Fluid vertical padding */
    padding: clamp(60px, 6vw, 80px) 10%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

#alojamiento {
     --frost-opacity: 0;
     position: sticky; 
     top: 0; 
     z-index: 1;
     background-image: var(--section-background); 
     padding: 0;
     /* CHANGED: Use 100vh to fill the screen */
     min-height: 100vh;
     max-width: 100%;
    margin-bottom: 0px;
}

.content-section h2 {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(30px, 4vw, 40px);
    color: var(--text-color); 
}

.content-section p {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-bottom: clamp(15px, 2vw, 20px);
    color: var(--light-text); 
}

.content-section ul {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    margin-left: 20px;
    margin-bottom: clamp(15px, 2vw, 20px);
    color: var(--light-text);
}

.alojamiento-text {
    position: absolute; 
    left: 10%;
    top: 50%; 
    transform: translateY(-50%); 
    z-index: 4;
    width: 45%;
    /* CHANGED: Fluid padding */
    padding: clamp(20px, 3vw, 40px);
    box-sizing: border-box; 
    border-radius: 5px;
    text-shadow: #d4e6d7;
}

.alojamiento-text h2 {
    text-align: left;
    line-height: 1.1;
    color: var(--text-color);
    text-shadow: #d4e6d7;
    
    /* CHANGED: Fluid margins and font-size using vh and vw */
    margin-top: clamp(150px, 25vh, 350px);
    margin-bottom: clamp(30px, 5vw, 70px);
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
}

.alojamiento-image-container {
    position: absolute; 
    width: 66%;
    height: 85%;
    z-index: 1;
    
    /* CHANGED: Fluid positioning using vh and vw */
    right: clamp(30px, 5vw, 60px);
    top: clamp(80px, 10vh, 120px);
    bottom: clamp(100px, 18vh, 200px);
}

.alojamiento-image-container img {
    width: 100%;
    height: 100%; 
    object-fit: cover;
    display: block; 
    border-radius: 15px; 
    border: #ffffff;
    
    mask-image: linear-gradient(to right, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 60%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 60%);
}

.alojamiento-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    background: rgba(240, 240, 224, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    z-index: 3;
    opacity: var(--frost-opacity);
    transition: opacity 0.2s ease-out;
}

#sobre {
    position: relative;
    z-index: 5;
    background-image: var(--section-background); 
    /* CHANGED: Fluid padding */
    padding: clamp(60px, 6vw, 80px) 10%;
    max-width: 1200px; 
    margin: 0 auto; 
    
    display: flex;
    align-items: center;
}

.sobre-text {
    position: relative; 
    z-index: 4;
    flex-basis: 50%; 
    order: 2; 
    box-sizing: border-box; 
    border-radius: 5px;
    text-shadow: #d4e6d7;
    
    transform: none;
    width: auto;
    padding: 0;
}

.sobre-text h2 {
    text-align: left;
    margin-top: 0; 
    line-height: 1.1;
    color: var(--text-color);
    text-shadow: #d4e6d7;
    
    /* CHANGED: Fluid margin and font-size */
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
}

.sobre-image-container {
    position: relative; 
    flex-basis: 45%; 
    order: 1; 
    z-index: 1;
    
    width: auto;
    height: auto;
}

.sobre-image-container img {
    width: 160%;
    height: auto; 
    object-fit: cover;
    display: block; 
    border-radius: 15px; 
    border: #ffffff;
    
    mask-image: linear-gradient(to left, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 60%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 10%, rgba(0,0,0,1) 60%);
}

.reservar-btn-sticky {
    position: absolute;
    left: 66%;
    top: 66%;
    z-index: 5;
    opacity: 1; 
    transform: translate(-50%, -50%); 
    
    font-family: var(--font-secondary);
    font-weight: 500;
    /* CHANGED: Fluid padding and font-size */
    padding: clamp(10px, 1.2vw, 12px) clamp(25px, 2.5vw, 30px);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #19201a;
    border: 2px solid var(--primary-color);
    white-space: nowrap;
}

.reservar-btn-sticky:hover {
    background-color: transparent;
    color: var(--primary-color);
}


#eventos {
    position: relative;
    z-index: 2;
    /* CHANGED: Fluid padding */
    padding: clamp(30px, 4vw, 40px);
    margin-top: 50px;
    background-image: var(--section-background); 
}

.eventos-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10%;
    position: relative;
}

.sticky-title {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: clamp(30px, 4vw, 40px);
    color: var(--text-color);
}

.event-card {
    position: sticky;
    width: 100%;
    /* CHANGED: Fluid min-height and margin */
    min-height: clamp(300px, 45vw, 550px);
    margin-bottom: clamp(30px, 4vw, 50px);
    background: rgba(240, 240, 224, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(240, 240, 224, 0.15);
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    box-shadow: 
        inset 1px 1px 1px 0px rgba(240, 240, 224, 0.25), 
        inset -1px -1px 1px 0px rgba(0, 0, 0, 0.05),
        0px 2px 12px rgba(0, 0, 0, 0.2);
}

#card-1 {
    /* CHANGED: Use vh for sticky top */
    top: clamp(100px, 15vh, 150px);
    z-index: 1;
}
#card-2 {
    /* CHANGED: Use vh for sticky top */
    top: clamp(100px, 15vh, 150px);
    z-index: 2;
}
#card-3 {
    /* CHANGED: Use vh for sticky top */
    top: clamp(100px, 15vh, 150px);
    z-index: 3;
    margin-bottom: 100px; 
}

.event-card-content {
    flex: 1 1 350px;
    /* CHANGED: Fluid padding */
    padding: clamp(25px, 3vw, 40px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card-content h3 {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--text-color);
    margin-bottom: clamp(15px, 2vw, 20px);
}

.event-card-content p {
    /* CHANGED: Fluid font-size */
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 0;
}

.event-card-image {
    flex: 1 1 350px;
    height: auto;
}

.event-card-image img {
    margin-top: 5%;
    width: 90%;
    height: 90%;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

#galeria {
    position: relative;
    z-index: 4;
    background-image: var(--section-background); 
    /* CHANGED: Fluid padding and margin */
    padding: clamp(60px, 6vw, 80px) 0;
    margin-bottom: 0;
}

.galeria-wrapper {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0;
}

#galeria h2 {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: clamp(40px, 5vw, 60px);
    color: var(--text-color);
    padding: 0 5%;
    box-sizing: border-box;
}

.galeria-container {
    display: grid;
    grid-template-columns: 30% 1fr;
    /* CHANGED: Fluid gap */
    gap: clamp(20px, 3vw, 40px);
    position: relative;
}

.galeria-index {
    grid-column: 1 / 2; 
    grid-row: 1;
    position: sticky;
    /* CHANGED: Fluid top and height */
    top: clamp(80px, 10vh, 120px);
    height: calc(100vh - clamp(160px, 20vh, 240px));
    align-self: start;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.galeria-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 8px;
    box-sizing: border-box;
    pointer-events: auto;
}
.galeria-nav-btn {
    background: rgba(240,240,224,0.06);
    color: var(--text-color);
    border: 1px solid rgba(240,240,224,0.12);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
}
.galeria-nav-btn:hover:not(:disabled) {
    background: rgba(240,240,224,0.12);
    transform: translateY(-1px);
}
.galeria-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.galeria-edge-btn {
    background: transparent;
    color: #ffffff87;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 8px;
    font-size: 0;
    transition: transform 0.12s ease;
    box-shadow: none;
    border: 0;
}
.galeria-edge-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,0.08);
    outline-offset: 2px;
}
.galeria-edge-btn::before,
.galeria-edge-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
}
.galeria-edge-btn::before {
    width: 4px;
    height: 24px;
    background: currentColor;
    border-radius: 2px;
}
.galeria-edge-btn::after {
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 24px solid currentColor;
}
.galeria-edge-btn.up::before { top: calc(50% + 18px); }
.galeria-edge-btn.up::after  { top: calc(50% - 18px); color: #ffffffc8; }
.galeria-edge-btn.down::after  {
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffffffc8;
    border-bottom: 0;
    border-top: 24px solid currentColor;
}
.galeria-edge-btn.down::before {
    display: none;
}
.galeria-edge-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.galeria-edge-btn:disabled {
    opacity: 0.35;
    cursor: default;
}


.galeria-index::-webkit-scrollbar {
    display: none;
}
.galeria-index {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Statistics / capacity section */
.stats-section {
    position: relative;
    z-index: 2;
    isolation: isolate;
    margin-top: 0; 
    /* CHANGED: Fluid vertical padding */
    padding: clamp(20px, 3vw, 40px) 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1; 
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    background-image: var(--section-background); 
}

.stats-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 10%; 
}

.stats-section h2 {
    /* CHANGED: Fluid font-size and margin */
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: clamp(20px, 3vw, 30px);
    color: var(--text-color);
}
.stats-row {
    display: flex;
    /* CHANGED: Fluid gap */
    gap: clamp(15px, 2vw, 24px);
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: visible;
}
.stats-row .stat {
    flex: 1 1 0;
    min-width: 0;
    min-height: 80px;
    /* CHANGED: Fluid padding */
    padding: clamp(20px, 2.5vw, 28px) clamp(10px, 1.5vw, 16px);
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
}
.stat-desc {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #96968e;
    line-height: 1.4;
}
.stats-groups {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.stat-group {
    flex: 1 1 300px;
    min-width: 220px;
}
.stat-group h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-family: "Aboreto", serif;
    color: var(--text-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
}
.stat {
    background: rgba(240, 240, 224, 0);
    border: 1px solid rgba(240, 240, 224, 0);
    padding: 18px 12px;
    border-radius: 10px;
    text-align: center;
}
.stat-number {
    /* CHANGED: Fluid font-size */
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
}
.stat-label {
    font-size: 0.95rem;
    color: var(--light-text);
    margin-top: 6px;
}

.galeria-index ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.index-item {
    font-family: 'Aboreto', serif;
    font-size: .6rem;
    margin-bottom: 5px; 
    background: rgba(240, 240, 224, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s ease;
    pointer-events: auto; 
    border-radius: 10px; 
    box-shadow: 
        inset 1px 1px 1px 0px rgba(240, 240, 224, 0.25), 
        inset -1px -1px 1px 0px rgba(0, 0, 0, 0.05),
        0px 2px 12px rgba(0, 0, 0, 0.2);
}

.index-item a {
    display: block;
    text-decoration: none;
    color: var(--light-text);
    /* CHANGED: Made font and padding smaller to fit */
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    transform-origin: left center;
    position: relative;
    z-index: 1;
    padding: clamp(3px, 1vh, 6px) clamp(15px, 1.5vw, 20px);
    box-sizing: border-box;
}

.index-item.active {
    background: rgba(240, 240, 224, 0.2);
    border-color: rgba(240, 240, 224, 0.4);
}

.index-item.active a {
    color: var(--text-color);
    font-weight: 700;
    transform: scale(1.1);
}

.galeria-fotos {
    grid-column: 2 / 3; 
    grid-row: 1;
    width: 100%;
    position: relative;
    z-index: 3;         
}

.foto-grupo {
    /* CHANGED: Fluid margin */
    margin-bottom: clamp(40px, 6vw, 80px);
}

.foto-grupo h3 {
     /* CHANGED: Fluid font-size and margin */
     font-size: clamp(1.2rem, 2vw, 1.5rem);
     color: var(--light-text);
     margin-bottom: clamp(15px, 2vw, 20px);
     border-bottom: 1px solid rgba(240, 240, 224, 0.15);
     padding-bottom: 10px;
}

.galeria-fotos img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 20px;
}

#contacto {
    position: relative;
    z-index: 5;
    background-image: var(--section-background); 
    /* CHANGED: Fluid padding */
    padding-top: clamp(60px, 6vw, 80px);
    padding-bottom: clamp(60px, 6vw, 80px);
}

.contact-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* CHANGED: Fluid gap and margin */
    gap: clamp(10px, 1vw, 20px);
    margin-top: clamp(30px, 3vw, 40px);
}

.contact-card {
    background: rgba(240, 240, 224, 0);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(240, 240, 224, 0);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        inset 1px 1px 1px 0px rgba(240, 240, 224, 0.25), 
        inset -1px -1px 1px 0px rgba(0, 0, 0, 0.05),
        0px 2px 12px rgba(0, 0, 0, 0.2);
    
    /* REVISADO: Usar flexbox para centrar el logo */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* REVISADO: Ajustar padding para el logo */
    padding: clamp(20px, 2.5vw, 30px);
    
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(240, 240, 224, 0.1);
    border-color: rgba(240, 240, 224, 0.3);
}

/* NUEVO: Ocultar los elementos de texto */
.contact-card h4,
.contact-card p {
    display: none;
}

/* NUEVO: Estilos para los logos */
.contact-logo {
    height: 45px;  /* Puedes ajustar este tamaño */
    width: 45px;   /* Puedes ajustar este tamaño */
    object-fit: contain;
    opacity: 1; /* Ligera transparencia para que se integre */
    transition: all 0.3s ease;
}

/* NUEVO: Efecto hover para el logo */
.contact-card:hover .contact-logo {
    opacity: .6;
    transform: scale(1.1);
}
/* === END: Content from index.css === */