/* DREAM SPACE 
   Hero (Arriba) -> Servicios -> Proceso -> Nosotros (Antes Footer)
*/
:root{
--accent:#0f62fe;
--accent-blue: #0f62fe;
--dark:#161616;
--grey:#666;
--bg:#f8f9fa;
--bg-tech: #f8f9fa;
--white: #ffffff;
}

*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Inter',sans-serif;color:var(--dark);}

.container{width:90%;max-width:1400px;margin:auto;}

section{padding:180px 0;}




/* --- NAVBAR & NAVIGATION --- */
.navbar { padding: 40px 0; z-index: 1000; position: relative; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-size: 26px; font-weight: 800; text-decoration: none; color: var(--dark); letter-spacing: -1.5px; }
.brand span { color: var(--accent-blue); font-weight: 300; }

.nav-links { display: flex; list-style: none; gap: 45px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-blue); }

/* FLECHA DEL DROPDOWN */
.dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown > a::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: 0.3s ease;
}

.dropdown:hover > a { color: var(--accent-blue); }
.dropdown:hover > a::after {
    border-top-color: var(--accent-blue);
    transform: rotate(180deg);
}

/* BOTÓN DE CONTACTO (Ajuste para que no se corte) */
.btn-contact { 
    background: var(--dark); 
    color: var(--white) !important; 
    padding: 14px 28px; 
    transition: 0.3s; 
    white-space: nowrap; /* EVITA QUE EL TEXTO SE CORTE O SALTE DE LÍNEA */
    display: inline-block;
}
.btn-contact:hover { background: var(--accent-blue); }

/* --- DROPDOWN DESKTOP --- */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    min-width: 240px;
    padding: 15px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    transform: translateY(10px);
    border-top: 2px solid var(--accent-blue);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 12px 25px;
    display: block;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey);
}

.dropdown-menu li a::after { display: none; }

.dropdown-menu li a:hover {
    background: var(--bg-tech);
    color: var(--accent-blue) !important;
    padding-left: 30px;
}

/* --- MOBILE MENU TOGGLE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    transition: 0.3s;
}

/* --- MEDIA QUERY PARA TABLETS (iPad Air/Pro) --- */
/* Reducimos espacios para que el botón no se amontone antes de entrar a modo móvil */
@media (max-width: 1100px) and (min-width: 769px) {
    .nav-links { gap: 20px; } /* Espacio más pequeño entre links */
    .btn-contact { padding: 12px 18px; font-size: 12px; } /* Botón más compacto */
    .brand { font-size: 22px; }
}

/* --- RESPONSIVE MÓVIL (Max 768px) --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        padding-top: 120px;
        gap: 20px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active { left: 0; }
    .nav-links a { font-size: 18px; padding: 10px; }

    .dropdown > a { justify-content: center; }
    .dropdown.active > a::after { transform: rotate(180deg); }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        box-shadow: none;
        background: var(--bg-tech);
        width: 100%;
        border-top: none;
    }

    .dropdown.active .dropdown-menu { display: block; }

    .btn-contact { width: 80%; margin: 20px auto; white-space: normal; } /* En móvil si puede saltar línea si es necesario */

    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


/* --- FOOTER LUXURY --- */
.footer-luxury { padding: 100px 0 40px 0; background-color: var(--white); border-top: 1px solid #e0e0e0; }

.footer-cta h2 { font-size: clamp(35px, 5vw, 60px); font-weight: 800; letter-spacing: -3px; line-height: 1.1; }
.footer-cta h2 span { color: var(--accent-blue); font-weight: 300; }

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1.2fr 1.2fr; /* Ajustado para dar más aire al contacto */
    gap: 60px; 
    padding-top: 60px; 
    border-top: 1px solid #d0d0d0; 
    margin-top: 60px; 
}

.footer-desc { font-size: 15px; color: var(--grey); max-width: 320px; line-height: 1.6; }

.footer-col h4 { 
    font-size: 11px; 
    text-transform: uppercase; 
    margin-bottom: 25px; 
    letter-spacing: 1.5px;
    font-weight: 700;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 15px; } /* Más espacio entre líneas para facilitar clics */

.footer-col ul li a { 
    color: var(--grey); 
    text-decoration: none; 
    font-size: 14px; 
    transition: 0.3s ease; 
    display: inline-block;
}

.footer-col ul li a:hover { 
    color: var(--accent-blue); 
    padding-left: 8px; /* Efecto sutil de desplazamiento */
}

/* Estilo para ID técnico y datos de contacto */
.tech-id { 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    color: #999; 
    margin-top: 20px;
}

.footer-bottom { 
    margin-top: 80px; 
    padding-top: 30px; 
    border-top: 1px solid #e0e0e0; 
    text-align: center; 
    color: #999; 
    font-size: 12px; 
}
.footer-bottom p {
    color: #999;
    font-size: 12px;
}

.footer-link {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* --- RESPONSIVO --- */

/* Ajuste para pantallas grandes/medianas */
@media (max-width: 1200px) { 
    .grid-services, .process-grid { grid-template-columns: repeat(2, 1fr); } 
    .card-bottom { margin-top: 0; } 
    .footer-grid { gap: 40px; }
}

/* Ajuste para Tablets */
@media (max-width: 1024px) { 
    .hero-visual { display: none; } 
    .hero-content { width: 100%; } 
    .row-about { grid-template-columns: 1fr; } 
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Ajuste para Móviles */
@media (max-width: 768px) { 
    .nav-links { gap: 15px; } 
    .grid-services, .process-grid { grid-template-columns: 1fr; } 
    
    .footer-grid { 
        grid-template-columns: 1fr; /* Todo en una sola columna en móvil */
        gap: 40px;
        text-align: center; 
    }
    
    .footer-desc { margin: 0 auto; }
    
    .footer-col ul li a:hover { padding-left: 0; transform: scale(1.05); } /* Cambio de efecto en móvil */
}


/* ================= HERO REFINADO ================= */

.contact-hero{
position:relative;
overflow:hidden;
padding-top:150px;
padding-bottom:200px;
}

.hero-bg{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
font-size:16vw;
font-weight:900;
color:rgba(0,0,0,0.02);
pointer-events:none;
}

.hero-grid{
display:grid;
grid-template-columns:1.1fr 1fr;
gap:160px;
align-items:start;
}

.hero-left{
max-width:600px;
}

.hero-line{
width:70px;
height:3px;
background:var(--accent);
margin-bottom:60px;
}

.hero-left h1{
font-size:clamp(42px,4.5vw,64px);
line-height:1.15;
letter-spacing:-1px;
margin-bottom:40px;
font-weight:800;
}

.hero-left h1 span{
display:block;
font-weight:300;
margin-top:18px;
font-size:0.9em;
}

.hero-left p{
color:var(--grey);
font-size:17px;
line-height:1.8;
margin-bottom:70px;
max-width:480px;
}

.btn-whatsapp{
display:inline-flex;
align-items:center;
justify-content:center;

padding:18px 42px;
background:#25D366;
color:#ffffff;
text-decoration:none;

font-weight:600;
font-size:14px;
letter-spacing:0.5px;

border:2px solid #25D366;
transition:all .3s ease;
}

.btn-whatsapp:hover{
background:transparent;
color:#25D366;
}

/* ================= FORM PRINCIPAL ================= */

.form-box{
background:var(--bg);
padding:80px;
position:relative;
}

.form-box::before{
content:"";
position:absolute;
left:0;
top:0;
width:5px;
height:100%;
background:var(--accent);
}

.form-box h3{
font-size:30px;
margin-bottom:15px;
}

.form-sub{
color:var(--grey);
font-size:15px;
margin-bottom:60px;
}

.row{margin-bottom:35px;}
.row.two{display:grid;grid-template-columns:1fr 1fr;gap:30px;}

input,select,textarea{
width:100%;
padding:18px 0;
border:none;
border-bottom:1px solid #ddd;
font-size:16px;
background:transparent;
}

input:focus,select:focus,textarea:focus{
outline:none;
border-bottom:2px solid var(--accent);
}

.btn-primary{
margin-top:40px;
padding:22px;
background:var(--dark);
color:white;
border:none;
font-weight:600;
cursor:pointer;
transition:.3s;
width:100%;
}

.btn-primary:hover{
background:var(--accent);
}

/* ================= STATS ================= */

.stats{
background:var(--bg);
text-align:center;
}

.stats-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:60px;
}

.stats h2{
font-size:100px;
font-weight:800;
color:var(--accent);
letter-spacing:-3px;
margin-bottom:10px;
}

.stats small{
letter-spacing:3px;
font-size:12px;
font-weight:300;
}

.stats > .container > .stats-heading{
text-align:center!important;
color:#000 !important;
font-size:clamp(50px,5vw,70px);
margin-bottom:120px;
}



/* ================= MÉTODO ================= */

.method{
padding-top:200px;
}

.method h2{
text-align:center!important;
font-size:clamp(50px,5vw,70px);
margin-bottom:120px;
}

.method-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:80px;
}

.method-card{
padding-left:40px;
border-left:4px solid var(--accent);
}

.method-card span{
font-size:48px;
font-weight:800;
color:#eee;
display:block;
margin-bottom:25px;
}

.method-card h4{
margin-bottom:20px;
font-size:18px;
}

.method-card p{
color:var(--grey);
line-height:1.7;
}

/* ================= LAST CTA REFINADO ================= */

.last-cta{
background:var(--bg);
padding:240px 0;
}

.last-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:120px;
align-items:start;
position:relative;
}

.last-grid::before{
content:"";
position:absolute;
left:50%;
top:0;
width:1px;
height:100%;
background:#ddd;
transform:translateX(-50%);
}

.last-left h2{
font-size:clamp(38px,4vw,52px);
line-height:1.2;
margin-bottom:40px;
}

.last-left p{
color:var(--grey);
font-size:17px;
line-height:1.8;
max-width:480px;
}

.last-form{
display:flex;
flex-direction:column;
gap:40px;
}

.last-row input{
width:100%;
padding:18px 0;
border:none;
border-bottom:1px solid #ccc;
font-size:16px;
background:transparent;
}

.last-row input:focus{
outline:none;
border-bottom:2px solid var(--accent);
}

.last-form button{
margin-top:20px;
background:var(--accent);
color:white;
border:none;
padding:20px;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.last-form button:hover{
background:var(--dark);
}

/* Responsive */

@media(max-width:992px){

.last-grid{
grid-template-columns:1fr;
gap:80px;
}

.last-grid::before{
display:none;
}
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

.hero-grid{
grid-template-columns:1fr;
gap:80px;
}

.stats-grid{
grid-template-columns:1fr;
}

.method-grid{
grid-template-columns:1fr;
}

.quick-form{
grid-template-columns:1fr;
}

.row.two{
grid-template-columns:1fr;
}

.form-box{
padding:60px 40px;
}

.quick-wrapper{
padding:60px 40px;
}
}