/* =========================================
   HOUTIQUE | MIDNIGHT LUXURY STYLE (FINAL)
   ========================================= */

:root {
    --bg-body: #FFFFFF;     /* Blanco Puro */
    --primary: #0B132B;     /* Azul Medianoche */
    --primary-light: #1C2541;
    --accent: #C5A059;      /* Dorado Champaña */
    --text-grey: #4B5563;   /* Gris Pizarra */
    --line-color: rgba(11, 19, 43, 0.1);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-body);
    color: var(--primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--primary); }
a { text-decoration: none; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* --- NAVBAR FLOTANTE --- */
.panel-nav {
    position: fixed;
    top: 20px; left: 50%; transform: translateX(-50%);
    width: 95%; max-width: 1300px; z-index: 1000;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 4px;
    border: 1px solid var(--line-color);
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-brand {
    font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
    color: var(--primary); letter-spacing: -0.5px;
    position: absolute; left: 50%; transform: translateX(-50%);
}

.nav-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--text-grey);
}
.pulsing-dot {
    width: 6px; height: 6px; background-color: var(--accent); border-radius: 50%;
    box-shadow: 0 0 0 rgba(197, 160, 89, 0.7); animation: pulse-gold 2s infinite;
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(197, 160, 89, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); }
}

.nav-controls { display: flex; align-items: center; gap: 30px; }
.desktop-links { display: flex; gap: 25px; }
.desktop-links a {
    font-size: 0.85rem; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.5px; position: relative;
}
.desktop-links a::after {
    content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px;
    background: var(--accent); transition: 0.3s;
}
.desktop-links a:hover::after { width: 100%; }

.btn-panel {
    background: var(--primary); color: white; padding: 10px 20px;
    font-size: 0.8rem; font-weight: 600; border-radius: 2px;
    text-transform: uppercase; letter-spacing: 0.5px; transition: 0.3s;
}
.btn-panel:hover { background: var(--accent); transform: translateY(-2px); }

.panel-toggle {
    display: none; background: none; border: none; cursor: pointer;
    font-size: 2rem; color: var(--primary);
}

/* MENÚ MÓVIL OVERLAY */
.mobile-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-body); z-index: 900;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(-100%); transition: 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}
.mobile-overlay.active { transform: translateY(0); }
.mobile-content { display: flex; flex-direction: column; text-align: center; gap: 20px; }
.mobile-label { font-size: 0.8rem; letter-spacing: 4px; color: var(--accent); margin-bottom: 20px; }
.mobile-content a { font-family: var(--font-display); font-size: 2.5rem; color: var(--primary); }
.mobile-content a:hover { color: var(--accent); }

/* --- HERO --- */
.hero-split {
    display: grid; grid-template-columns: 1.2fr 1fr; min-height: 85vh;
    align-items: center; overflow: hidden;
}
.hero-text { padding: 60px 30px 60px 10%; }
.badge {
    display: inline-block; font-size: 0.75rem; letter-spacing: 2px; font-weight: 700;
    color: var(--accent); margin-bottom: 20px; border: 1px solid var(--accent);
    padding: 5px 12px; border-radius: 50px;
}
.hero-text h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 25px; }
.highlight { color: var(--accent); font-style: italic; }
.hero-desc { font-size: 1.2rem; color: var(--text-grey); max-width: 500px; margin-bottom: 50px; }

.hero-stats { display: flex; gap: 60px; border-top: 1px solid var(--line-color); padding-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.lbl { font-size: 0.85rem; color: var(--text-grey); margin-top: 5px; }

.hero-image { height: 100%; width: 100%; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* --- SECCIONES COMUNES --- */
.section-padding { padding: 100px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; }
.bg-light { background: #F9FAFB; }

.grid-text-img { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.check-list { list-style: none; margin-top: 30px; }
.check-list li { display: flex; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; color: var(--text-grey); }
.check-list i { color: var(--accent); font-size: 1.4rem; }

.img-composition { position: relative; }
.img-main { width: 100%; border-radius: 4px; box-shadow: 20px 20px 0 var(--primary); }
.floating-quote {
    position: absolute; bottom: -30px; left: -30px; background: white;
    padding: 30px; border-left: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-width: 300px;
}
.floating-quote p { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }

/* --- SERVICIOS "BLUEPRINT" --- */
.section-header-center { text-align: center; margin-bottom: 80px; }
.sub-header { color: var(--accent); font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; display: block; margin-bottom: 10px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

.blueprint-card {
    position: relative; padding: 40px 30px; min-height: 400px;
    display: flex; flex-direction: column; justify-content: flex-end;
    cursor: pointer;
    border-left: 1px solid var(--line-color); 
    border-right: 1px solid var(--line-color); 
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent; overflow: hidden;
}

.card-bg {
    position: absolute; inset: 0; background: var(--primary);
    transform: scaleY(0); transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); z-index: 0;
}

.blueprint-card:hover .card-bg { transform: scaleY(1); }
.blueprint-card:hover h3, .blueprint-card:hover p, 
.blueprint-card:hover .big-num, .blueprint-card:hover .btn-text { color: white; border-color: rgba(255,255,255,0.2); }

.big-num {
    position: absolute; top: 20px; right: 20px;
    font-family: var(--font-display); font-size: 5rem; font-weight: 800;
    color: rgba(11, 19, 43, 0.05); line-height: 1; transition: 0.5s; z-index: 1;
}
.content-box { position: relative; z-index: 1; }

.blueprint-card h3 { font-size: 2rem; line-height: 1.1; margin-bottom: 20px; color: var(--primary); transition: 0.5s; }
.desc { font-size: 1rem; color: var(--text-grey); margin-bottom: 30px; line-height: 1.6; border-top: 1px solid var(--line-color); padding-top: 20px; transition: 0.5s; }
.btn-text { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-size: 0.8rem; display: flex; align-items: center; gap: 10px; transition: 0.5s; }

.corner-top, .corner-btm {
    position: absolute; width: 20px; height: 20px;
    border-color: var(--primary); transition: 0.5s; z-index: 1; pointer-events: none;
}
.corner-top { top: 0; left: 0; width: 100%; border-top: 1px solid var(--primary); }
.corner-top::before, .corner-top::after { content: ''; position: absolute; top: 0; width: 1px; height: 10px; background: var(--primary); }
.corner-top::before { left: 0; } .corner-top::after { right: 0; }

.corner-btm { bottom: 0; left: 0; width: 100%; border-bottom: 1px solid var(--primary); }
.corner-btm::before, .corner-btm::after { content: ''; position: absolute; bottom: 0; width: 1px; height: 10px; background: var(--primary); }
.corner-btm::before { left: 0; } .corner-btm::after { right: 0; }

.blueprint-card:hover .corner-top, .blueprint-card:hover .corner-btm { border-color: var(--accent); }
.blueprint-card:hover .corner-top::before, .blueprint-card:hover .corner-top::after,
.blueprint-card:hover .corner-btm::before, .blueprint-card:hover .corner-btm::after { background: var(--accent); }

/* --- VISUAL BREAK --- */
.visual-break {
    background: url('https://images.unsplash.com/photo-1493397212122-2b85dda8106b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center/cover fixed;
    height: 400px; position: relative; display: flex; align-items: center; justify-content: center;
}
.visual-break::before { content: ''; position: absolute; inset: 0; background: rgba(11, 19, 43, 0.7); }
.overlay-text { position: relative; z-index: 2; text-align: center; color: white; padding: 20px; }
.overlay-text h2 { color: white; font-size: 3rem; margin-bottom: 30px; }
.btn-outline {
    border: 2px solid white; color: white; padding: 15px 40px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; display: inline-block;
}
.btn-outline:hover { background: white; color: var(--primary); }

/* --- CONTACTO DARK --- */
.bg-dark { background: var(--primary); color: white; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h2 { color: white; font-size: 2.8rem; margin-bottom: 20px; }
.contact-info p { color: #9ca3af; margin-bottom: 40px; }

.info-row { display: flex; gap: 20px; margin-bottom: 30px; }
.info-icon {
    width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent); flex-shrink: 0;
}
.info-row h4 { color: white; margin-bottom: 5px; font-family: var(--font-body); font-weight: 600; }
.info-row p { margin-bottom: 0; font-size: 0.9rem; }

.pro-form { background: white; padding: 50px; border-radius: 8px; color: var(--primary); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-group input, .form-group select {
    width: 100%; padding: 12px; border: 1px solid #e5e7eb; border-radius: 4px;
    font-family: var(--font-body); font-size: 1rem; outline: none; -webkit-appearance: none;
}
.form-group input:focus { border-color: var(--primary); }
.btn-full {
    width: 100%; background: var(--accent); color: white; border: none;
    padding: 15px; font-weight: 700; border-radius: 4px; cursor: pointer; transition: 0.3s;
}
.btn-full:hover { background: #b08d4b; }

footer { background: #060b19; color: #9ca3af; padding: 40px 0; text-align: center; }
.brand-footer { color: white; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; }

/* =========================================
   MOBILE OPTIMIZATION (CORRECCIONES FINALES)
   ========================================= */
@media (max-width: 900px) {
    .container { padding: 0 20px; }

    /* Navbar Móvil Reset */
    .panel-nav { width: 100%; top: 0; left: 0; transform: none; border-radius: 0; max-width: none; }
    .nav-wrapper { border-radius: 0; border: none; border-bottom: 1px solid rgba(0,0,0,0.05); padding: 15px 20px; }
    .nav-brand { position: static; transform: none; }
    .desktop-links, .desktop-only { display: none; }
    .panel-toggle { display: block; }
    
    /* HERO AJUSTADO PARA MÓVIL (Menos agresivo) */
    .hero-split { 
        grid-template-columns: 1fr; 
        min-height: auto; 
        padding-top: 60px;
    }
    .hero-image { 
        height: 35vh; 
        order: -1; 
    }
    .hero-text { 
        padding: 30px 20px 40px 20px; 
        text-align: center; 
        order: 1;
    }
    .hero-text h1 {
        font-size: 2rem; /* Tamaño mucho más controlado */
        line-height: 1.2;
        margin-bottom: 15px;
    }
    /* Ocultar saltos de línea forzados en móvil */
    .hero-text h1 br { display: none; }

    .hero-desc {
        font-size: 0.95rem; /* Texto más fino */
        max-width: 90%;
        margin: 0 auto 30px auto; /* Centrado */
        line-height: 1.5;
    }

    .hero-stats { 
        justify-content: center; 
        gap: 20px; 
        padding-top: 20px;
    }
    .num { font-size: 2rem; }

    /* Secciones */
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    
    .grid-text-img { grid-template-columns: 1fr; gap: 40px; }
    .img-composition { display: block; } 
    .img-main { margin-bottom: 30px; }
    .floating-quote { position: static; max-width: 100%; margin-top: -50px; margin-left: 20px; margin-right: 20px; }
    
    /* Tarjetas Móvil */
    .blueprint-card {
        min-height: auto; padding: 25px 20px;
        background: white; border: 1px solid var(--line-color);
        border-radius: 8px;
    }
    .blueprint-card .big-num { opacity: 0.1; font-size: 3rem; top: 10px; right: 10px; }
    .corner-top, .corner-btm, .card-bg { display: none; }
    
    /* Contacto */
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .pro-form { padding: 30px 20px; }
    .visual-break { height: 250px; background-attachment: scroll; }
    .overlay-text h2 { font-size: 1.8rem; }
}