/* ============================================ */
/* 🟢 1. VARIABLES & CONFIGURACIÓN (SETUP) */
/* ============================================ */
:root {
    /* --- PALETA DE COLORES (Desde JSON) --- */
    --primary: #8B4513;        /* Marrón Madera */
    --primary-dark: #5D2E0C;   /* Marrón Oscuro (Hover) */
    --secondary: #2F4F4F;      /* Verde Bosque Profundo */
    --accent: #CD853F;         /* Dorado/Ocre (Detalles) */
    
    /* --- FONDOS Y TEXTOS --- */
    --bg-light: #FFF8DC;       /* Crema suave (Cornsilk) */
    --bg-white: #FFFFFF;
    --text-main: #3E2723;      /* Marrón muy oscuro (casi negro) */
    --text-muted: #6D4C41;     /* Marrón medio */
    --text-light: #F5F5F5;     /* Para fondos oscuros */

    /* --- EFECTO GLASSMORPHISM (La Vibe del sitio) --- */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-dark: rgba(20, 30, 30, 0.6); /* Para overlay hero */
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --blur-amount: 12px;

    /* --- TIPOGRAFÍA --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* --- ESPACIADO & BORDES --- */
    --container-width: 1200px;
    --section-padding: 5rem 1.5rem; /* 80px vertical */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* --- TRANSICIONES --- */
    --transition: all 0.3s ease-in-out;
}

/* --- RESET BÁSICO MODERNIZADO --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Navegación suave entre anclas */
    font-size: 16px; /* Base rem */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal indeseado */
}

/* --- ESTILOS DE TEXTO GLOBALES --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary); /* Títulos en verde bosque por defecto */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- CLASES UTILITARIAS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.text-center { text-align: center; }

/* Títulos de sección estandarizados */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary); /* Títulos destacados en madera */
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile adjustments base */
@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 1rem;
    }
    .section-title { 
        font-size: 2rem; 
    }
}

/* ============================================ */
/* 🟢 2. HEADER & NAVEGACIÓN */
/* ============================================ */

/* --- CONTENEDOR PRINCIPAL (Sticky) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    /* Color crema con transparencia para legibilidad */
    background: rgba(255, 248, 220, 0.5); /* --bg-light con 95% opacidad */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Estado "Scrolled" (Se activará vía JS al bajar) */
.header.scrolled {
    padding: 0.8rem 0; /* Se hace un poco más compacto */
    background: rgba(255, 248, 220, 0.6); /* Color crema más sólido al hacer scroll */
    backdrop-filter: blur(var(--blur-amount)); /* Efecto borroso detrás */
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* 2. Estado Scrolled (Cuando bajas y el fondo es blanco/vidrio) */
.header.scrolled .nav-link {
    color: var(--text-main); /* <--- CAMBIO: Vuelve a Marrón Oscuro */
    text-shadow: none;
}

/* Nuevo: Reduce el logo al bajar */
.header.scrolled .logo-img {
    height: 40px; /* Se achica un poco para ahorrar espacio */
}

/* El hover se adapta automáticamente */
.nav-link:hover {
    color: var(--accent); /* Dorado al pasar el mouse */
}
.header.scrolled .nav-link:hover {
    color: var(--primary); /* Marrón madera al pasar el mouse en scroll */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO --- */
.logo-img {
    height: 70px; /* Altura controlada */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* --- NAVEGACIÓN DESKTOP --- */
.desktop-nav {
    display: none; /* Mobile-first: oculto en celus */
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .nav-list {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    /* 1. Estado Inicial (Sobre fondo crema) */
    .nav-link {
        font-weight: 500;
        color: var(--text-main); /* Color oscuro para verse sobre fondo crema */
        text-shadow: none; 
        position: relative;
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }

    /* NOTA: Acá borré el bloque repetido que te cambiaba el color a marrón */

    /* Efecto Hover Subrayado Animado */
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background-color: var(--primary); /* Marrón madera para el subrayado */
        transition: width 0.3s ease;
    }

    .nav-link:hover {
        color: var(--primary); /* Marrón madera al pasar el mouse sobre fondo crema */
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

/* --- BOTONES (Componente Reutilizable) --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

/* Botón Primario (Marrón Madera) */
.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* Botón Outline (Borde) */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* --- MENÚ HAMBURGUESA (MÓVIL) --- */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

@media (min-width: 992px) {
    .mobile-menu-toggle { display: none; }
}

/* Menú Móvil Desplegable (Full Screen Overlay) */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto a la derecha */
    width: 100%;
    height: 100vh;
    background: var(--bg-light); /* Fondo sólido crema */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-overlay.active {
    right: 0; /* Entra en pantalla */
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.mobile-link:active {
    color: var(--primary);
}
/* Nuevo estilo para Logo Texto */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-light); /* Color crema inicial */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    white-space: nowrap;
    transition: var(--transition);
}

.logo-text .highlight {
    color: var(--accent); /* Dorado */
}

/* Color del logo cuando se hace scroll */
.header.scrolled .logo-text {
    color: var(--primary);
    text-shadow: none;
    font-size: 1.5rem; /* Se achica un poco */
}


/* ============================================ */
/* 🟢 3. HERO SECTION & FONDOS */
/* ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Pantalla completa */
    min-height: 600px; /* Evita que se achique demasiado en pantallas bajas */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Texto blanco sobre foto */
    overflow: hidden;
}

/* --- IMAGEN DE FONDO + OVERLAY --- */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Detrás del contenido */
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar sin deformar */
    object-position: center;
}

/* Capa oscura para legibilidad del texto */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,   /* Arriba un poco oscuro para el menú */
        rgba(0, 0, 0, 0.1) 50%,  /* Centro más claro para ver la foto */
        rgba(0, 0, 0, 0.6) 100%  /* Abajo oscuro para contraste */
    );
    /* Se añade un fondo sólido extra suave si la imagen es muy clara */
    background-color: rgba(47, 79, 79, 0.2); /* Tinte verde bosque muy sutil */
}

/* --- CONTENIDO DEL HERO --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 60px; /* Compensar el header fijo */
}

.hero-text-wrapper {
    max-width: 800px;
    margin: 0 auto;
    /* Efecto Glassmorphism sutil para el bloque de texto */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Sombra para leerse bien */
}

.hero-title .highlight {
    color: var(--bg-light); /* Color crema para resaltar */
    font-style: italic;
    display: block; /* En nueva línea si es necesario */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--bg-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Ajustes Responsive para Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text-wrapper {
        padding: 1.5rem;
        background: rgba(0, 0, 0, 0.4); /* Más oscuro en móvil para asegurar lectura */
    }
}

/* --- INDICADOR DE SCROLL (Flecha) --- */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    z-index: 10;
    opacity: 0.8;
}

.scroll-down svg {
    width: 32px;
    height: 32px;
}

/* Animación de rebote */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ============================================ */
/* 🟢 4. SECCIONES ESPECÍFICAS & CARDS */
/* ============================================ */

/* --- A. SECCIÓN PROBLEMA / SOLUCIÓN --- */
.problem-solution-section {
    padding: var(--section-padding);
    background-color: white; /* Contraste con el fondo crema general */
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tagline {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.problem-block {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.solution-block {
    background: var(--bg-light); /* Fondo suave para destacar la solución */
    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 2rem;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--secondary);
}

.feature-list-mini {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.feature-list-mini li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.image-column .image-wrapper {
    position: relative;
}

.rounded-img {
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

/* Badge flotante "100% Relax" */
.floating-badge {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--glass-bg); /* Efecto vidrio */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: var(--glass-border);
    font-weight: bold;
    color: var(--primary);
}

/* --- B. SECCIÓN SERVICIOS (Cards) --- */
.services-section {
    padding: var(--section-padding);
    /* Fondo con textura sutil o gradiente muy suave */
    background: radial-gradient(circle at top right, rgba(205, 133, 63, 0.1), transparent 40%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* TARJETA GLASSMORPHISM */
.service-card {
    background: rgba(255, 255, 255, 0.6); /* Semi-transparente */
    backdrop-filter: blur(10px); /* Efecto vidrio */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.1); /* Sombra cálida al flotar */
    border-color: var(--accent);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem; /* Tamaño icono */
}

.service-card svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- C. SECCIÓN NOSOTROS --- */
.about-section {
    padding: var(--section-padding);
    background-color: white;
}

.experience-badge {
    position: absolute;
    top: 2rem;
    right: -2rem;
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--glass-shadow);
    border: 4px solid white;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.75rem;
    line-height: 1.2;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1.5rem;
}

.link-arrow:hover {
    gap: 0.8rem; /* Flecha se mueve a la derecha */
    color: var(--primary-dark);
}

/* --- D. GALERÍA --- */
.gallery-section {
    padding: var(--section-padding);
}

/* Ajuste de espacio para el botón de Instagram */
.gallery-section .text-center {
    margin-top: 3rem !important; /* Fuerza más espacio arriba */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3; /* Proporción rectangular estándar */
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Zoom suave al hover */
}

/* Overlay al pasar el mouse */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 79, 79, 0.4); /* Verde oscuro translúcido */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-overlay svg {
    color: white;
    width: 40px;
    height: 40px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay svg {
    transform: scale(1);
}

/* --- E. TESTIMONIOS --- */
.testimonials-section {
    padding: var(--section-padding);
    background-color: var(--secondary); /* Fondo oscuro para contraste */
    color: white; /* Texto claro */
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: white; /* Sobreescribimos colores para fondo oscuro */
}

.testimonials-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1); /* Vidrio sobre fondo oscuro */
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.stars {
    color: #FFD700; /* Dorado puro */
    margin-bottom: 1rem;
    display: flex;
    gap: 0.2rem;
}

.stars svg { width: 18px; height: 18px; fill: currentColor; }

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.author-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.author-location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .split-layout { grid-template-columns: 1fr; gap: 3rem; }
    .reverse-mobile { display: flex; flex-direction: column-reverse; }
    .floating-badge { left: 0; bottom: -1rem; }
    .experience-badge { right: 0; top: -1rem; }
}

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; } /* 1 columna en móvil */
}

/* ============================================ */
/* 🟢 5. UBICACIÓN, FOOTER & FLOTANTES */
/* ============================================ */

/* --- F. UBICACIÓN & CONTACTO --- */
.location-section {
    padding: var(--section-padding);
    background-color: var(--bg-light); /* Vuelta al color crema */
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-list {
    list-style: none;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Alineado arriba por si el texto es largo */
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-contact {
    color: var(--primary);
    flex-shrink: 0; /* Evita que el icono se aplaste */
}

.contact-link {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    border-bottom-color: var(--primary);
}

.route-hint {
    background: rgba(139, 69, 19, 0.1); /* Marrón muy suave */
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.9rem;
}

.map-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    height: 100%;
    min-height: 400px; /* Altura mínima para que se vea bien */
}

.google-map {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- G. FOOTER --- */
.main-footer {
    background-color: #1a1a1a; /* Casi negro para contraste total */
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 1rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border: none !important; /* Elimina cualquier borde residual */
    transform: none !important; /* Asegura que no haya rotaciones accidentales */
}

.footer-logo {
    margin-bottom: 1rem;
    /* filter: brightness(0) invert(1); <--- BORRAR O COMENTAR ESTA LÍNEA */
    opacity: 0.9;
    max-width: 100%; /* Asegura que no se desborde */
    height: auto;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px; /* Pequeño movimiento al hover */
}

.inline-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.credits a {
    color: var(--accent);
    font-weight: 600;
}

/* --- H. ELEMENTOS FLOTANTES (WHATSAPP) --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde Oficial WhatsApp */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000; /* Siempre encima */
    transition: var(--transition);
    animation: fadeInScale 0.5s ease-out 1s backwards; /* Aparece 1seg después */
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    stroke: white;   /* Color del trazo */
    stroke-width: 2; /* Grosor del trazo */
    fill: none;      /* Sin relleno para que se vea el dibujo */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* Tooltip "¡Consultanos!" */
.whatsapp-float .tooltip {
    position: absolute;
    right: 70px;
    background: white;
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-float:hover .tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Animación de entrada */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Todo en 1 columna */
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo { margin: 0 auto 1rem; }
    
    .social-links { justify-content: center; }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg { width: 28px; height: 28px; }
}

/* ============================================ */
/* 🟢 EXTRAS JS: ANIMACIONES & LIGHTBOX */
/* ============================================ */

/* --- 1. Scroll Reveal (Animación de entrada) --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para tarjetas (Opcional) */
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }

/* --- 2. Lightbox Custom (Galería) --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--primary);
}

/* Botones de Navegación del Lightbox */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 10px;
    z-index: 3001;
    transition: all 0.3s ease;
}

.lightbox-btn:hover {
    color: var(--accent); /* Dorado al hover */
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Hacer los iconos grandes */
.lightbox-btn svg {
    width: 48px;
    height: 48px;
    stroke-width: 2;
}

/* Ajuste móvil para botones */
@media (max-width: 768px) {
    .lightbox-btn svg { width: 32px; height: 32px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* Estilo para el link de retorno */
.credits .separator {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.3);
}

.back-link {
    font-size: 0.85rem;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .credits {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .credits .separator { display: none; } /* Ocultar separador en móvil */
}

.sr-only {
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
}

.stars {
    display: flex; /* Asegura que los SVGs se alineen en fila */
    gap: 4px;
    margin-bottom: 1rem;
}