@import url("https://use.typekit.net/aej0cok.css");
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* User Defined Palette */
    --base-color: #f2f0ea;
    /* Cream/Off-white background */
    --text-color: #000000;
    /* Primary text */
    --primary-color: #65461b;
    /* Deep Brown */
    --secondary-color: #2d2320;
    /* Darker Brown/Black */
    --services-bg-color: #faf9f6;

    /* Functional Colors & Spacing */
    --accent-gold: #b59b6b;
    /* Gold accent for luxury feel */
    --transition-speed: 0.4s;
    --section-padding: 8rem 2rem;
    --container-width: 1400px;
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size */
}

body {
    font-family: "sweet-sans-pro", sans-serif;
    background-color: var(--base-color);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
    font-family: "miller-banner-compressed", sans-serif;
    font-weight: 100;
    font-style: normal;
    line-height: 1;
    color: var(--secondary-color);
    /* Dark text by default for inner pages */
}

/* Specific overrides for Hero section in style.css end of file or here */

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--base-color);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

p {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-alt {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('imagenes/saten_beige.jpg');
    background-size: cover;
    background-position: center;
    /* Slightly darker shade of base */
}

/* Zigzag Layout Styles */
.content-grid-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.content-grid-layout .text-content,
.text-content-filosofia,
.content-grid-layout .image-content {
    flex: 1;
}



@media (max-width: 900px) {
    .content-grid-layout {
        flex-direction: column;
    }
}

.text-content-filosofia,
.text-content-filosofia p,
.text-content-filosofia h2 {
    color: var(--secondary-color);
}


.subtitle {
    font-family: "sweet-sans-pro", sans-serif;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

#servicios .subtitle {
    color: var(--base-color);
}

#servicios.section-padding {
    padding-top: 5px;
}

.texto-padding {
    padding-top: 50px;
}

/* --- BUTTONS --- */
.btn-primary,
.btn-secondary,
.btn-reservar {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    font-family: "sweet-sans-pro", sans-serif;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    background: var(--base-color);
    color: var(--primary-color);
    transition: all var(--transition-speed);
}

.btn-primary:hover,
.btn-reservar:hover {
    background-color: var(--accent-gold);
    color: var(--base-color);
}

.btn-secondary {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
    color: var(--base-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--base-color);
}

/* --- HEADER & NAV --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo-container .logo {
    height: 40px;
    /* Slightly larger */
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-item {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width var(--transition-speed);
}

.nav-item:hover::after {
    width: 100%;
}

.lang-switch {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-left: 1rem;
    letter-spacing: 0.1em;
    list-style: none;
}

.lang-switch a {
    text-decoration: none;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.lang-switch a.active,
.lang-switch a:hover {
    opacity: 1;
    font-weight: 600;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    padding-top: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagenes/1_2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    /* Eliminar transformaciones que pueden causar bordes blancos */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.hero-servicios {
    height: 400px;
    padding-top: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), url('imagenes/regalos_negros.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-reservar {
    height: 400px;
    padding-top: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagenes/IA_mesa_papelFabriano.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-filosofia {
    height: 400px;
    padding-top: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagenes/IA_montando_regalo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    /* Glassmorphism subtle effect for readability if needed, currently clean */
}

.isotipo {
    width: 70px;
    height: auto;
    object-fit: contain;
    margin-top: 1rem;
    opacity: 0.8;
}

#servicios {
    background-color: var(--base-color);
}

#servicios h2 {
    color: var(--base-color);
}

#filosofia {
    background-color: var(--services-bg-color);
}

#filosofia-texto {
    background-color: var(--base-color);
}

.philosophy-excerpt {
    background-color: var(--services-bg-color);
    padding: 4rem;
    border: 1px solid var(--accent-gold);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.philosophy-excerpt h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    text-transform: none;
    font-weight: 500;
}

.philosophy-excerpt p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.philosophy-excerpt .btn-text {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 4px;
    text-decoration: none;
}

.philosophy-excerpt .btn-text:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* --- PHILOSOPHY CTA --- */
.filosofia-cta {
    background-color: var(--text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative brand mark in the background */
.cta-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('imagenes/IA_montando_regalo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

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

.filosofia-cta h2 {
    font-family: "miller-banner-compressed", serif;
    font-size: 3rem;
    color: var(--base-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-decoration: underline 1px solid var(--accent-gold);
    text-underline-offset: 4px;
}

.filosofia-cta .btn-primary {
    background-color: var(--accent-gold);
    color: var(--base-color);
}

.filosofia-cta .btn-primary:hover {
    background-color: var(--base-color);
    color: var(--secondary-color);
}

/* --- SECTIONS --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    transition: border-color var(--transition-speed);
}

.service-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
    /* Subtle glow on hover */
}

.link-arrow {
    display: inline-block;
    margin-top: 1rem;
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

#contacto h2,
#contacto p {
    color: var(--secondary-color);
}

.contact-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    /* Ensures the texture doesn't spill out */
    color: var(--base-color);
    padding: 6rem 2rem;
    /* Increased padding for better breathing room */
    text-align: center;
}

/* Restoring the decorative background logo you had on the side */
.footer-bg-logo {
    background-image: url('imagenes/Asset 15@300x.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.footer-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 0;
}

.textura-papel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: darken;
    opacity: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "logo logo"
        "nav links"
        "copy copy"
        "lang lang";
    gap: 0.25rem 2rem;
    /* Drastically reduced vertical gap */
    padding: 0 2rem;
}

.footer-logo {
    grid-area: logo;
    text-align: center;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
}

.logo-sm {
    height: 25px;
    /* Slightly smaller logo to help with height */
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Tighter links */
    text-align: left;
    margin-bottom: 0;
    width: 100%;
    align-items: flex-end;
}

.footer-links a {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.75rem;
    /* Slightly smaller text */
    text-transform: uppercase;
    text-align: right;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    grid-area: copy;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 1rem;
    /* Reduced from 2rem */
    align-self: end;
    line-height: 1.2;
}

/* Language Switcher (Footer Override) */
.lang-switch-footer {
    grid-area: lang;
    text-align: center;
    margin-top: 0.25rem;
    /* Minimal gap */
}

.lang-switch {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.85rem;
    color: var(--base-color) !important;
    /* Force base color as requested */
    letter-spacing: 0.1em;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-switch a {
    color: var(--base-color) !important;
    text-decoration: none;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Tighter nav */
    text-align: left;
    margin-bottom: 0;
    width: 100%;
    align-items: flex-start;
}

.footer-nav a {
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 0.75rem;
    /* Match links size */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--base-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

/* --- ANIMATIONS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* --- RESPONSIVE NAVIGATION --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        margin: 0;
        padding: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        font-size: 1.5rem;
        color: var(--base-color) !important;
    }

    .btn-reservar {
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    /* JavaScript Toggle Animations */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

/* --- RESPONSIVE GENERAL --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* Adjust for mobile */
    }
}

/* --- FORMS --- */
.luxury-form-container {
    background-color: var(--services-bg-color);
    padding: 3rem;
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    max-width: 700px;
    margin: 0 auto;
}

.luxury-form-container h2 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(45, 35, 32, 0.3);
    background: transparent;
    font-family: "sweet-sans-pro", sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-color);
    outline: none;
    border-radius: 0;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-bottom-color: var(--accent-gold);
    box-shadow: 0 1px 0 0 var(--accent-gold);
}

/* Services List (Zigzag Layout) */
/* Zigzag Layout Container */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

/* Row Styling - Use this for the cards background */
/* Services List Container */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Row Styling - Use this for the cards background */
.service-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    /* --- COLOR DE FONDO DE LAS TARJETAS --- */
    background-color: var(--services-bg-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    scroll-margin-top: 100px;
}

/* 2-Column Layout for Desktop (If only 2 items) */
@media (min-width: 900px) {
    .services-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    /* Force column layout (Card style) inside grid */
    .service-row,
    .service-row:nth-child(odd) {
        flex-direction: column !important;
        align-items: stretch;
        text-align: center;
        padding: 0;
        /* Remove padding to let image fill */
        overflow: hidden;
        /* rounded corners if needed */
        gap: 0;
        height: 100%;
        /* Equal height */
    }

    .service-row .service-image {
        height: 300px;
        /* Fixed height for consistency */
        overflow: hidden;
    }

    .service-row .service-image img {
        height: 100%;
        object-fit: cover;
    }

    .service-row,
    .service-row:nth-child(odd) {
        padding: 3rem;
        text-align: center;
        align-items: center !important;
        justify-content: flex-start;
    }

    .service-row li {
        text-align: center;
    }

    .service-row ul {
        list-style-position: inside;
        padding: 0;

    }
}

.service-row .btn-primary {
    background-color: var(--accent-gold);
    color: var(--base-color);
}

.service-row .btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--base-color);
}

/* Service Details Toggle */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
}

.service-details.open {
    max-height: 500px;
    /* Arbitrary large height */
    opacity: 1;
}

.btn-toggle-details {
    background: none;
    border: none;
    font-family: "sweet-sans-pro", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--accent-gold);
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0;
    outline: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    /* Center button */
}

.btn-toggle-details:hover {
    color: var(--primary-color);
}

.btn-toggle-details .arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.btn-toggle-details.open .arrow {
    transform: rotate(90deg);
}

.service-image {
    flex: 1;
    /* Remove padding to let image fill space */
    padding: 0;
}

.service-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.servicios-prefooter,
.filosofia-prefooter {
    background-color: var(--services-bg-color);
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 5rem;
}

.servicios-prefooter h2,
.filosofia-prefooter h2 {
    color: var(--accent-gold) !important;
}

.servicios-prefooter p {
    color: var(--primary-color) !important;
    /* Force white text for contrast on gold/accent background */
}

.archive-prefooter {
    background-color: var(--primary-color);
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 6rem;
    padding-top: 6rem;
}

.archive-prefooter h2 {
    color: var(--base-color) !important;
}

.archive-prefooter p {
    color: var(--services-bg-color) !important;
    /* Force white text for contrast on gold/accent background */
}

/* Responsive for Services List */
@media (max-width: 900px) {

    .service-row,
    .service-row:nth-child(odd),
    .service-row:nth-child(even) {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }

    .service-row,
    .service-row:nth-child(odd),
    .service-row:nth-child(even) {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .service-info ul {
        list-style-position: inside;
        /* Better alignment for centered lists */
        padding: 0;
    }


}

/* --- THE ARCHIVE (GALLERY) --- */
.hero-archivo {
    height: 400px;
    padding-top: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('imagenes/saten_beige.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#archive-gallery {
    padding-top: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    background-color: #eee;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 35, 32, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-overlay span {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
    transform: translateY(10px);
    transition: transform 0.5s ease;
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 1rem 0;
    }
}

/* Services Grid Layout (Old - Scoped to avoid conflicts) */
.services-columns .service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 2rem;
    display: block;
}

/* --- DARK SECTION OVERRIDES --- */
/* Heros, CTAs and dark-background sections need light text */
.hero h1,
.hero h2,
.hero p,
.hero .nav-item,
.hero .lang-switch,
.hero-servicios h1,
.hero-servicios p,
.hero-servicios .nav-item,
.hero-servicios .lang-switch,
.hero-reservar h1,
.hero-reservar p,
.hero-reservar .nav-item,
.hero-reservar .lang-switch,
.hero-filosofia h1,
.hero-filosofia p,
.hero-filosofia .nav-item,
.hero-filosofia .lang-switch,
.hero-archivo h1,
.hero-archivo p,
.hero-archivo .nav-item,
.hero-archivo .lang-switch,
.bg-alt h2,
.bg-alt h3,
.bg-alt p,
.filosofia-cta h2,
.filosofia-cta h3,
.filosofia-cta p,
.archive-prefooter h2,
.archive-prefooter h3,
.archive-prefooter p,
footer,
footer p,
.copyright {
    color: var(--base-color) !important;
}

/* Specific background color for hamburger bars in dark sections */
.hero .bar,
.hero-servicios .bar,
.hero-reservar .bar,
.hero-filosofia .bar,
.hero-archivo .bar,
.bg-alt .bar,
.filosofia-cta .bar,
.archive-prefooter .bar {
    background-color: var(--base-color) !important;
}

/* Fix for transparent override if needed, otherwise remove the broken lines */

/* --- Service Details Toggle --- */
.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
    margin-bottom: 0;
}

.service-details.open {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 2rem;
    /* Add space when open */
}

.service-info {
    flex: 1;
    padding: 2rem;
    /* Removed padding-top: 50px to ensure centering */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Ensure content is vertically centered in box */
}

.service-info li {
    text-align: left;
}

.service-details li {
    text-align: left;
}

.btn-toggle-details {
    background: none;
    border: none;
    font-family: "sweet-sans-pro", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: var(--accent-gold);
    cursor: pointer;
    margin: 0 auto 1.5rem;
    /* Center button */
    padding: 0;
    outline: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Explicitly center content */
    gap: 0.5rem;
}

.btn-toggle-details .arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(0deg);
}

.btn-toggle-details.open .arrow {
    transform: rotate(180deg) !important;
}


.hero-servicios .bar,
.hero-reservar .bar,
.hero-filosofia .bar,
.hero-archivo .bar,
.filosofia-cta .bar,
.bg-alt .bar {
    background-color: var(--base-color) !important;
}

.page-header {
    background-color: var(--secondary-color);
    color: var(--base-color);
    padding: 10rem 2rem 4rem;
    /* Space for absolute navbar */
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1,
.page-header p {
    color: var(--base-color);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 35, 32, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
}

.lightbox-caption {
    color: var(--base-color);
    margin-top: 1.5rem;
    font-family: "miller-banner-compressed", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--base-color);
    font-size: 2.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-btn {
    background: none;
    border: none;
    color: var(--base-color);
    font-size: 3rem;
    cursor: pointer;
    pointer-events: auto;
    transition: color 0.3s, transform 0.3s;
}

.lightbox-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

/* Philosophy Pillars Grid */


.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding: 0 1rem;
}

@media (min-width: 900px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 0;
    }
}

.pillar-item {
    background-color: var(--services-bg-color);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(45, 35, 32, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.pillar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.pillar-item h3 {
    font-family: 'miller-banner-compressed', serif;
    font-size: 2rem;
    color: var(--accent-gold) !important;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pillar-item p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color) !important;
    opacity: 0.9;
}

/* Override background for pillars section specifically */
section.pilares {
    background-image: none !important;
    background-color: var(--accent-gold) !important;
}