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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#1b2a41;
    background:#f8f9fb;
    overflow-x:hidden;
}

/* ===== HEADER ===== */
header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    background:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 60px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    z-index:999;
}

.logo img{
    height:60px;
}

.menu-toggle{
    display:none;
    background:none;
    border:none;
    font-size:32px;
    cursor:pointer;
    color:#0d2d62;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    text-decoration:none;
    color:#0d2d62;
    font-weight:600;
}

/* ===== HERO ===== */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:140px 10% 80px;
    background:linear-gradient(rgba(13,45,98,.82),rgba(13,45,98,.82)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1600&q=80");
    background-size:cover;
    background-position:center;
    color:white;
}

.hero-contenido{
    max-width:720px;
}

.hero h1{
    font-size:58px;
    line-height:1.15;
    margin-bottom:25px;
}

.hero p{
    font-size:20px;
    line-height:1.8;
    margin-bottom:40px;
}

.botones{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.btn-principal,
.btn-secundario{
    text-decoration:none;
    padding:16px 35px;
    border-radius:50px;
    font-weight:600;
}

.btn-principal{
    background:#d6a032;
    color:white;
}

.btn-secundario{
    border:2px solid white;
    color:white;
}

/* ===== SECCIONES ===== */
.about,
.process,
.contacto{
    padding:100px 8%;
    background:white;
    text-align:center;
}

.services,
.faq{
    padding:100px 8%;
    background:#f5f7fb;
    text-align:center;
}

.about{
    padding-top:110px;
}

.about h2,
.services h2,
.process h2,
.testimonios h2,
.faq h2,
.contacto h2{
    font-size:42px;
    color:#123c75;
    margin-bottom:50px;
}

.about p,
.contacto-texto{
    max-width:900px;
    margin:0 auto 25px;
    line-height:1.8;
    font-size:18px;
    color:#555;
}

/* ===== CARDS ===== */
.cards,
.steps,
.testimonios-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card,
.step,
.testimonio,
.faq-item{
    background:white;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.card{
    padding:45px 30px;
    text-align:center;
}

.icon{
    font-size:55px;
    margin-bottom:20px;
}

.card h3,
.step h3{
    color:#123c75;
    margin-bottom:15px;
}

.card p,
.step p,
.testimonio p,
.faq-answer{
    color:#555;
    line-height:1.8;
}

/* ===== PROCESO ===== */
.step{
    padding:40px 25px;
    text-align:center;
}

.number{
    width:70px;
    height:70px;
    margin:0 auto 25px;
    border-radius:50%;
    background:#d8a12d;
    color:white;
    font-size:30px;
    font-weight:bold;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* ===== TESTIMONIOS ===== */
.testimonios{
    padding:100px 8%;
    background:white;
    text-align:center;
}

.testimonio{
    padding:35px 25px;
}

.testimonio h4{
    color:#123c75;
    margin-bottom:5px;
}

.testimonio span{
    color:#999;
}

/* ===== FAQ ===== */
.faq-item{
    max-width:850px;
    margin:0 auto 20px;
    overflow:hidden;
}

.faq-question{
    width:100%;
    padding:22px;
    font-size:20px;
    font-weight:600;
    border:none;
    background:white;
    cursor:pointer;
    text-align:left;
}

.faq-answer{
    display:none;
    padding:0 22px 22px;
}

.faq-item.active .faq-answer{
    display:block;
}

/* ===== FORMULARIO ===== */
.formulario{
    max-width:700px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.formulario input,
.formulario textarea{
    padding:18px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
    font-family:inherit;
}

.formulario button{
    background:#d9a32a;
    color:white;
    border:none;
    padding:18px;
    border-radius:10px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
}

/* ===== WHATSAPP ===== */
.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    width:60px;
    height:60px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:36px;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    z-index:999;
}

/* ===== FOOTER ===== */
.footer{
    background:#0f2f63;
    color:white;
    padding:60px 10% 25px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    gap:60px;
    flex-wrap:wrap;
}

.footer-col{
    flex:1;
    min-width:250px;
}

.footer-col h3{
    margin-bottom:20px;
    color:#e0ac2b;
    font-size:24px;
}

.footer-col p{
    line-height:1.8;
}

.footer-col ul{
    list-style:none;
}

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

.footer-col ul li a{
    color:white;
    text-decoration:none;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.2);
    margin-top:40px;
    padding-top:25px;
    text-align:center;
    font-size:14px;
    opacity:.8;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){

    header{
        height:75px;
        padding:0 22px;
    }

    .logo img{
        height:42px;
    }

    .menu-toggle{
        display:block;
    }

    nav{
        display:none;
        position:fixed;
        top:75px;
        left:0;
        width:100%;
        background:white;
        padding:25px 0;
        box-shadow:0 10px 25px rgba(0,0,0,.1);
        flex-direction:column;
        align-items:center;
        gap:18px;
    }

    nav.active{
        display:flex;
    }

    .hero{
        min-height:auto;
        padding:120px 7% 70px;
        align-items:flex-start;
    }

    .hero h1{
        font-size:34px;
        line-height:1.25;
    }

    .hero p{
        font-size:16px;
    }

    .botones{
        flex-direction:column;
        align-items:flex-start;
    }

    .about,
    .services,
    .process,
    .testimonios,
    .faq,
    .contacto{
        padding:70px 7%;
    }

    .about h2,
    .services h2,
    .process h2,
    .testimonios h2,
    .faq h2,
    .contacto h2{
        font-size:34px;
    }

    .cards,
    .steps,
    .testimonios-grid{
        grid-template-columns:1fr;
    }

    .card,
    .step,
    .testimonio{
        padding:30px 22px;
    }

    .footer-container{
        flex-direction:column;
        text-align:center;
    }
}

@media (max-width:900px){

    nav{
        display:none;
        position:fixed;
        top:75px;
        left:0;
        width:100%;
        background:#ffffff;
        padding:28px 0;
        box-shadow:0 12px 25px rgba(0,0,0,.12);
        z-index:998;
    }

    nav.active{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:20px;
    }

    nav a{
        font-size:17px;
    }

    .menu-toggle{
        display:block !important;
    }
}

html,
body{
    max-width:100%;
    overflow-x:hidden;
}

section{
    scroll-margin-top:90px;
}

@media(max-width:900px){
    header{
        width:100vw;
        max-width:100vw;
    }

    nav{
        width:100vw;
        max-width:100vw;
    }

    .hero,
    .about,
    .services,
    .process,
    .testimonios,
    .faq,
    .contacto,
    .footer{
        width:100%;
        max-width:100%;
        overflow-x:hidden;
    }

    .hero{
        padding-left:7%;
        padding-right:7%;
    }
}

/* ========= EFECTOS PREMIUM ========= */

header{
    transition:.35s;
    backdrop-filter:blur(10px);
}

nav a{
    position:relative;
    transition:.3s;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#d6a032;
    transition:.35s;
}

nav a:hover::after{
    width:100%;
}

nav a:hover{
    color:#d6a032;
}

.btn-principal,
.btn-secundario,
.formulario button{
    transition:.35s;
}

.btn-principal:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(214,160,50,.45);
}

.btn-secundario:hover{
    background:white;
    color:#123c75;
}

.formulario button:hover{
    transform:translateY(-3px);
}

.card,
.step,
.testimonio,
.faq-item{
    transition:.35s;
}

.card:hover,
.step:hover,
.testimonio:hover{
    transform:translateY(-12px);
    box-shadow:0 18px 45px rgba(0,0,0,.15);
}

.hero h1{
    text-shadow:0 6px 20px rgba(0,0,0,.35);
}

.hero p{
    opacity:.95;
}

.footer a{
    transition:.3s;
}

.footer a:hover{
    color:#d6a032;
}

.whatsapp{
    transition:.35s;
}

.whatsapp:hover{
    transform:scale(1.15);
}

/* ========= AJUSTE PREMIUM DE SECCIONES ========= */

.about .card,
.process .card,
.testimonios .card{
    max-width:1100px;
    margin:0 auto;
    padding:70px 50px;
    border-radius:22px;
}

.services h2,
.process h2,
.testimonios h2,
.faq h2,
.contacto h2{
    letter-spacing:-1px;
}

.cards{
    align-items:stretch;
}

.card{
    min-height:260px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.step{
    min-height:260px;
}

.testimonio{
    min-height:230px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.faq-item{
    border:1px solid rgba(13,45,98,.06);
}

.faq-question{
    color:#111;
}

.faq-question:hover{
    color:#123c75;
}

.formulario input:focus,
.formulario textarea:focus{
    outline:none;
    border-color:#d6a032;
    box-shadow:0 0 0 4px rgba(214,160,50,.15);
}

/* ARREGLO PROCESO EN ORDENADOR */
@media(min-width:901px){
    .steps{
        grid-template-columns:repeat(4, 1fr);
    }

    .step{
        min-height:260px;
    }
}

/* GRID RESPONSIVO DEL PROCESO */
.steps{
    display:grid;
    gap:30px;
    margin-top:50px;
}

@media (max-width:900px){
    .steps{
        grid-template-columns:1fr;
    }
}

@media (min-width:901px){
    .steps{
        grid-template-columns:repeat(4,1fr);
    }
}

.privacidad-form{
    max-width:700px;
    margin:20px auto 0;
    text-align:center;
    font-size:13px;
    color:#777;
    line-height:1.7;
    padding:0 15px;
}

.privacidad-form::before{
    content:"🔒 ";
}

/* ===== PÁGINA 404 ===== */

.error-page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
    background:#f5f7fb;
}

.error-card{
    max-width:650px;
    background:white;
    text-align:center;
    padding:50px 35px;
    border-radius:22px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.error-card img{
    width:180px;
    margin-bottom:20px;
}

.error-card h1{
    font-size:90px;
    color:#123c75;
    line-height:1;
    margin-bottom:10px;
}

.error-card h2{
    font-size:32px;
    color:#123c75;
    margin-bottom:20px;
}

.error-card p{
    color:#666;
    line-height:1.7;
    margin-bottom:30px;
}

.error-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.error-whatsapp{
    border-color:#123c75;
    color:#123c75;
}

.error-whatsapp:hover{
    background:#123c75;
    color:white;
}

@media(max-width:768px){
    .error-card h1{
        font-size:70px;
    }

    .error-card h2{
        font-size:26px;
    }

    .error-buttons{
        flex-direction:column;
    }
}

.error-extra{
    margin-top:15px;
    color:#123c75;
    font-weight:600;
}