:root {
    --brand-green: #1a5c2a;
    --brand-green-dark: #113d1b;
    --brand-gold: #c5a021;
    --brand-gold-light: #e6c669;
    --brand-gold-gradient: linear-gradient(135deg, #c5a021 0%, #e6c669 50%, #c5a021 100%);
    --brand-gray: #3a3a3a;
    --brand-gray-light: #f0f2f1;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* Header */
.announcement-bar {
    background: var(--brand-green);
    color: var(--white);
    text-align: center;
    padding: 10px 10%;
    font-size: 0.85rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    font-weight: 500;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.announcement-slider {
    position: relative;
    width: 100%;
}

.announcement-item {
    display: none;
    animation: fadeInSlide 0.8s ease forwards;
}

.announcement-item.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.announcement-bar i {
    margin-right: 8px;
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

header {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    padding: 12px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid;
    border-image: var(--brand-gold-gradient) 1;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

header.scrolled {
    padding: 8px 10%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    padding: 5px;
    border-radius: 8px;
    text-decoration: none;
}

.logo img {
    height: 50px;
}

/* Efecto de Brillo Metálico (Shimmer) */
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: logoShimmer 4s ease-in-out 3;
    animation-delay: 1s;
    pointer-events: none;
}

@keyframes logoShimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* nav-close y cta-btn-mobile: solo visibles en móvil */
.nav-close,
.cta-btn-mobile {
    display: none;
}

/* =============================================
   HAMBURGER MENU
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--brand-green);
    border-radius: 2px;
    transition: all 0.35s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Nav Overlay (backdrop móvil) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.nav-overlay.active {
    display: block;
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.logo span {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Nav en desktop: asegura que se vea correctamente */
#nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    display: block;
    padding: 0;
    overflow: visible;
    transform: none;
    transition: none;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--brand-gray);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--brand-green);
}

.cta-btn {
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(197, 160, 33, 0.3);
    border: 2px solid transparent;
}

.cta-btn:hover {
    background: transparent;
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 130px 10% 0;
    overflow: hidden;
    /* Líneas Divisoras Doradas */
    border-top: 3px solid;
    border-bottom: 3px solid;
    border-image: var(--brand-gold-gradient) 1;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.3s forwards;
}

.hero-btns {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.6s forwards;
}

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

/* Trust Bar */
.trust-bar {
    padding: 20px 10%;
    background: var(--brand-gray-light);
    text-align: center;
}

.trust-bar h2 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: linear-gradient(
        90deg,
        #c5a021 0%,
        #c5a021 25%,
        #fff0a0 45%,
        #fffde0 50%,
        #fff0a0 55%,
        #c5a021 75%,
        #c5a021 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    animation: goldShimmer 8s linear infinite;
    filter: drop-shadow(0 0 6px rgba(197, 160, 33, 0.55));
}

@keyframes goldShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.trust-bar h2::before,
.trust-bar h2::after {
    content: '';
    flex: 0 0 70px;
    height: 1px;
    background: linear-gradient(135deg, #c5a021 0%, #e6c669 50%, #c5a021 100%);
    opacity: 0.75;
}

.logos-container {
    overflow: hidden;
    overflow-x: clip;
    padding: 20px 0;
    background: var(--brand-gray-light);
    white-space: nowrap;
    position: relative;
}

.logos-container:before,
.logos-container:after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
}

.logos-container:before {
    left: 0;
    background: linear-gradient(to right, var(--brand-gray-light), transparent);
}

.logos-container:after {
    right: 0;
    background: linear-gradient(to left, var(--brand-gray-light), transparent);
}

.logos-slide {
    display: inline-block;
    animation: 45s slide infinite linear;
}

.logos-slide img {
    height: 40px;
    margin: 0 30px;
    vertical-align: middle;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logos-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Services */
.services {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--brand-green);
}

.section-header .divider {
    width: 80px;
    height: 4px;
    background: var(--brand-gold);
    margin: 20px auto;
}

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

.service-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid rgba(197,160,33,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    cursor: pointer; /* Indicar que es clickeable */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--brand-gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--brand-gold-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-green-dark);
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(197, 160, 33, 0.2);
}

.service-card h3 {
    color: var(--brand-green);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* El contenido interno ahora se mostrará solo en el modal */
.service-list, .service-cta {
    display: none;
}


/* En móvil se maneja por toque (.active) */
@media (max-width: 768px) {
    .service-list, .service-cta {
        /* Por defecto ocultos en móvil hasta el toque */
    }
}

/* About Rosa Tineo */
.about {
    padding: 100px 10%;
    background: var(--brand-green);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 60px;
    overflow: hidden;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -18px;
    right: -18px;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--brand-gold-gradient);
    z-index: 0;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.about-content {
    flex: 1;
}

.about-title {
    font-size: 3rem;
    margin-bottom: 5px;
    background: var(--brand-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--brand-white, #fff);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
}

.about-content .btn {
    display: inline-block;
    margin-top: 30px;
    color: var(--brand-gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--brand-gold);
    padding-bottom: 5px;
}

/* Testimonios */
.testimonials {
    padding: 100px 10%;
    background: var(--brand-gray-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Ocultar testimonios a partir del 7mo por defecto (PC: 6 visibles) */
.testimonial-card:nth-child(n+7) {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* En móvil: ocultar a partir del 5to (4 visibles) */
@media (max-width: 768px) {
    .testimonial-card:nth-child(n+5) {
        display: none;
        opacity: 0;
        transform: translateY(20px);
    }
    
    .testimonial-card:nth-child(-n+6) {
        display: flex; /* Asegura que los primeros 6 se vean en PC pero solo los primeros 4 en móvil */
    }

    .testimonial-card:nth-child(n+5) {
        display: none !important;
    }
}

/* Mostrar cuando el contenedor tiene la clase 'expanded' */
.testimonials-grid.expanded .testimonial-card {
    display: flex !important;
    animation: fadeInUp 0.5s forwards;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid rgba(197, 160, 33, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--brand-gold);
}

.stars {
    color: var(--brand-gold);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-gold);
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--brand-green-dark);
}

.author-info span {
    font-size: 0.85rem;
    color: #888;
}

.testimonials-actions {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-gold);
    color: var(--brand-green-dark);
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-outline:hover {
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    box-shadow: 0 10px 20px rgba(197, 160, 33, 0.2);
    transform: translateY(-3px);
}

.btn-outline i {
    transition: transform 0.3s ease;
}

.btn-outline.active i {
    transform: rotate(180deg);
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    background: var(--brand-gray);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--brand-gold);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Redes Sociales y Sello */
.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--brand-gold);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 33, 0.3);
}

.sello-container {
    margin-top: 20px;
}

.uaf-sello {
    max-width: 140px;
    height: auto;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.uaf-sello:hover {
    transform: scale(1.05);
}

/* Preguntas Frecuentes (FAQ) */
.faq-section {
    padding: 100px 10%;
    background: var(--brand-gray-light);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(197, 160, 33, 0.1);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--brand-gold);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--brand-green-dark);
    font-size: 1.1rem;
    transition: var(--transition);
}

.faq-question i {
    color: var(--brand-gold);
    transition: transform 0.4s ease;
    font-size: 0.9rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.faq-answer p {
    padding: 0 30px 24px;
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Ajustar según contenido */
}

.faq-item.active .faq-question {
    color: var(--brand-gold);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 6%;
    }
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
    .faq-answer p {
        padding: 0 20px 20px;
    }
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}

/* Responsividad */
@media (max-width: 992px) {
    .about {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* =============================================
   RESPONSIVIDAD MÓVIL (≤768px)
   ============================================= */
@media (max-width: 768px) {

    /* Header: logo centrado, hamburger a la derecha */
    header {
        justify-content: center;
        position: relative;
        padding: 10px 16px;
    }

    .logo {
        justify-content: center;
    }

    /* Mostrar hamburger y ocultar CTA desktop */
    .hamburger {
        display: flex;
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    header > .cta-btn {
        display: none !important;
    }

    /* Nav Móvil — panel lateral izquierdo */
    #nav-menu {
        position: fixed;
        top: 106px;
        left: 0;
        width: 55%;
        max-width: 200px;
        height: auto;
        background: var(--brand-green);
        padding: 8px 0 24px;
        box-shadow: 6px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transform: translateX(-100%);
        opacity: 1;
        pointer-events: none;
        transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        border-top: none;
        border-image: none;
        border-top: 3px solid;
        border-right: 3px solid;
        border-bottom: 3px solid;
        border-image: var(--brand-gold-gradient) 1;
        border-bottom-right-radius: 16px;
    }

    #nav-menu.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    /* Ocultar X interior */
    .nav-close { display: none !important; }

    /* Links del nav en móvil */
    #nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    #nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    #nav-menu ul li:last-child { border-bottom: none; }

    #nav-menu ul li a {
        display: block;
        padding: 16px 22px;
        font-size: 1rem;
        color: var(--white) !important;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-align: left;
        transition: var(--transition);
    }

    #nav-menu ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 28px;
    }

    /* CTA móvil dentro del nav */
    .cta-btn-mobile {
        display: block !important;
        margin: 25px auto 0;
        text-align: center;
        width: fit-content;
        min-width: 130px;
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    /* --- Hero Slider Móvil --- */
    .hero-slider {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5; /* Proporción solicitada 4:5 (Vertical) */
        padding: 60px 8% 40px; /* Ajuste de padding para la nueva proporción */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-btns .cta-btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* --- Trust bar: Espacio Reducido --- */
    .trust-bar {
        padding: 15px 5%; /* Reducido de 40px a 15px */
    }
    
    .trust-bar h2 {
        font-size: 0.85rem;
        letter-spacing: 1px;
        gap: 0;
        line-height: 1.4;
        max-width: 260px;
        margin: 0 auto 8px auto; /* Margen inferior reducido */
    }

    .logos-container {
        padding: 8px 0; /* Espacio interno del carrusel reducido */
    }

    .logos-slide img {
        height: 30px; /* Logos un poco más pequeños para ahorrar espacio vertical */
        margin: 0 15px; /* Espacio horizontal entre logos reducido */
    }

    .trust-bar h2::before,
    .trust-bar h2::after {
        display: none;
    }

    /* --- Servicios: 2 columnas --- */
    .services {
        padding: 60px 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-card {
        padding: 24px 18px;
    }

    .service-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .service-card p {
        font-size: 0.88rem;
    }

    /* --- About --- */
    .about {
        padding: 60px 5%;
        flex-direction: column;
        gap: 40px;
    }

    /* --- Contacto --- */
    #contacto {
        padding: 60px 5% !important;
    }

    /* --- Testimonios Móvil --- */
    .testimonials {
        padding: 40px 4%;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .testimonial-card {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .testimonial-card .stars {
        margin-bottom: 10px;
        font-size: 0.75rem;
    }

    .testimonial-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 15px;
    }

    .testimonial-author img {
        width: 35px;
        height: 35px;
    }

    .author-info h4 {
        font-size: 0.8rem;
    }

    .author-info span {
        font-size: 0.7rem;
    }

    /* --- Footer Móvil: 2 Columnas y Ajustes de Espacio --- */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px;
        text-align: left;
    }

    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .footer-col p, .footer-col ul li {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .social-links {
        gap: 8px;
        margin-bottom: 15px;
    }

    .social-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .uaf-sello {
        max-width: 100px;
    }

    .chat-widget {
        bottom: 20px !important;
        right: 20px !important;
    }

    .chat-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.2rem !important;
    }

    .footer-col:first-child {
        margin-bottom: 10px;
    }
}

/* Opciones de Chat (Botones interactivos estilo Tarjeta) */
.chat-options {
    display: grid;
    grid-template-columns: 1fr; /* Columna única para mejor legibilidad */
    gap: 10px;
    margin-top: 15px;
    animation: fadeInUp 0.5s forwards;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(197, 160, 33, 0.4);
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.option-btn i {
    color: var(--brand-gold);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.option-btn:hover {
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    border-color: transparent;
    transform: translateX(5px);
}

.option-btn:hover i {
    color: var(--brand-green-dark);
}

#chat-reset, #chat-close {
    transition: var(--transition);
    opacity: 0.7;
}

#chat-reset:hover, #chat-close:hover {
    transform: scale(1.15);
    opacity: 1;
}

#chat-reset:hover { color: var(--brand-gold); }
#chat-close:hover { color: #ff4d4d; }


/* Chatbot Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(197, 160, 33, 0.4);
    transition: var(--transition);
    border: none;
    animation: pulse 2s infinite;
}

.chat-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    max-height: 550px;
    height: 70vh;
    background: rgba(58, 58, 58, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: var(--brand-green);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chat-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--brand-gold);
    object-fit: cover;
}

.chat-header .bot-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--brand-gold);
}

.chat-header .bot-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.4;
    white-space: pre-wrap;
}

.message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: var(--brand-gold);
    color: var(--brand-green);
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    display: none; /* Eliminado para Chatbot 100% interactivo por menús */
}

.chat-send-btn {
    background: var(--brand-gold);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    color: var(--brand-green);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* Typing animation */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px 0;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--brand-gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* --- CLEAN ROYAL HISTORY STYLES --- */
.history-page {
    background: #fdfbf7; /* Ivory/Sand White */
    color: #1a1a1a;
}

.history-hero {
    padding: 160px 10% 80px;
    background: #fdfbf7;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text-block h1 {
    font-size: 4rem;
    line-height: 1;
    color: var(--brand-green-dark);
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-text-block h1 span {
    color: var(--brand-gold);
}

.hero-image-block {
    position: relative;
    padding: 20px;
}

.hero-image-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    border-top: 2px solid var(--brand-gold);
    border-left: 2px solid var(--brand-gold);
    z-index: 1;
}

.hero-image-block img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    box-shadow: 20px 20px 0px rgba(197, 160, 33, 0.05);
}

.royal-narrative {
    padding: 80px 10%;
}

.narrative-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.narrative-container h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--brand-green-dark);
}

.narrative-container p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Silk Timeline */
.timeline-silk {
    padding: 100px 10%;
    background: #fff;
}

.timeline-wrap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: #eee;
}

.stage {
    position: relative;
    padding-left: 50px;
    margin-bottom: 80px;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Animación de entrada opcional si JS está activo */
.reveal-on-scroll {
    visibility: visible;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll.revealed {
    animation: fadeInUp 0.8s forwards;
}

.stage-dot {
    position: absolute;
    left: -5px;
    top: 0;
    width: 11px;
    height: 11px;
    background: var(--brand-gold);
    border-radius: 50%;
}

.stage-date {
    font-weight: 700;
    color: var(--brand-gold);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 15px;
}

.stage h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--brand-green-dark);
}

.stage p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
}

@media (max-width: 992px) {
    .hero-split { grid-template-columns: 1fr; gap: 40px; }
    .hero-text-block h1 { font-size: 3rem; }
    .hero-image-block { order: -1; max-width: 400px; margin: 0 auto; }
}

/* --- Location Section (Leaflet) --- */
.location-section {
    padding: 100px 10%;
    background: var(--white);
}

.map-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 40px;
    height: 450px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(197, 160, 33, 0.2);
    z-index: 1;
}

.location-info-card {
    background: var(--brand-gray-light);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(197, 160, 33, 0.2);
}

.location-info-card h3 {
    color: var(--brand-green-dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.location-info-card p {
    margin-bottom: 15px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-info-card i {
    color: var(--brand-gold);
    width: 20px;
}

.map-link-btn {
    margin-top: 25px;
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.map-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(197, 160, 33, 0.3);
}

@media (max-width: 992px) {
    .map-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }
    #map {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .location-section {
        padding: 60px 6%;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 90vw;
        right: 0;
        bottom: 80px;
    }
}

/* --- MODAL DE SERVICIOS --- */
.s-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.s-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.s-modal-content {
    position: relative;
    background: linear-gradient(var(--white), var(--white)) padding-box, 
                var(--brand-gold-gradient) border-box;
    border: 3px solid transparent;
    width: 90%;
    max-width: 500px;
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    z-index: 1;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.s-modal.active .s-modal-content {
    transform: translateY(0) scale(1);
}

.s-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-gray-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--brand-green-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.s-modal-close:hover {
    background: var(--brand-gold-gradient);
    transform: rotate(90deg);
}

#s-modal-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#s-modal-data .service-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    margin-bottom: 25px;
    background: var(--brand-gold-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green-dark);
}

#s-modal-data h2 {
    color: var(--brand-green);
    font-size: 2rem;
    margin-bottom: 15px;
}

#s-modal-data p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

#s-modal-data .modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    text-align: left;
    width: 100%;
}

#s-modal-data .modal-list li {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

#s-modal-data .modal-list li i {
    color: var(--brand-gold);
    font-size: 1rem;
}

#s-modal-data .modal-cta {
    width: 100%;
    padding: 16px;
    background: var(--brand-gold-gradient);
    color: var(--brand-green-dark);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(197, 160, 33, 0.3);
    transition: var(--transition);
    font-family: 'Space Grotesk', sans-serif;
}

#s-modal-data .modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(197, 160, 33, 0.4);
}

@media (max-width: 768px) {
    .s-modal-content {
        padding: 40px 25px;
        width: 95%;
        border-radius: 20px;
    }
    #s-modal-data h2 { font-size: 1.6rem; }
    #s-modal-data p { font-size: 1rem; }
}

