/* ======================================== */
/* MENÚ MÓVIL - PASTO EN LA BASE            */
/* ======================================== */
@media (max-width: 768px) {
    .nav-links {
        overflow: hidden;
        padding-bottom: 32px; /* espacio para que no tape los items */
    }
    .nav-links::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 28px;
        background: url('../img/grass.svg') left bottom repeat-x; /* repetir para cubrir todo el ancho */
        background-size: auto 28px; /* altura fija, ancho se repite */
        pointer-events: none;
        z-index: 2;
    }
}
/* ========================================
   TU CASA VALLEDUPAR - ESTILOS COMPLETOS
   Incluye: Estilos base + Efectos parallax
   ======================================== */

/* ========================================
   PANTALLA DE CARGA
   ======================================== */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--verde-principal), var(--verde-oscuro));
    z-index: 99999; /* Máximo z-index para estar encima de todo */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.8s ease-in-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.loading-logo-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--amarillo);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: var(--amarillo-claro);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: var(--blanco);
    animation-duration: 0.8s;
}

.loading-text h3 {
    font-family: 'Driftline', cursive;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--amarillo);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--amarillo), var(--amarillo-claro));
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.loading-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.loading-leaf {
    position: absolute;
    opacity: 0.6;
    animation: leafFloat 3s ease-in-out infinite;
}

.loading-leaf.leaf-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 4s;
}

.loading-leaf.leaf-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 3.5s;
}

.loading-leaf.leaf-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 4.5s;
}

.loading-leaf img {
    width: 30px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Animaciones de la pantalla de carga */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes leafFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8;
    }
}

/* Ocultar contenido principal durante la carga */
body.loading {
    overflow: hidden;
}

body.loading main {
    opacity: 0;
    visibility: hidden;
}

body.loading .navbar {
    opacity: 0;
    visibility: hidden;
}

body.loading .whatsapp-float {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
    pointer-events: none !important;
    display: none !important;
}

/* Asegurar que el botón de WhatsApp esté oculto durante la carga */
.loading-screen ~ .whatsapp-float,
.loading-screen + .whatsapp-float {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* ========================================
   VARIABLES DE COLORES ORIGINALES
   ======================================== */

:root {
    /* Colores Primarios Originales */
    --verde-principal: #8eb640;
    --verde-oscuro: #779936;
    --verde-claro: #a7c44c;
    
    /* Colores Secundarios Originales */
    --marron: #603e28;
    --marron-claro: #af9675;
    --amarillo: #ffcf57;
    --amarillo-claro: #d2a719;
    
    /* Colores Neutros Originales */
    --gris-oscuro: #333;
    --gris-medio: #444;
    --gris-claro: #777;
    --gris-muy-claro: #89867c;
    --gris-fondo: #F6F6F6;
    --gris-muy-claro-bg: #e5e5e5;
    
    /* Colores de Fondo Originales */
    --beige: #f7efdf;
    --blanco: #FFFFFF;
    --negro-transparente: rgba(0, 0, 0, 0.7);
    
    /* Colores de Estado */
    --error: #cc0033;
    --hover-verde: #8eb640;
    --hover-amarillo: #d2a719;
    
    /* Colores Modernos */
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    overflow-x: hidden;
    background-color: var(--blanco);
}

/* ========================================
   TIPOGRAFÍA Y TEXTOS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 2rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* ========================================
   BOTONES Y ENLACES
   ======================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.4;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-custom {
    background: var(--amarillo);
    color: var(--marron);
    border: none;
    font-weight: 500;
}

.btn-custom:hover {
    background: var(--marron);
    color: var(--beige);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 62, 40, 0.4);
}

/* ========================================
   TARJETAS Y CONTENEDORES
   ======================================== */

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.card-text {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   IMÁGENES Y MEDIA
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.img-circle {
    border-radius: 50%;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

/* ========================================
   SECCIONES ESPECÍFICAS
   ======================================== */

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-title hr {
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    margin: 1rem auto;
    border-radius: 2px;
}

/* ========================================
   CAROUSEL Y SLIDERS
   ======================================== */

.carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    width: 100%;
    transition: transform 0.6s ease-in-out;
}

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

.img-carrusel {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.img-carrusel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.left {
    left: 20px;
}

.carousel-control.right {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;
}

.carousel-indicators li.active {
    background: #25D366;
    transform: scale(1.2);
}

/* ========================================
   PORTFOLIO Y GALERÍA
   ======================================== */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hover-bg {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.hover-bg img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.hover-bg:hover img {
    transform: scale(1.1);
}

.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 211, 102, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.hover-bg:hover .hover-text {
    opacity: 1;
}

.hover-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* ========================================
   TESTIMONIOS
   ======================================== */

.team {
    margin-bottom: 2rem;
}

.thumbnail {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.thumbnail:hover .team-img img {
    transform: scale(1.05);
}

/* ========================================
   MAPA
   ======================================== */

#map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */

#footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

#footer a {
    color: #25D366;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: #128C7E;
}

/* ========================================
   UTILIDADES ADICIONALES
   ======================================== */

.text-whatsapp { color: #25D366; }
.bg-whatsapp { background-color: #25D366; }
.border-whatsapp { border-color: #25D366; }

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #333; color: white; }

.rounded { border-radius: 10px; }
.rounded-lg { border-radius: 15px; }
.rounded-xl { border-radius: 20px; }

.shadow { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }

.border { border: 1px solid #dee2e6; }
.border-0 { border: none; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* ========================================
   ESTRUCTURA BASE PARA SECCIONES
   ======================================== */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ========================================
   EFECTOS PARALLAX BASE
   ======================================== */

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

/* ========================================
   NAVEGACIÓN
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    backdrop-filter: none;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    padding: 15px 0;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #7e533b, var(--marron));
    box-shadow: 0 6px 16px rgba(96, 62, 40, 0.35), 0 0 0 2px #ffffff; /* halo blanco */
}

.navbar.scrolled .navbar-logo a {
    background: radial-grad ient(circle at 30% 30%, #7e533b, var(--marron));
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 0 rgb(0, 0, 0)) drop-shadow(0 0 6px rgba(255, 207, 87, 0.5)); /* sombra sutil + brillo dorado */
}

.navbar-logo a:hover .logo-img {
    transform: translateY(-1px) scale(1.03);
}

.navbar.scrolled .logo-img {
    filter: none;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.navbar.scrolled .nav-links a {
    color: #333;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-links a:hover {
    color: var(--amarillo);
    background: rgba(255, 193, 7, 0.9);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.5);
}

.navbar.scrolled .nav-links a:hover {
    color: white;
    background: var(--whatsapp);
    text-shadow: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.5);
}

/* ======================================== */
/* MENÚ MÓVIL - ESTILOS MÁS LIMPIOS         */
/* ======================================== */
@media (max-width: 768px) {
    /* Overlay más suave y acorde a marca */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        z-index: 999;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; transition: opacity 0.25s ease; }

    /* Contenedor del menú desplegado */
    .nav-links {
        position: fixed;
        top: 72px; /* debajo de la navbar */
        right: 12px;
        left: 12px;
        display: none;
        padding: 14px;
        /* Fondo base blanco; imagen via pseudo-elemento para asegurar visibilidad */
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 14px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
        z-index: 1000;
        backdrop-filter: none;
        overflow: hidden; /* recortar el fondo al borde redondeado */
        max-height: calc(100vh - 88px); /* evitar que se salga del viewport */
        -webkit-overflow-scrolling: touch;
        min-height: 50vh; /* asegurar espacio para el fondo si hay pocos items */
        position: relative; /* Para posicionamiento absoluto de los items */
    }
    /* Imagen de fondo como capa inferior para que no la tape nada */
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: url('../img/arbol-menu-navbar.svg') center center / cover no-repeat;
        z-index: 0;
    }
    .nav-links > * { position: relative; z-index: 1; }
    .nav-links.active { display: flex; min-height: calc(100vh - 88px); }

    .nav-links a {
        color: #fff !important;
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
        border: 2px solid #fff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
        padding: 7px 12px !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        position: absolute !important;
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
        margin: 0 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        animation: buzz-attention 3s infinite !important;
    }
    
    @keyframes buzz-attention {
        0%, 90%, 100% { 
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8);
        }
        92% { 
            transform: scale(1.1) rotate(1deg);
            box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6), 0 0 0 2px rgba(255, 255, 255, 1);
        }
        94% { 
            transform: scale(0.95) rotate(-1deg);
            box-shadow: 0 8px 25px rgba(255, 107, 107, 0.8), 0 0 0 3px rgba(255, 255, 255, 1);
        }
        96% { 
            transform: scale(1.05) rotate(0.5deg);
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.8);
        }
    }
    
    /* Posicionamiento como frutos en la copa del árbol */
    .nav-links a:nth-child(1) { /* Inicio */
        top: 10%;
        left: 30%;  
    }
    
    .nav-links a:nth-child(2) { /* Nosotros */
        top: 20%;
        left: 55%;
    }
    
    .nav-links a:nth-child(3) { /* Casas */
        top: 30%;
        left: 20%;
    }
    
    .nav-links a:nth-child(4) { /* Testimonios */
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-links a:nth-child(5) { /* Inspírate */
        top: 50%;
        right: 70%;
    }
    
    .nav-links a:nth-child(6) { /* Contacto */
        top: 60%;
        right: 40%;
    }
}

/* ========================================
   BOTÓN FLOTANTE WHATSAPP
   ======================================== */

.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1000 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: #25D366 !important;
    color: white !important;
    border: none !important;
    font-size: 24px !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    animation: pulse 2s infinite !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6) !important;
    background: #25D366 !important;
    opacity: 1 !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Asegurar que el botón de WhatsApp no se vea afectado por otros estilos */
.whatsapp-float,
.whatsapp-float *,
.whatsapp-float::before,
.whatsapp-float::after {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Forzar el color blanco del icono de WhatsApp */
.whatsapp-float i {
    color: white !important;
    background: transparent !important;
    -webkit-text-fill-color: white !important;
    -webkit-text-stroke: none !important;
}

/* ========================================
   EFECTOS DE ANIMACIÓN
   ======================================== */

/* Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Slide In Left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide In Right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Rotate In */
.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.8s ease-out;
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Float Animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Bounce In */
.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   EFECTOS DE SCROLL
   ======================================== */

/* Sticky Element */
.sticky {
    position: sticky;
    top: 80px;
    z-index: 10;
}

/* Parallax con diferentes velocidades */
.parallax-slow {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.parallax-medium {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* ========================================
   EFECTOS DE HOVER
   ======================================== */

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hover-scale {
    transition: all 0.3s ease;
}

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

.hover-rotate {
    transition: all 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* ========================================
   EFECTOS DE TEXTO
   ======================================== */

.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s ease-out;
}

.text-reveal.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect */
.typing {
    border-right: 2px solid var(--whatsapp);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--whatsapp); }
}

/* ========================================
   SECCIÓN HERO
   ======================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-text {
    color: white;
    text-align: left;
    z-index: 2;
    position: relative;
    max-width: 600px;
    margin-left: 0;
}

.text-line {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.text-line.visible {
    opacity: 1;
    transform: translateX(0);
}

.text-line {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 2.5rem;
    line-height: 1.3;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.text-line:nth-child(1) {
    font-size: 2rem;
    font-weight: 200;
}

.text-line:nth-child(2) {
    font-size: 1.8rem;
    font-weight: 300;
}

.text-line:nth-child(3) {
    font-size: 3rem;
    font-weight: 600;
    color: var(--amarillo);
    text-shadow: 2px 2px 8px rgba(255, 207, 87, 0.3);
}

.text-line:nth-child(4) {
    font-size: 4rem;
    font-weight: 700;
}

/* Brush Text con Fuente Driftline */
.brush-text {
    font-family: 'Driftline', 'Brush Script MT', 'Marker Felt', cursive;
    font-size: 5rem;
    font-weight: normal;
    color: var(--amarillo);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    transform: rotate(-2deg);
    display: inline-block;
    position: relative;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
    letter-spacing: 1px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga" 1;
}

/* Efecto de letras individuales - Meteorito */
.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-200px) translateX(-100px) scale(0.3) rotate(-45deg);
    animation: meteorite-drop 0.8s ease-out forwards;
    animation-play-state: paused;
    position: relative;
}

/* Efecto de estela de meteorito */
.letter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 215, 0, 0.6) 30%,
        rgba(255, 100, 0, 0.4) 60%,
        transparent 100%);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0;
    animation: meteorite-trail 0.8s ease-out forwards;
    animation-play-state: var(--trail-animation-play-state, paused);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


@keyframes meteorite-drop {
    0% {
        opacity: 0;
        transform: translateY(-200px) translateX(-100px) scale(0.3) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    }
}

@keyframes meteorite-trail {
    0% {
        opacity: 0;
        height: 0px;
    }
    50% {
        opacity: 1;
        height: 40px;
    }
    100% {
        opacity: 0;
        height: 0px;
    }
}


/* Brush Text para "Es TU CASA" */
.brush-text-casa {
    font-family: 'Driftline', 'Brush Script MT', 'Marker Felt', cursive;
    font-size: 3rem;
    font-weight: normal;
    color: var(--amarillo);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    transform: rotate(-2deg);
    display: inline-block;
    position: relative;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
    letter-spacing: 1px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga" 1;
}


/* ======================================== */
/* ÁRBOL SIMPLE */
/* ======================================== */

.tree-container {
    position: absolute;
    top: -100px; /* Se sale del display hacia arriba */
    right: -20px; /* Se sale del display hacia la derecha */
    z-index: 10;
    opacity: 0;
    transform: translateX(50px) translateY(50px) scale(0.8);
    animation: tree-appear 1.5s ease-out forwards;
    animation-delay: 2.5s; /* Inicia cuando termina VALLEDUPAR (1.8s + 0.7s de margen) */
}

.tree-svg {
    width: 600px;
    height: 300px;
    filter: drop-shadow(0 5px 15px rgba(255, 207, 87, 0.4));
}

.tree-fallback {
    width: 600px;
    height: 300px;
    filter: drop-shadow(0 5px 15px rgba(255, 207, 87, 0.4));
}

/* Animación de aparición del árbol */
@keyframes tree-appear {
    0% {
        opacity: 0;
        transform: translateX(50px) translateY(50px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-10px) translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* ======================================== */
/* HERO - AJUSTES RESPONSIVE PARA MÓVILES   */
/* Evita que "VALLEDUPAR" salte de renglón  */
/* ======================================== */
@media (max-width: 576px) {
    .hero-text { max-width: 100%; }
    .hero-section .container { padding-left: 10px; padding-right: 10px; }
    .text-line {
        white-space: nowrap; /* Mantener en una sola línea */
        font-size: 1.4rem;   /* Base menor en móvil */
    }
    .text-line:nth-child(1) { font-size: 1.4rem; }
    .text-line:nth-child(2) { font-size: 1.2rem; }
    .text-line:nth-child(3) { font-size: 1.9rem; }
    .text-line:nth-child(4) { font-size: 2.4rem; }

    .brush-text { font-size: 2.2rem; letter-spacing: 0px; }
    /* Aumentar especificidad y forzar compresión horizontal */
    .hero-section .hero-text .text-line .brush-text {
        transform: rotate(-2deg) scaleX(0.9) !important;
        transform-origin: left center !important;
    }
    .brush-text-casa {
        font-size: 2.2rem;   /* Mantener proporción con VALLEDUPAR */
    }
}

@media (max-width: 400px) {
    .hero-section .container { padding-left: 8px; padding-right: 8px; }
    .text-line { font-size: 1.25rem; }
    .text-line:nth-child(3) { font-size: 1.65rem; }
    .text-line:nth-child(4) { font-size: 2.15rem; }
    .brush-text { font-size: 2.0rem; }
    .hero-section .hero-text .text-line .brush-text { transform: rotate(-2deg) scaleX(0.88) !important; }
}

@media (max-width: 360px) {
    .hero-section .container { padding-left: 6px; padding-right: 6px; }
    .text-line { font-size: 1.15rem; }
    .text-line:nth-child(3) { font-size: 1.5rem; }
    .text-line:nth-child(4) { font-size: 2.0rem; }
    .brush-text { font-size: 1.9rem; }
    .hero-section .hero-text .text-line .brush-text { transform: rotate(-2deg) scaleX(0.85) !important; }
}

/* ======================================== */
/* HOJAS CAYENDO SUTILES */
/* ======================================== */

.falling-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

/* ======================================== */
/* BOTÓN FLOTANTE WHATSAPP - VISIBILIDAD    */
/* ======================================== */
.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    border: none;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.whatsapp-float i {
    font-size: 26px;
    line-height: 1;
}

.whatsapp-float.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 576px) {
    .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
    .whatsapp-float i { font-size: 24px; }
}

.leaf {
    position: absolute;
    top: -300px; /* Posicionar inicialmente fuera del viewport */
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: leaf-fall 8s linear infinite;
    animation-delay: 4s; /* Iniciar después del árbol (2.5s + 1.5s de duración) */
}

.leaf object,
.leaf img {
    width: 100%;
    height: 100%;
    filter: hue-rotate(var(--hue-rotation, 0deg)) brightness(0.9);
}

/* Posiciones iniciales y delays diferentes para cada hoja */
.leaf-1 {
    left: 10%;
    animation-delay: 4s; /* Después del árbol */
    --hue-rotation: 0deg;
}

.leaf-2 {
    left: 25%;
    animation-delay: 6s; /* Base delay + 2s */
    --hue-rotation: 15deg;
}

.leaf-3 {
    left: 40%;
    animation-delay: 8s; /* Base delay + 4s */
    --hue-rotation: -10deg;
}

.leaf-4 {
    left: 60%;
    animation-delay: 5s; /* Base delay + 1s */
    --hue-rotation: 20deg;
}

.leaf-5 {
    left: 80%;
    animation-delay: 7s; /* Base delay + 3s */
    --hue-rotation: -5deg;
}

/* Animación sutil de caída */
@keyframes leaf-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(calc(100vh + 300px)) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive para las hojas */
@media (max-width: 768px) {
    .leaf-1 { left: 15%; }
    .leaf-2 { left: 30%; }
    .leaf-3 { left: 45%; }
    .leaf-4 { left: 65%; }
    .leaf-5 { left: 85%; }
}

@media (max-width: 480px) {
    .leaf-1 { left: 20%; }
    .leaf-2 { left: 35%; }
    .leaf-3 { left: 50%; }
    .leaf-4 { left: 70%; }
    .leaf-5 { left: 90%; }
}

/* Responsive para el árbol */
@media (max-width: 768px) {
    .tree-container {
        top: -75px; /* Se sale hacia arriba en tablet */
        right: -15px; /* Se sale hacia la derecha en tablet */
    }
    
    .tree-svg,
    .tree-fallback {
        width: 450px;
        height: 225px;
    }
}

@media (max-width: 480px) {
    .tree-container {
        top: -60px; /* Se sale hacia arriba en móvil */
        right: -12px; /* Se sale hacia la derecha en móvil */
    }
    
    .tree-svg,
    .tree-fallback {
        width: 360px;
        height: 180px;
    }
}

/* ======================================== */
/* SECCIÓN NOSOTROS */
/* ======================================== */

.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px 0;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo */
.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 207, 87, 0.1), rgba(255, 152, 0, 0.05));
    transform: rotate(15deg);
    z-index: 0;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 30%;
    height: 150%;
    background: linear-gradient(-45deg, rgba(52, 144, 220, 0.08), rgba(255, 207, 87, 0.05));
    transform: rotate(-10deg);
    z-index: 0;
}

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

.about-img {
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--amarillo), var(--naranja));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
    transform: rotate(2deg);
}

.about-img img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.about-img img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.about-text {
    padding-left: 2rem;
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--amarillo), var(--naranja));
    border-radius: 2px;
}

.about-text h2 {
    color: var(--azul-oscuro);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: left;
    line-height: 1.2;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    border-radius: 2px;
}

.about-text hr {
    display: none; /* Reemplazado por ::after del h2 */
}

.about-text p {
    color: var(--gris-oscuro);
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.2rem;
    position: relative;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text b {
    color: var(--naranja);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    font-size: 1.2rem;
}

/* Efectos adicionales modernos */
.about-section .row {
    align-items: center;
    min-height: 80vh;
}

.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 207, 87, 0.1) 0%, 
        transparent 50%, 
        rgba(52, 144, 220, 0.1) 100%);
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-img:hover::after {
    opacity: 1;
}

/* Efecto de partículas flotantes */
.about-section .floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.about-section .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--amarillo);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 6s ease-in-out infinite;
}

.about-section .particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.about-section .particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.about-section .particle:nth-child(3) {
    top: 40%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
}

/* ======================================== */
/* EFECTOS DE SCROLL - ENTRAR Y SALIR */
/* ======================================== */

.scroll-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efectos direccionales */
.scroll-element[data-scroll-direction="left"] {
    transform: translateX(-100px);
}

.scroll-element[data-scroll-direction="left"].visible {
    transform: translateX(0);
}

.scroll-element[data-scroll-direction="right"] {
    transform: translateX(100px);
}

.scroll-element[data-scroll-direction="right"].visible {
    transform: translateX(0);
}

.scroll-element[data-scroll-direction="up"] {
    transform: translateY(-100px);
}

.scroll-element[data-scroll-direction="up"].visible {
    transform: translateY(0);
}

.scroll-element[data-scroll-direction="down"] {
    transform: translateY(100px);
}

.scroll-element[data-scroll-direction="down"].visible {
    transform: translateY(0);
}

/* Delays escalonados para elementos múltiples */
.scroll-element:nth-child(1) { transition-delay: 0.1s; }
.scroll-element:nth-child(2) { transition-delay: 0.2s; }
.scroll-element:nth-child(3) { transition-delay: 0.3s; }
.scroll-element:nth-child(4) { transition-delay: 0.4s; }
.scroll-element:nth-child(5) { transition-delay: 0.5s; }

/* Responsive para la sección Nosotros */
@media (max-width: 768px) {
    .about-section {
        padding: 80px 0 50px 0;
    }
    
    .about-section::before,
    .about-section::after {
        display: none; /* Ocultar elementos decorativos en móvil */
    }
    
    .about-text {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .about-text::before {
        display: none; /* Ocultar línea vertical en móvil */
    }
    
    .about-text h2 {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-text p {
        text-align: center;
        font-size: 1.3rem;
    }
    
    .about-img::before {
        display: none; /* Ocultar decoración de imagen en móvil */
    }
    
    .about-img img {
        border-radius: 15px;
    }
}

/* Asegurar que en pantallas grandes la imagen esté al lado del texto */
@media (min-width: 769px) {
    .about-section .row {
        display: flex;
        align-items: center;
    }
    
    /* Hero section para pantallas grandes */
    .hero-section {
        height: 100vh;
        min-height: 100vh;
    }
    
    .about-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        width: 50%;
    }
    
    .about-section .col-md-6:first-child {
        order: 1;
    }
    
    .about-section .col-md-6:last-child {
        order: 2;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 60px 0 40px 0;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }
}

/* ======================================== */
/* SECCIÓN CASAS - CARDS DESLIZANTES */
/* ======================================== */

.houses-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.houses-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(52, 144, 220, 0.05), rgba(255, 207, 87, 0.03));
    transform: rotate(-15deg);
    z-index: 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--azul-oscuro);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    border-radius: 2px;
}

.section-header p {
    color: var(--gris-oscuro);
    font-size: 1.3rem;
    font-weight: 300;
}

.houses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.house-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.house-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
}

.house-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.house-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.house-card:hover .house-image img {
    transform: scale(1.1);
}

.house-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
    pointer-events: none;
}

.house-badge {
    background: linear-gradient(135deg, var(--amarillo), var(--naranja));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.house-photos-hint {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.house-card:hover .house-photos-hint {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.house-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.house-content h3 {
    color: var(--azul-oscuro);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.house-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    border-radius: 2px;
}

.house-description {
    flex-grow: 1;
}

.house-description p {
    color: var(--gris-oscuro);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.house-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.house-features li {
    color: var(--gris-oscuro);
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 0;
}

/* .house-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--amarillo);
    font-weight: bold;
    font-size: 1.2rem;
} */

.house-note {
    background: rgba(52, 144, 220, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0 0 0;
    border-left: 4px solid var(--azul-claro);
    flex-shrink: 0;
}

.house-note p {
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

.btn-reserve {
    width: 100%;
    background: linear-gradient(135deg, var(--amarillo), var(--naranja));
    color: #2c3e50;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-reserve::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-reserve:hover::before {
    left: 100%;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.4);
}

.btn-reserve i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Botón de fotos */
.btn-photos {
    width: 100%;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: #2c3e50;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(52, 144, 220, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-photos::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-photos:hover::before {
    left: 100%;
}

.btn-photos:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(52, 144, 220, 0.4);
}

.btn-photos i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Ajustar botón de reserva para que ocupe menos espacio */
.house-buttons .btn-reserve {
    flex: 1;
}

/* ======================================== */
/* SECCIÓN TESTIMONIOS */
/* ======================================== */



/* Los estilos ahora están en .section-title-brush */

.testimonials-container {
    position: relative;
    width: 100%;
    height: 140vh;
    margin-top: -20vh;
    margin-bottom: -20vh;
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

#testimonials-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.testimonial-card { display: none !important; }

/* Eliminado: keyframes de la versión DOM */

.testimonial-image { display: none !important; }

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

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gris-oscuro);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.testimonial-star {
    color: var(--amarillo);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--gris);
    font-weight: 500;
}

/* Animaciones de entrada aleatoria */
@keyframes testimonial-float-in {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg) translateY(100px);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.8) rotate(2deg) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

@keyframes testimonial-float-out {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) rotate(-2deg) translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: scale(1.3) rotate(-5deg) translateY(-50px);
    }
}

/* Responsive para testimonios */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 80px 0;
        min-height: 80vh;
    }
    
    
    .testimonials-section .section-header p {
        font-size: 1.1rem;
    }
    
    .testimonials-container {
        height: 60vh;
    }
    
    .testimonial-card {
        max-width: 300px;
        min-width: 250px;
        padding: 1.5rem;
    }
    
    .testimonial-image {
        max-width: 360px;
        max-height: 45vh;
    }
    
    .testimonial-name {
        font-size: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    
    .testimonials-section .section-header p {
        font-size: 1rem;
    }
    
    .testimonial-card {
        max-width: 280px;
        min-width: 220px;
        padding: 1.2rem;
    }
    
    .testimonial-image {
        max-width: 300px;
        max-height: 40vh;
    }
}

/* ======================================== */
/* LIGHTBOX DE FOTOS */
/* ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('../img/gallery-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--amarillo);
    color: var(--amarillo);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--amarillo);
    border-color: var(--amarillo);
    color: var(--marron);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 207, 87, 0.4);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--amarillo);
    color: var(--amarillo);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--amarillo);
    border-color: var(--amarillo);
    color: var(--marron);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 207, 87, 0.4);
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 150px; /* Más espacio para el carrete aumentado */
    transition: all 0.3s ease;
    /* Mejorar experiencia táctil */
    cursor: grab;
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.lightbox-image-container:active {
    cursor: grabbing;
}

/* Efectos visuales para navegación táctil */
.lightbox-image-container.swiping {
    transition: none;
}

.lightbox-image-container.swiping img {
    transition: transform 0.1s ease;
}

.lightbox-image-container.loading {
    transform: scale(0.98);
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
    opacity: 1;
    /* Mejorar experiencia táctil */
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    cursor: pointer;
}

/* Estados de zoom */
.lightbox-image-container {
    overflow: hidden;
    position: relative;
}

.lightbox-image-container img {
    transition: transform 0.1s ease-out;
}

/* Transiciones suaves para zoom y arrastre */
.lightbox-image-container img.zoomed {
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-image-container img.dragging {
    transition: none;
}

.lightbox-image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.lightbox-image-container img.loaded {
    transform: scale(1);
    opacity: 1;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.lightbox-loading.hidden {
    display: none;
}

.lightbox-info {
    position: absolute;
    bottom: 160px; /* Ajustar para nueva altura del carrete */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.6rem 2rem; /* Padding horizontal aumentado */
    border-radius: 8px; /* Border radius más pequeño */
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); /* Sombra más sutil */
    z-index: 15;
    font-size: 0.85rem; /* Tamaño de fuente más pequeño */
}

.lightbox-counter {
    font-size: 0.75rem; /* Tamaño reducido */
    font-weight: 500;
    margin-bottom: 0.2rem; /* Margen reducido */
    opacity: 0.8;
}

.lightbox-title {
    font-size: 0.9rem; /* Tamaño reducido */
    font-weight: 700;
    color: var(--amarillo);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lightbox-zoom-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.lightbox-zoom-hint .zoom-click-icon {
    font-size: 0.9rem;
    animation: click-animation 2s ease-in-out infinite; /* restaurar animación original de click */
    color: #ffcf57;
}

.lightbox-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    opacity: 1;
}

.lightbox-swipe-hint i {
    font-size: 0.9rem;
    animation: swipe-hint 2s ease-in-out infinite;
    color: #ffcf57;
}

/* Quitar delays para que los tres iconos vayan en fase */
/* (delays removidos) */

@keyframes swipe-hint {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 1; }
}

@keyframes click-animation {
    0%, 100% { 
        transform: scale(1) translateY(0); 
        opacity: 0.8; 
    }
    25% { 
        transform: scale(1.1) translateY(-2px); 
        opacity: 1; 
    }
    50% { 
        transform: scale(0.9) translateY(1px); 
        opacity: 0.9; 
    }
    75% { 
        transform: scale(1.05) translateY(-1px); 
        opacity: 1; 
    }
}

/* ========================================
   CARRETE DE MINIATURAS
   ======================================== */

.lightbox-thumbnails {
    position: absolute; /* Volver a absolute */
    bottom: 0; /* Tocar el fondo de la pantalla */
    left: 0;
    right: 0;
    width: 100%;
    height: 130px; /* Aumentar un poco más la altura */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem; /* Más padding vertical */
    z-index: 10;
    display: block;
    border-radius: 12px 12px 0 0; /* Bordes redondeados en la parte superior */
}

.thumbnail-categories {
    display: flex;
    justify-content: center;
    gap: 0.3rem; /* Gap reducido */
    margin-bottom: 0.5rem; /* Margen reducido */
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.2rem; /* Gap reducido */
    padding: 0.3rem 0.6rem; /* Padding reducido */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px; /* Border radius reducido */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem; /* Tamaño de fuente reducido */
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--amarillo);
    color: var(--marron);
    border-color: var(--amarillo);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 207, 87, 0.3);
}

.category-tab i {
    font-size: 0.9rem;
}

.thumbnail-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center; /* Centrar el contenedor */
    width: 100%;
    max-width: 100%; /* Asegurar que no se salga */
    overflow: hidden; /* Ocultar contenido que se salga */
}

.thumbnail-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(10px);
}

.thumbnail-nav-btn:hover {
    background: var(--amarillo);
    color: var(--marron);
    border-color: var(--amarillo);
    transform: translateY(-50%) scale(1.1);
}

.thumbnail-nav-btn.prev {
    left: 5px; /* Mover dentro del contenedor */
}

.thumbnail-nav-btn.next {
    right: 5px; /* Mover dentro del contenedor */
}

.thumbnail-carousel {
    display: flex;
    gap: 0.8rem; /* Más espacio entre miniaturas */
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.8rem 1.5rem; /* Padding horizontal para que primera/última no se corten */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* justify-content se controla dinámicamente desde JavaScript */
    align-items: center;
    width: 100%;
    max-width: 100%; /* Aprovechar todo el ancho del contenedor */
    margin: 0; /* Sin margen externo (ya no hay botones) */
    scroll-padding-left: 1.5rem;  /* Alinear centrado sin cortar extremos */
    scroll-padding-right: 1.5rem;
}

.thumbnail-carousel::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 60px; /* Aumentar tamaño */
    height: 60px; /* Aumentar tamaño */
    border-radius: 8px; /* Border radius más grande */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    min-width: 60px; /* Tamaño mínimo */
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.thumbnail-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
}

.thumbnail-item.active {
    border: 2px solid #ffcf57 !important; /* Borde amarillo más delgado */
    transform: scale(1.1) !important; /* Escala moderada */
    box-shadow: 0 4px 20px rgba(255, 207, 87, 0.6) !important; /* Sombra moderada */
    background: rgba(255, 207, 87, 0.1) !important; /* Fondo sutil */
    position: relative;
    z-index: 10 !important; /* Z-index alto y forzado */
}

.thumbnail-item.active img {
    transform: scale(1.05) !important; /* Escala moderada para la imagen */
    filter: brightness(1.1) contrast(1.05) !important; /* Mejorar brillo y contraste moderado */
    border-radius: 6px;
}

.thumbnail-counter {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Ocultar indicador de swipe en desktop */
@media (min-width: 769px) {
    .lightbox-swipe-hint {
        display: none;
    }
    
    .lightbox-image-container {
        cursor: grab;
    }
    
    .lightbox-image-container:active {
        cursor: grabbing;
    }
}

/* Mejorar experiencia táctil en móviles */
@media (max-width: 768px) {
    .lightbox-image-container {
        cursor: default;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
    
    .lightbox-image-container:active {
        cursor: default;
    }
    
    .lightbox-swipe-hint {
        display: flex;
    }
}

/* Responsive para el lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0.6rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        padding: 0.8rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-info {
        bottom: 160px; /* Mantener consistencia con desktop */
        padding: 0.6rem; /* Padding horizontal aumentado */
        border-radius: 8px; /* Mantener consistencia con desktop */
        font-size: 0.8rem;
    }
    
    .lightbox-counter {
        font-size: 0.8rem;
    }
    
    .lightbox-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .lightbox-image-container {
        padding-bottom: 150px; /* Mantener consistencia con desktop */
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-image-container {
        padding-bottom: 150px; /* Mantener consistencia con desktop */
    }
    
    .lightbox-prev {
        left: 0.8rem;
    }
    
    .lightbox-next {
        right: 0.8rem;
    }
    
    .lightbox-info {
        bottom: 160px; /* Mantener consistencia con desktop */
        padding: 0.6rem; /* Padding horizontal aumentado */
        font-size: 0.75rem;
    }
    
    .lightbox-counter {
        font-size: 0.75rem;
    }
    
    .lightbox-title {
        font-size: 0.9rem;
    }
    
    /* Responsive para carrete de miniaturas */
    .lightbox-thumbnails {
        bottom: 0; /* Tocar el fondo en tablet */
        padding: 0.5rem; /* Mantener consistencia con desktop */
        height: 130px; /* Mantener altura consistente */
        border-radius: 12px 12px 0 0; /* Mantener bordes redondeados consistentes */
    }
    
    .thumbnail-categories {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .category-tab {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .category-tab span {
        display: none;
    }
    
    .thumbnail-item {
        width: 60px; /* Mantener tamaño consistente con desktop */
        height: 60px; /* Mantener tamaño consistente con desktop */
        min-width: 60px;
    }
    
    .thumbnail-nav-btn {
        width: 30px; /* Mantener tamaño consistente con desktop */
        height: 30px; /* Mantener tamaño consistente con desktop */
        font-size: 0.9rem;
    }
    
    .thumbnail-nav-btn.prev {
        left: 5px; /* Mantener posición consistente con desktop */
    }
    
    .thumbnail-nav-btn.next {
        right: 5px; /* Mantener posición consistente con desktop */
    }
    
    .thumbnail-carousel {
        /* justify-content se controla dinámicamente desde JavaScript */
        padding: 0.8rem 1.2rem; /* Padding horizontal para no cortar extremos */
        gap: 0.8rem; /* Mantener consistencia con desktop */
        max-width: 100%; /* Usar todo el ancho disponible */
        margin: 0; /* Sin márgenes laterales */
        scroll-padding-left: 1.2rem;
        scroll-padding-right: 1.2rem;
    }
    
    .thumbnail-carousel-container {
        justify-content: center;
        overflow: hidden;
    }
    
    /* Centrar mejor en móviles */
    .lightbox-thumbnails {
        bottom: 0; /* Tocar el fondo en móvil */
        padding: 0.5rem; /* Mantener consistencia con desktop */
        height: 130px; /* Mantener altura consistente */
        border-radius: 12px 12px 0 0; /* Mantener bordes redondeados consistentes */
    }
    
    .thumbnail-carousel {
        /* justify-content se controla dinámicamente desde JavaScript */
        padding: 0.8rem 1.2rem; /* Padding horizontal para no cortar extremos */
        gap: 0.8rem; /* Mantener consistencia con desktop */
        max-width: 100%; /* Usar todo el ancho disponible */
        margin: 0; /* Sin márgenes laterales */
        scroll-padding-left: 1.2rem;
        scroll-padding-right: 1.2rem;
    }
    
    .thumbnail-carousel-container {
        justify-content: center;
        overflow: hidden;
    }
}

/* ========================================
   HOJAS CAYENDO EN EL MODAL
   ======================================== */

.modal-leaf {
    position: absolute;
    top: -100px;
    opacity: 0.6;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: modal-leaf-fall 6s linear infinite;
    pointer-events: none;
    z-index: 3;
}

.modal-leaf img {
    width: 25px;
    height: auto;
    filter: hue-rotate(var(--hue-rotation, 0deg)) brightness(0.9);
}

/* Posiciones iniciales y delays diferentes para cada hoja del modal */
.modal-leaf.leaf-1 {
    left: 10%;
    animation-delay: 0s;
    --hue-rotation: 0deg;
}

.modal-leaf.leaf-2 {
    left: 25%;
    animation-delay: 1.2s;
    --hue-rotation: 15deg;
}

.modal-leaf.leaf-3 {
    left: 40%;
    animation-delay: 2.4s;
    --hue-rotation: -10deg;
}

.modal-leaf.leaf-4 {
    left: 60%;
    animation-delay: 0.8s;
    --hue-rotation: 20deg;
}

.modal-leaf.leaf-5 {
    left: 80%;
    animation-delay: 1.8s;
    --hue-rotation: -5deg;
}

/* Animación de caída para el modal */
@keyframes modal-leaf-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(15px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive para las hojas del modal */
@media (max-width: 768px) {
    .modal-leaf img {
        width: 20px;
    }
    
    .modal-leaf.leaf-1 { left: 15%; }
    .modal-leaf.leaf-2 { left: 30%; }
    .modal-leaf.leaf-3 { left: 45%; }
    .modal-leaf.leaf-4 { left: 65%; }
    .modal-leaf.leaf-5 { left: 85%; }
}

@media (max-width: 480px) {
    .modal-leaf img {
        width: 18px;
    }
    
    .modal-leaf.leaf-1 { left: 20%; }
    .modal-leaf.leaf-2 { left: 35%; }
    .modal-leaf.leaf-3 { left: 50%; }
    .modal-leaf.leaf-4 { left: 70%; }
    .modal-leaf.leaf-5 { left: 90%; }
}


/* Responsive para la sección Casas */
@media (max-width: 768px) {
    .houses-section {
        padding: 80px 0;
    }
    
    .houses-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .house-photos-hint {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        bottom: 0.8rem;
        right: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .house-content {
        padding: 1.5rem;
    }
    
    .house-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .house-photos-hint {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        bottom: 0.6rem;
        right: 0.6rem;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .houses-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .house-image {
        height: 250px;
    }
    
    .house-content h3 {
        font-size: 1.6rem;
    }
    
    .house-description p {
        font-size: 1rem;
    }
}

/* Asegurar que las frases con letras no hereden efectos slide */
.text-line:has(.brush-text),
.text-line:has(.brush-text-casa) {
    transform: none !important;
    opacity: 1 !important;
}

.text-line:has(.brush-text).visible,
.text-line:has(.brush-text-casa).visible {
    transform: none !important;
    opacity: 1 !important;
}


.hero-cta {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.hero-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta .btn {
    font-size: 1.2rem;
    padding: 18px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* ========================================
   EFECTOS DE TEXTO SECUENCIAL
   ======================================== */

.text-reveal-sequential {
    overflow: hidden;
}

.text-reveal-sequential span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s ease-out;
}

.text-reveal-sequential.visible span {
    opacity: 1;
    transform: translateY(0);
}

.text-reveal-sequential span:nth-child(1) { transition-delay: 0.1s; }
.text-reveal-sequential span:nth-child(2) { transition-delay: 0.2s; }
.text-reveal-sequential span:nth-child(3) { transition-delay: 0.3s; }
.text-reveal-sequential span:nth-child(4) { transition-delay: 0.4s; }
.text-reveal-sequential span:nth-child(5) { transition-delay: 0.5s; }
.text-reveal-sequential span:nth-child(6) { transition-delay: 0.6s; }
.text-reveal-sequential span:nth-child(7) { transition-delay: 0.7s; }
.text-reveal-sequential span:nth-child(8) { transition-delay: 0.8s; }
.text-reveal-sequential span:nth-child(9) { transition-delay: 0.9s; }
.text-reveal-sequential span:nth-child(10) { transition-delay: 1.0s; }

/* ========================================
   EFECTOS DE PARTÍCULAS
   ======================================== */

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   EFECTOS DE GRADIENTES
   ======================================== */

.gradient-bg-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-bg-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gradient-bg-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ========================================
   EFECTOS DE BLUR
   ======================================== */

.blur-bg {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.blur-strong {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   EFECTOS DE SOMBRAS
   ======================================== */

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.shadow-strong {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Botón hamburguesa - oculto por defecto */
.hamburger {
    display: none; /* visible solo en móvil mediante media query */
    width: 50px;
    height: 50px;
    cursor: pointer;
    position: relative;
    z-index: 10003;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--amarillo);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: var(--amarillo);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 207, 87, 0.4);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2C2C2C;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hamburger:hover span {
    background: #1A1A1A;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Overlay para cerrar menú */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}   

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }
    
    .navbar-logo {
        order: 1;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: 
            radial-gradient(ellipse at top, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(160, 82, 45, 0.9) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        transition: left 0.5s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 10002;
        padding: 0 60px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 2rem;
        color: #FFFFFF;
        padding: 20px 30px;
        margin: 12px 0;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        position: relative;
        opacity: 0;
        transform: translateY(30px);
        text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 2px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links a:nth-child(5) { transition-delay: 0.5s; }
    
    .nav-links a::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--amarillo);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-links a:hover {
        color: var(--amarillo);
        transform: translateY(-8px) scale(1.02);
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
        background: rgba(255, 207, 87, 0.15);
        border-color: rgba(255, 207, 87, 0.3);
        box-shadow: 0 12px 40px rgba(255, 207, 87, 0.3);
    }
    
    .nav-links a:hover::before {
        width: 100%;
    }
    
    /* .nav-links::after {
        content: '';
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 180px;
        height: 60px;
        background-image: url('../img/Logo_on.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.8;
        pointer-events: none;
    } */
    
    .logo-img {
        height: 35px;
    }
    
    /* Botón hamburguesa */
    .hamburger {
        display: block;
        order: 2;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    /* Hero responsive */
    .hero-text {
        max-width: 100%;
        text-align: left;
    }
    
    .text-line {
        font-size: 1.8rem !important;
        white-space: normal;
    }
    
    .text-line:nth-child(1) {
        font-size: 1.5rem !important;
    }
    
    .text-line:nth-child(2) {
        font-size: 1.3rem !important;
    }
    
    .text-line:nth-child(3) {
        font-size: 2.2rem !important;
    }
    
    .text-line:nth-child(4) {
        font-size: 2.8rem !important;
    }
    
    .brush-text {
        font-size: 3.5rem;
        transform: rotate(-1deg);
    }
    
    .brush-text-casa {
        font-size: 2.5rem;
        transform: rotate(-1deg);
    }
    
    .hero-cta .btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        min-height: 70vh;
        padding: 40px 0;
    }
    
    /* Hero mobile */
    .hero-text {
        text-align: left;
    }
    
    .text-line {
        font-size: 1.4rem !important;
        white-space: normal;
    }
    
    .text-line:nth-child(1) {
        font-size: 1.2rem !important;
    }
    
    .text-line:nth-child(2) {
        font-size: 1rem !important;
    }
    
    .text-line:nth-child(3) {
        font-size: 1.8rem !important;
    }
    
    .text-line:nth-child(4) {
        font-size: 2.2rem !important;
    }
    
    .brush-text {
        font-size: 2.8rem;
        transform: rotate(-1deg);
    }
    
    .brush-text-casa {
        font-size: 2rem;
        transform: rotate(-1deg);
    }
    
    .hero-cta .btn {
        font-size: 0.9rem;
        padding: 12px 25px;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

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

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* ========================================
   CONTACTO (Tarjetas separadas)
   ======================================== */
.contact-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.contact-cards-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

.map-card {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    height: 550px;
}

.map-card:hover {
    transform: none;
    box-shadow: none;
}

.contact-card-header {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.contact-card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 10px;
    text-align: center;
}

.contact-card-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    margin: 0 auto;
    border-radius: 2px;
}

.map-container {
    position: relative;
    height: 550px;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 15px;
}

#contact-map {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Marco decorativo para el mapa */
.map-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-image: url('../img/frame-map.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
    border-radius: 15px;
}

/* Iguana decorativa en la esquina inferior izquierda del mapa */
.map-container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -35px;
    width: 170px;
    height: 170px;
    background-image: url('../img/iguana.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    pointer-events: none;
}

/* Sombrero vueltiao decorativo en la esquina superior derecha del mapa */
.sombrero-decoration {
    position: absolute;
    top: -85px;
    right: -50px;
    width: 170px;
    height: 170px;
    background-image: url('../img/sobrero.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 3;
    pointer-events: none;
}

/* Estilos para la información de contacto */
.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
    overflow: hidden;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    min-height: 0;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}

.contact-info-text {
    flex: 1;
    min-width: 0;
}

.contact-info-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: 6px;
}

.contact-info-text p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.contact-info-link {
    color: var(--amarillo);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--naranja);
}

.contact-info-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-contact-social {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 13px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.btn-contact-social.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584);
    color: white;
}

.btn-contact-social.tiktok {
    background: linear-gradient(135deg, #000000, #FF0050);
    color: white;
}

.btn-contact-social.facebook {
    background: linear-gradient(135deg, #1877F2, #42A5F5);
    color: white;
}

.btn-contact-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-contact-whatsapp {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: fit-content;
    justify-content: center;
    margin: 0 auto;
}

.btn-contact-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .contact-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .contact-card {
        padding: 20px;
        height: auto;
        min-height: 500px;
    }
    
    .map-card {
        height: 600px;
    }
    
    .map-container {
        height: 600px;
    }
    
    .contact-card-header {
        margin-bottom: 10px;
    }
    
    .contact-card-header h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .contact-card-divider {
        width: 50px;
        height: 2px;
    }
    
    .contact-info-items {
        gap: 15px;
    }
    
    .contact-info-item {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .contact-info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-info-text h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .contact-info-text p {
        font-size: 0.9rem;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .contact-info-social {
        justify-content: space-between;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .btn-contact-social {
        font-size: 0.75rem;
        padding: 6px 8px;
        gap: 4px;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .btn-contact-whatsapp {
        font-size: 0.9rem;
        padding: 10px 15px;
        gap: 5px;
    }
}

/* Ajustes responsivos sin perder el marco decorativo del mapa */
@media (max-width: 992px) {
    .contact-card,
    .map-card {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
    .info-card { position: relative; z-index: 5; }
}

@media (max-width: 768px) {
    /* Asegurar orden: primero mapa, luego información */
    /* Mantener orden visual: mapa primero, info después */
    .contact-cards-container .col-12.col-lg-6:first-child { order: 1; }
    .contact-cards-container .col-12.col-lg-6:last-child { order: 2; }

    /* Limitar ancho para un centrado visual más agradable en móviles */
    .contact-card,
    .map-card {
        max-width: 600px;
    }

    /* El mapa debe aprovechar al 100% el ancho del col (y morder los gutters) */
    .map-container { 
        margin: 0; 
        overflow: visible; 
        width: calc(100% + 24px);   /* suma gutters (12px por lado) */
        transform: translateX(-12px); /* desplaza para centrar la expansión */
    }
    #contact-map { width: 100%; height: 100%; display: block; }

    /* Marco decorativo alineado al borde del contenedor en móvil */
    .map-container::before { top: -12px; left: -12px; right: -12px; bottom: -12px; }
    /* Iguana y sombrero sobre el borde del marco */
    .map-container::after { bottom: -18px; left: -18px; width: 140px; height: 140px; z-index: 3; }
    .sombrero-decoration { top: -72px; right: -18px; width: 150px; height: 150px; z-index: 3; }
    .map-card { z-index: 2; }
    .info-card { z-index: 5; }
}

/* Ocultar controles visuales de Leaflet si aparecieran */
.contact-section .leaflet-control-container {
    display: none;
}

/* Efecto de superposición para iconos del mapa */
.custom-marker {
    transition: z-index 0.3s ease;
    z-index: 1;
}

.custom-marker:hover {
    z-index: 1000 !important;
}

/* Tooltip especial para Tu Casa Valledupar */
.custom-tooltip-main {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-tooltip-main .leaflet-tooltip-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ==========================================
   CONTENEDOR FLOTANTE DE INFORMACIÓN DE CONTACTO
   ========================================== */

.contact-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-floating-container {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 400px;
    max-height: 80vh;
    z-index: 1000;
    pointer-events: none;
}

.contact-floating-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    animation: slideInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-floating-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.contact-floating-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.contact-floating-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-floating-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.contact-floating-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}

.contact-floating-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.contact-floating-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-floating-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.contact-floating-item:hover::before {
    left: 100%;
}

.contact-floating-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-floating-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.contact-floating-icon::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-floating-item:hover .contact-floating-icon::after {
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.contact-floating-icon i {
    font-size: 18px;
    color: white;
    transition: transform 0.3s ease;
}

.contact-floating-item:hover .contact-floating-icon i {
    transform: scale(1.1) rotate(5deg);
}

.contact-floating-text {
    flex: 1;
}

.contact-floating-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-floating-text p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.contact-floating-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.contact-floating-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-floating-link:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.contact-floating-link:hover::after {
    width: 100%;
}

.contact-floating-social {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-floating-social {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-floating-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.btn-floating-social:hover::before {
    left: 100%;
}

.btn-floating-social.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(225, 48, 108, 0.3);
}

.btn-floating-social.instagram:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(225, 48, 108, 0.4);
}

.btn-floating-social.facebook {
    background: linear-gradient(45deg, #3b5998, #4c70ba);
    color: white;
    box-shadow: 0 3px 10px rgba(59, 89, 152, 0.3);
}

.btn-floating-social.facebook:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 89, 152, 0.4);
}

.btn-floating-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-floating-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.4s ease;
}

.btn-floating-whatsapp:hover::before {
    left: 100%;
}

.btn-floating-whatsapp:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-floating-whatsapp i {
    font-size: 1rem;
    animation: bounce 2s infinite;
}

/* Animaciones */
@keyframes slideInRight {
    0% {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    100% {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.2;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-floating-container {
        right: 20px;
        width: 350px;
    }
}

@media (max-width: 768px) {
    .contact-floating-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: 500px;
        margin: 20px auto 0;
    }
    
    .contact-floating-content {
        animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .contact-section {
        padding: 40px 0;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-center h4,
.footer-right h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-center h4::after,
.footer-right h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* (Revertidos estilos agregados al botón hamburguesa) */

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-contact p:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-social-link:hover::before {
    left: 100%;
}

.footer-social-link:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.footer-social-link i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.footer-social-link:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.footer-copyright p,
.footer-credits p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
    transform: translateY(-1px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
}

/* ==========================================
   SELECTOR DE CAPAS DE MAPA
   ========================================== */

.map-layer-selector {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 250px;
    max-height: 70vh;
    overflow-y: auto;
    transition: all 0.3s ease;
    display: none; /* Ocultar el selector */
}

.map-layer-selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.layer-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.layer-selector-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.layer-selector-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.layer-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.layer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.layer-btn:hover::before {
    left: 100%;
}

.layer-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--primary-color);
    color: #2c3e50;
    transform: translateX(5px);
}

.layer-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.layer-btn.active:hover {
    background: var(--secondary-color);
    transform: translateX(5px) scale(1.02);
}

.layer-btn i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.layer-btn span {
    font-weight: 500;
}

/* Responsive para el selector de capas */
@media (max-width: 768px) {
    .map-layer-selector {
        bottom: 10px;
        left: 10px;
        right: 10px;
        min-width: auto;
        max-height: 60vh;
        padding: 12px;
    }
    
    .layer-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .layer-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
        justify-content: center;
        text-align: center;
    }
    
    .layer-btn i {
        font-size: 0.8rem;
    }
    
    .layer-btn span {
        font-size: 0.7rem;
    }
}

/* ========================================
   ESTILOS PARA TESTIMONIOS
   ======================================== */

.testimonials-section {
    background-image: url('../img/sombrero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}


.testimonials-section .container {
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0.5rem;
}

.testimonials-column {
    background: transparent;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: none;
    backdrop-filter: none;
}

.testimonials-house-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 207, 87, 0.3);
}

.testimonials-house-header h3 {
    color: #654321;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.testimonials-count {
    color: var(--gris, #7f8c8d);
    font-size: 0.9rem;
    margin: 0;
}

.testimonials-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.testimonial-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--amarillo, #f1c40f);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.8rem;
    border: 2px solid var(--amarillo, #f1c40f);
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--gris-oscuro, #2c3e50);
    font-weight: 600;
}

.testimonial-location {
    font-size: 0.8rem;
    color: var(--gris, #7f8c8d);
    margin: 0;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.stars {
    color: #ffd700;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.testimonial-date {
    font-size: 0.8rem;
    color: var(--gris, #7f8c8d);
}

.testimonial-comment {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--gris-oscuro, #2c3e50);
    margin: 0;
}

/* Scrollbar personalizado */
.testimonials-list::-webkit-scrollbar {
    width: 6px;
}

.testimonials-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.testimonials-list::-webkit-scrollbar-thumb {
    background: var(--amarillo, #f1c40f);
    border-radius: 3px;
}

.testimonials-list::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
}

/* ========================================
   EFECTO DE TARJETAS APILADAS (STACKED CARDS)
   ======================================== */

.stacked-cards-container {
    position: relative;
    height: 500px;
    margin: 3rem 0;
    overflow: hidden;
}

.stacked-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stacked-card {
    position: absolute;
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
}

.stacked-card.active {
    border-color: var(--amarillo, #f1c40f);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-width: 3px;
}

/* Efectos de transparencia progresiva para las tarjetas */
.stacked-card.prev,
.stacked-card.next {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stacked-card.hidden {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efecto de desvanecimiento suave para las tarjetas más lejanas */
.stacked-card[style*="opacity: 0.3"] {
    filter: blur(1px);
}

.stacked-card[style*="opacity: 0.5"] {
    filter: blur(0.5px);
}

/* Estilos para tarjetas de fondo (sin contenido) */
.stacked-card.prev,
.stacked-card.next,
.stacked-card.hidden {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Asegurar que el contenido esté oculto en tarjetas no activas */
.stacked-card.prev .stacked-card-content,
.stacked-card.next .stacked-card-content,
.stacked-card.hidden .stacked-card-content {
    display: none !important;
}

/* Contenido de la tarjeta */
.stacked-card-content {
    padding: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stacked-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stacked-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--amarillo, #f1c40f);
    transition: all 0.3s ease;
}

.stacked-card-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gris-oscuro, #2c3e50);
    font-weight: 600;
    /* Truncado de texto para nombres largos */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.stacked-card-location {
    font-size: 0.9rem;
    color: var(--gris, #7f8c8d);
    margin: 0;
    /* Truncado de texto para ubicaciones largas */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.stacked-card-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stacked-card-stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.stacked-card-date {
    font-size: 0.8rem;
    color: var(--gris, #7f8c8d);
}

.stacked-card-comment {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gris-oscuro, #2c3e50);
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* Truncado de texto con puntos suspensivos */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    max-height: 9.6rem; /* 6 líneas * 1.6 line-height * 1rem font-size */
}

/* Navegación */
.card-navigation {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--amarillo, #f1c40f);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.nav-btn:hover {
    background: #e6b800;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Indicadores de posición */
.card-indicators {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-indicator.active {
    background: var(--amarillo, #f1c40f);
    transform: scale(1.2);
}

/* Efectos de hover */
.stacked-card:hover {
    transform: translateZ(10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.stacked-card:hover .stacked-card-photo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Responsive para tarjetas apiladas */
@media (max-width: 768px) {
    .stacked-cards-container {
        height: 450px;
        margin: 2rem 0;
    }
    
    .stacked-card {
        height: 350px;
    }
    
    .card-navigation {
        right: -40px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .stacked-card-content {
        padding: 1rem;
    }
    
    .stacked-card-photo {
        width: 50px;
        height: 50px;
    }
}

/* ========================================
   CLASE COMPARTIDA PARA TÍTULOS CON BROCHAZO
   ======================================== */

.section-title-brush {
    background-image: url('../img/brush-yellow-orange-material-yellow.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 2.5rem;
    margin: 2rem auto;
    text-align: center;
    max-width: 1000px;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.6));
}

.section-title-brush h2 {
    color: #8B4513;
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 0.5rem 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 16px rgba(255, 255, 255, 0.6),
        0 0 24px rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

.section-title-brush p {
    color: #8B4513;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.3),
        0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 18px rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

.section-title-brush::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--amarillo), var(--naranja));
    margin: 1rem auto 0 auto;
    border-radius: 2px;
}

/* ========================================
   SECCIÓN INSPÍRATE A VIAJAR
   ======================================== */

/* Sección Inspírate a Viajar */
.inspire-section {
    background-image: url('../img/gallery-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Los estilos ahora están en .section-title-brush */

.inspire-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.inspire-section .container {
    position: relative;
    z-index: 2;
}

/* Contenedor principal de widgets sociales */
.social-widgets-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Widget individual */
.social-widget {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: none;
    border: none;
}

.social-widget:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

/* Widget de TikTok */
.tiktok-widget {
    background: transparent !important;
    color: var(--blanco);
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: none !important;
    border: none !important;
}

.tiktok-widget:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Grid de TikTok */
.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    min-height: 400px;
}

/* Video individual de TikTok */
.tiktok-video {
    width: 100%;
    max-width: 325px;
    position: relative;
}


/* Estilos para el embed de TikTok */
.tiktok-embed {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Thumbnails de TikTok */
.tiktok-thumbnail {
    width: 100%;
    max-width: 325px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tiktok-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.thumbnail-placeholder {
    position: relative;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #000000, #ff0050, #00f2ea);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tiktok-logo {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.play-button {
    font-size: 2rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.tiktok-thumbnail:hover .play-button {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: white;
    animation: soundPulse 2s infinite;
}

@keyframes soundPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.thumbnail-info h4 {
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.thumbnail-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animación de pulso para el logo */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Botón de TikTok */
.tiktok-cta {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.btn-tiktok {
    background: linear-gradient(45deg, #000000, #ff0050, #00f2ea);
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.3);
}

.btn-tiktok:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 80, 0.4);
    color: var(--blanco);
    text-decoration: none;
}

.btn-tiktok i {
    font-size: 1.3rem;
}

/* Loading para TikTok */
.tiktok-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
}

.tiktok-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ff0050;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

/* Responsive para widgets sociales */
@media (max-width: 768px) {
    .inspire-section {
        background-attachment: scroll;
    }
    
    .social-widgets-container {
        gap: 2rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .tiktok-grid {
        gap: 1.5rem;
        padding: 0 0.5rem;
        grid-template-columns: 1fr;
    }
    
    .tiktok-video {
        max-width: 100%;
    }
    
    .tiktok-thumbnail {
        max-width: 100%;
    }
    
    .thumbnail-container {
        height: 350px;
        padding: 1.5rem;
    }
    
    .thumbnail-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .tiktok-logo {
        font-size: 2.5rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .thumbnail-info h4 {
        font-size: 1.1rem;
    }
    
    .thumbnail-info p {
        font-size: 0.8rem;
    }
    
    .sound-indicator {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
    
    .btn-tiktok {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .inspire-section .section-header p {
        font-size: 1.1rem;
    }
}

/* Responsive para la clase compartida */
@media (max-width: 768px) {
    .section-title-brush h2 {
        font-size: 2.5rem;
    }
    
    .section-title-brush p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title-brush h2 {
        font-size: 2rem;
    }
    
    .section-title-brush p {
        font-size: 0.9rem;
    }
    
    .section-title-brush {
        padding: 1.5rem 2rem;
    }
}

/* Responsive para testimonios */
@media (max-width: 768px) {
    .testimonials-section {
        background-attachment: scroll;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-column {
        padding: 1rem;
    }
}

/* ======================================== */
/* OVERRIDE FINAL: WHATSAPP FLOAT VISIBILIDAD */
/* Oculto por defecto; visible solo con .visible */
body .whatsapp-float {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.95) !important;
    pointer-events: none !important;
    animation: none !important;
}

body .whatsapp-float.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    animation: none !important;
    background: #25D366 !important;
    z-index: 10000 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    box-shadow: 0 10px 25px rgba(96, 62, 40, 0.35) !important; /* sombra acorde al café */
}

/* (Revertido a color por defecto del botón de WhatsApp) */
