:root{
    --negro: #0a0a0a;
    --negro-suave: #121212;
    --blanco: #ffffff;
    --marfil: #f5f3ef;
    --gris-borde: #d8d2ca;
    --gris-texto: #5f5a54;
    --texto-oscuro: #171717;
}

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

body{
    min-height: 100vh;
    background: linear-gradient(180deg, #0b0b0b 0%, #161616 45%, #1d1d1d 100%);
    color: var(--blanco);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img{
    max-width: 100%;
    display: block;
}

/* HEADER */
.header-cotizador{
    text-align: center;
    padding: 4.5rem 1rem 1.8rem;
    max-width: 900px;
    margin: 0 auto;
}

.eyebrow{
    font-size: .82rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
    margin-bottom: 1rem;
}

.header-cotizador h1{
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.intro-cotizador{
    max-width: 680px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,.72);
    font-size: 1.05rem;
    line-height: 1.7;
}

.nav-cotizador{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.nav-cotizador a{
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: .88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity .3s ease, transform .3s ease;
}

.nav-cotizador a:hover{
    opacity: .7;
    transform: translateY(-2px);
}
.cotizador-texto{
    margin-bottom: 1rem;
}

/* CONTENEDOR GENERAL */
.contenedor-cotizador{
    width: min(92%, 760px);
    margin: 2.5rem auto 4.5rem;
}

/* TARJETA */
.card-cotizador{
    background: rgba(245, 243, 239, 0.98);
    color: var(--texto-oscuro);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow:
        0 30px 80px rgba(0,0,0,.30),
        0 10px 30px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(8px);
}

/* SECCIONES */
.form-seccion + .form-seccion{
    margin-top: 2.8rem;
    padding-top: 2.4rem;
    border-top: 1px solid rgba(0,0,0,.08);
}

.form-seccion h2{
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -.5px;
    color: #111;
}

.form-grid{
    display: grid;
    gap: 1.2rem;
}

.campo{
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.campo-full{
    grid-column: 1 / -1;
}

.campo label{
    font-size: .95rem;
    font-weight: 600;
    color: #1f1f1f;
}

/* INPUTS */
.campo input,
.campo select,
.campo textarea{
    width: 100%;
    border: 1px solid var(--gris-borde);
    background-color: rgba(255,255,255,.72);
    border-radius: 1rem;
    padding: 1rem 1rem;
    font-size: 1rem;
    color: var(--texto-oscuro);
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease, transform .2s ease;
}

.campo textarea{
    min-height: 140px;
    resize: vertical;
}

.campo input::placeholder,
.campo textarea::placeholder{
    color: #8a837c;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus{
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0,0,0,.06);
    background-color: #fff;
    transform: translateY(-1px);
}

/* LISTA DE DETALLES */
.detalles-box{
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1.3rem;
    padding: 1.3rem 1.4rem;
}

.detalles-box ul{
    padding-left: 1.2rem;
}

.detalles-box li{
    margin-bottom: .75rem;
    color: #353535;
    line-height: 1.6;
}

/* BOTÓN */
.campo-full{
    margin-top: 2.2rem;
}

.btn-cotizar{
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 1.15rem 1.5rem;
    background: #0d0d0d;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease, background-color .25s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.btn-cotizar:hover{
    transform: translateY(-2px);
    opacity: .98;
    box-shadow: 0 16px 34px rgba(0,0,0,.22);
}

.btn-cotizar:active{
    transform: translateY(0);
}

/* FOOTER */
.footer-cotizador{
    text-align: center;
    color: rgba(255,255,255,.60);
    font-size: .92rem;
    padding: 0 1rem 2.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px){
    .header-cotizador{
        padding: 3rem 1rem 1.4rem;
    }

    .header-cotizador h1{
        letter-spacing: -.6px;
    }

    .intro-cotizador{
        font-size: .98rem;
        margin-bottom: 1.6rem;
    }

    .card-cotizador{
        padding: 1.6rem;
        border-radius: 1.5rem;
    }

    .nav-cotizador{
        gap: 1rem;
    }

    .nav-cotizador a{
        font-size: .8rem;
    }

    .form-seccion h2{
        font-size: 1.45rem;
    }
}

.mensaje-error{
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.18);
    color: #9f1d1d;
    font-size: .95rem;
    line-height: 1.5;
}

.resultado-cotizacion{
    margin-top: 1.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,.08);
    color: #111;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
}

.btn-whatsapp{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    border: none;
    border-radius: 999px;
    padding: 1rem 1.5rem;
    background: #25D366;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .18);
}

.btn-whatsapp:hover{
    transform: translateY(-2px);
    background: #1ebe5d;
    box-shadow: 0 16px 34px rgba(37, 211, 102, .24);
}

