/* --- 1. VARIABLES Y RESET --- */
:root {
    --color-dark: #0a0a0a;
    --color-grey: #1F1F1F;
    --color-gold: #c5a059;       
    --gold-gradient: linear-gradient(45deg, #b38728 0%, #fcf6ba 25%, #bf953f 50%, #fbf5b7 75%, #aa771c 100%);
    --color-white: #FFFFFF;
    --color-text-light: #F5F5F5;
    --color-text-dark: #333333;
    --font-main: 'Montserrat', sans-serif;
    --font-title: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
}

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

/* --- 2. TIPOGRAFÍA Y UTILIDADES --- */
h1, h2, h3 { font-family: var(--font-title); }

.gold-text { 
    color: var(--color-gold);
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.italic { font-style: italic; }
.dark-text { color: var(--color-dark); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 500;
}

/* --- 3. HEADER --- */
.main-header {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    transition: all 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
}

.logo .gold-text {
    -webkit-text-fill-color: initial; 
    background: none;
    color: var(--color-gold);
}

/* Menú Navegación */
nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Iconos Header Escritorio */
.desktop-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 25px; 
    padding-left: 25px;
    border-left: 1px solid rgba(197, 160, 89, 0.4); 
    height: 30px;
}

.desktop-contact a {
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.desktop-contact a:hover {
    color: #fff;
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.8));
}

/* --- 4. BOTONES --- */
.btn-nav {
    border: 1px solid var(--color-gold);
    color: var(--color-gold) !important;
    padding: 10px 20px;
    border-radius: 0;
}
.btn-nav:hover {
    background-color: var(--color-gold);
    color: var(--color-dark) !important;
}

.btn-primary {
    display: inline-block;
    background-color: transparent; 
    background-image: var(--gold-gradient);
    background-size: 200% auto;
    color: #000000;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(191, 149, 63, 0.4);
}

.btn-primary:hover {
    background-position: right center;
    color: #000;
    box-shadow: 0 6px 20px rgba(252, 246, 186, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

/* --- 5. HERO SECTION (PORTADA) --- */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background-color: var(--color-dark); /* Fondo negro detrás del video */
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 10; 
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.85; /* AQUÍ ESTÁ TU OPACIDAD CORREGIDA */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 60px;
    text-align: left; /* Por defecto en PC a la izquierda según tu diseño */
    padding-left: 20px; 
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- 6. SECCIÓN DE CONFIANZA (PARALLAX BEIGE) --- */
.trust-section {
    background: 
        linear-gradient(rgba(199, 189, 166, 0.92), rgba(212, 205, 181, 0.952)),
        url('../img/image4.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    text-align: center;
    position: relative;
    z-index: 1; 
    margin-top: -16vh; 
    padding-top: 20vh; 
    padding-bottom: 40px; 
}

.trust-section .gold-text {
    color: #9E7C30; 
    background: none; 
    -webkit-text-fill-color: initial;
    text-shadow: none;
}

/* Grid de Tarjetas */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas */
    gap: 60px; 
    max-width: 1000px; 
    margin: 60px auto 0;
}

.feature-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-card .icon {
    font-size: 3rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
}

.feature-card p { color: #333; }
.feature-card p strong {
    color: #9E7C30;
    font-weight: 700;
}

/* --- 7. SECCIÓN SUEÑOS CUMPLIDOS (CARRUSEL) --- */
.dreams-section {
    /* Mismo fondo que la anterior para continuidad */
    background: 
        linear-gradient(rgba(199, 189, 166, 0.92), rgba(212, 205, 181, 0.952)),
        url('../img/image4.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding-bottom: 150px;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Corte final sobre el footer */
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.swiper {
    width: 100%;
    padding-bottom: 50px !important;
    padding-top: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.dream-card {
    background-color: #fff;
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.dream-card:hover { transform: translateY(-10px); }

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

.dream-card:hover .card-image img { transform: scale(1.05); }

.dream-info {
    padding: 20px;
    text-align: left;
    border-bottom: 3px solid var(--color-gold);
}

.dream-info h4 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dream-info .client-name {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.swiper-pagination-bullet {
    background: #000;
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    background: var(--color-gold) !important;
    opacity: 1;
    transform: scale(1.2);
}

/* --- 8. FOOTER PREMIUM --- */
.main-footer {
    background-color: #050505;
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 0;
    padding-top: 150px; 
    margin-top: -100px;
    padding-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    text-align: left; /* Alineación Izquierda por defecto */
}

.footer-col:nth-child(2),
.footer-col:nth-child(3) {
    text-align: center; /* Contacto y Legal centrados */
}

.footer-desc {
    margin-top: 20px;
    margin-bottom: 25px;
    line-height: 1.8;
    max-width: 400px;
    text-transform: none; 
    color: #ccc;
}

.footer-title {
    color: var(--color-gold);
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mt-4 { margin-top: 30px; }

.footer-contact-list, .footer-links { list-style: none; }
.footer-contact-list li, .footer-links li { margin-bottom: 12px; }

.footer-contact-list a, .footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-contact-list a:hover, .footer-links a:hover { color: var(--color-gold); }

.footer-schedule { color: #ccc; margin-bottom: 5px; }

.footer-socials {
    display: flex;
    gap: 15px;
    justify-content: flex-start; /* Iconos a la izquierda */
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--color-gold);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--color-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- 9. BOTÓN FLOTANTE MÓVIL (WIDGET) --- */
.mobile-contact-widget { display: none; }
.mobile-cta-btn { display: none; }

/* =========================================
   10. PÁGINAS LEGALES
   ========================================= */
.legal-main {
    padding-top: 140px;
    padding-bottom: 80px;
    background-color: #fff;
    min-height: 80vh;
}
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}
.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 15px;
    display: inline-block;
}
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-dark);
}
.legal-content p, .legal-content li {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}
.legal-content ul { margin-left: 20px; margin-bottom: 20px; }
.legal-content strong { color: #000; }

/* =========================================
   MEDIA QUERIES (MÓVIL) - EL CÓDIGO FINAL
   ========================================= */
@media (max-width: 768px) {
    
    /* NAV: Ocultar menú escritorio */
    nav { display: none; }
    .desktop-contact { display: none; }

    /* HEADER: Absolute y transparente */
    .main-header {
        position: absolute; 
        top: 0; left: 0; width: 100%;
        padding: 20px 0;
        background: transparent !important;
        box-shadow: none !important;
        border-bottom: none;
    }
    
    .main-header .container {
        display: flex;
        justify-content: center; /* Logo centrado */
    }

    .logo {
        font-size: 1.4rem;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    
    /* BOTÓN FLOTANTE SUPERIOR (SOLICITAR) */
    .mobile-cta-btn {
        display: block;
        position: fixed; 
        top: 20px;          
        left: 50%;          
        right: auto;        
        z-index: 9999;
        width: 85%;         
        max-width: 350px;   
        padding: 14px 0;    
        text-align: center; 
        background-image: var(--gold-gradient);
        color: #000;
        text-decoration: none;
        font-weight: 800;   
        font-size: 0.9rem;  
        text-transform: uppercase;
        border-radius: 50px; 
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        
        transform: translateX(-50%) translateY(-20px) scale(0.9); 
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* Aparece al bajar scroll */
    .main-header.scrolled .mobile-cta-btn {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        pointer-events: auto;
    }
    .main-header.scrolled {
        background-color: transparent;
        position: absolute;
    }

    /* HERO: Ajustes */
    /* HERO: Ajustes */
    .hero-content {
        padding-top: 0; 
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center; 
        padding-left: 0;
        align-items: center; /* ESTO ES NUEVO: Centra todo el contenido horizontalmente */
    }
    
    .hero-content h1 { 
        font-size: 2rem; 
        margin-top: -40px; 
        padding: 0 15px; /* Un poco de margen para que el texto no toque los bordes */
    }

    .hero-buttons { 
        display: flex; 
        flex-direction: column; 
        gap: 20px; 
        width: 100%; 
        margin-top: 40px;
        align-items: center; /* CLAVE: Esto evita que el botón se estire al 100% */
    }

    /* Ajuste específico para el botón dorado en móvil */
    .hero-buttons .btn-primary {
        width: 90%;          /* Ocupa el 90% del ancho disponible */
        max-width: 320px;    /* Pero nunca más de 320px (tamaño iPhone) */
        display: flex;       /* Usamos flex para centrar el texto perfecto */
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 15px 20px;  /* Reducimos un poco el padding lateral */
        margin: 0 auto;      /* Asegura el centrado */
    }

    .hero-buttons .btn-secondary { display: none; }

    /* SECCIÓN CONFIANZA: 1 Columna */
    .features-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .trust-section {
        margin-top: -10vh;
        padding-top: 15vh;
    }

    /* WIDGET CONTACTO ABAJO IZQ */
    .mobile-contact-widget {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 9999;
    }

    .main-fab {
        width: 55px; height: 55px;
        border-radius: 50%;
        background-image: var(--gold-gradient);
        border: none;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        color: #000;
        font-size: 1.5rem;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        position: relative; z-index: 2;
        transition: transform 0.3s;
    }

    .main-fab .icon-open { display: none; }
    .main-fab .icon-closed { display: block; }
    
    .mobile-contact-widget.active .main-fab { transform: rotate(90deg); }
    .mobile-contact-widget.active .main-fab .icon-open { display: block; }
    .mobile-contact-widget.active .main-fab .icon-closed { display: none; }

    .contact-options {
        position: absolute;
        bottom: 70px; left: 0;
        display: flex; flex-direction: column; gap: 10px;
        pointer-events: none;
    }

    .contact-opt {
        display: flex; align-items: center; gap: 10px;
        text-decoration: none;
        opacity: 0; transform: translateY(20px) scale(0.8);
        transition: all 0.3s ease;
    }
    
    .contact-opt span {
        background: rgba(0,0,0,0.8); color: #fff;
        padding: 5px 10px; border-radius: 4px;
        font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    }

    .contact-opt .icon-circle {
        width: 45px; height: 45px;
        border-radius: 50%; background-color: #fff;
        color: #000; display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem;
    }
    .contact-opt.whatsapp .icon-circle { background-color: #25D366; color: white; }
    .contact-opt.phone .icon-circle { background-color: #0a0a0a; color: var(--color-gold); }

    .mobile-contact-widget.active .contact-options { pointer-events: auto; }
    .mobile-contact-widget.active .contact-opt { opacity: 1; transform: translateY(0) scale(1); }
    .mobile-contact-widget.active .contact-opt.whatsapp { transition-delay: 0.05s; }
    .mobile-contact-widget.active .contact-opt.phone { transition-delay: 0.1s; }

    /* FOOTER MÓVIL */
    .main-footer {
        padding-top: 120px;
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-desc {
        margin-left: auto; margin-right: auto;
        max-width: 100%;
    }
    .footer-socials { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}