* {
    box-sizing: border-box;
}


body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;

    background-image:
    linear-gradient(
        rgba(0,0,0,0.45),
        rgba(0,0,0,0.45)
    ),
    url("../img/fondo.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}



header {
    background: #022164;
    color: white;
    text-align: center;
    padding: 45px 20px;
}



header h1 {
    margin: 0;
    font-size: 48px;
}



header p {
    font-size: 20px;
    margin-top: 10px;
}



main {
    padding: 45px 20px;
}



.landing {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1050px;
    margin: auto;
    background: transparent;
}



.contenido {
    flex: 1;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}



.formulario {
    flex: 0 0 400px;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}



.informacion {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}



h2 {
    color: #022164;
    text-align: center;
}



h3 {
    text-align: center;
    font-size: 36px;
    color: #022164;
    margin: 25px 0;
}



p {
    text-align: center;
    line-height: 1.6;
}



label {
    display: block;
    margin-top: 18px;
    font-weight: bold;
}



input {
    width: 100%;
    padding: 15px;
    margin-top: 7px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}



button {
    width: 100%;
    margin-top: 30px;
    padding: 16px;

    background: #0F5132;

    color: white;
    border: none;
    border-radius: 8px;

    font-size: 18px;
    cursor: pointer;
}



button:hover {
    opacity: 0.85;
}



a {
    display: block;
    width: fit-content;
    margin: 20px auto;

    background: #0F5132;
    color: white;

    padding: 14px 25px;
    border-radius: 8px;

    text-decoration: none;
}



a:hover {
    opacity: 0.85;
}



hr {
    margin: 35px 0;
    border: 0;
    border-top: 1px solid #ddd;
}



/* Adaptación para celulares */

@media (max-width: 850px) {

    .landing {
        flex-direction: column;
    }


    .formulario {
        width: 100%;
        flex: auto;
    }

}
.inicio {
    background: #f4f5f7;
}


.inicio main {
    background: #f4f5f7;
}


.inicio section {
    background: white;
    color: #111;
}

input {

    transition: .25s;

}


input:focus{

    outline:none;

    border:2px solid #0F5132;

    box-shadow:0 0 10px rgba(15,81,50,.20);

}

.seguridad {

    margin-top: 18px;

    text-align: center;

    font-size: 13px;

    color: #666;

}


.seguridad p {

    margin: 5px 0;

}
input:focus {

    border-color: #0F5132;

    outline: none;

    box-shadow: 0 0 8px rgba(15,81,50,0.25);

}


/* ============================
   Mejoras UX — validación,
   confianza, pasos, testimonios
   ============================ */

.subtexto-precio {
    margin-top: -15px;
    font-size: 13px;
    color: #666;
}

/* Barra de confianza */

.confianza-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #022164;
    font-weight: bold;
}

.confianza-bar span {
    white-space: nowrap;
}

/* Pasos "Cómo funciona" */

.pasos {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.paso {
    flex: 1;
    text-align: center;
}

.paso-icono {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.paso p {
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 850px) {
    .pasos {
        flex-direction: column;
    }
}

/* Validación en vivo */

.campo-wrap {
    position: relative;
}

.check-icon {
    position: absolute;
    right: 15px;
    top: 22px;
    font-size: 18px;
    font-weight: bold;
    pointer-events: none;
}

.check-icon.ok {
    color: #0F5132;
}

.check-icon.error {
    color: #b3261e;
}

input.valido {
    border-color: #0F5132;
}

input.invalido {
    border-color: #b3261e;
}

.ayuda-campo {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.ayuda-campo.error {
    color: #b3261e;
}

.urgencia {
    font-size: 13px;
    color: #0F5132;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 0;
}

.info-vehiculo {
    margin-top: 10px;
    padding: 10px;
    background: #f4f5f7;
    border-radius: 8px;
    font-size: 13px;
}

/* Testimonios */

.testimonios {
    max-width: 1050px;
    margin: 40px auto;
}

.testimonios h2 {
    color: white;
}

.testimonios .cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonio-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex: 1 1 260px;
    max-width: 300px;
}

.testimonio-card .estrellas {
    color: #f5b301;
    text-align: left;
    margin-bottom: 8px;
    font-size: 16px;
}

.testimonio-card p {
    text-align: left;
    font-size: 14px;
    color: #333;
}

.testimonio-card .autor {
    text-align: left;
    font-weight: bold;
    font-size: 13px;
    color: #022164;
    margin-top: 10px;
}

.testimonios-nota {
    text-align: center;
    font-size: 12px;
    color: #ddd;
    margin-top: 15px;
}


/* Caja blanca para las pantallas del panel administrativo,
   para que el texto se lea bien sobre la foto de fondo */



table {
    background: white;
    border-collapse: collapse;
}

table td, table th {
    background: white;
    padding: 8px;
}
/* Caja blanca para las pantallas del panel administrativo,
   para que el texto se lea bien sobre la foto de fondo */

.panel-caja {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.panel-caja table {
    background: white;
}

/* Popup de oferta del combo */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-caja {
    background: white;
    border-radius: 15px;
    padding: 35px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    text-align: center;
}

.popup-caja h3 {
    margin-top: 0;
    font-size: 24px;
}

.popup-caja button {
    width: 100%;
}


/* ==========================================================
   AVISO LEGAL Y PIE DE PÁGINA
   Usado en las páginas públicas (portada, landing de infracciones,
   términos y condiciones) para el disclaimer de "no somos organismo
   oficial" y el pie con el link a Términos y Condiciones.
   ========================================================== */

.aviso-legal {
    max-width: 900px;
    margin: 20px auto 0;
    background: rgba(255,255,255,0.92);
    border-left: 4px solid #022164;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

footer.pie-sitio {
    background: #022164;
    color: #cbd5e1;
    text-align: center;
    padding: 25px 20px;
    font-size: 13px;
    line-height: 1.8;
}

footer.pie-sitio a {
    color: #ffffff;
    text-decoration: underline;
}

footer.pie-sitio a:hover {
    color: #9fc0ff;
}

/* Checkbox de aceptación de Términos en el formulario */
.aceptar-terminos {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: normal;
    margin: 15px 0;
    text-align: left;
}

.aceptar-terminos input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Contenido de la página de Términos y Condiciones */
.legales {
    max-width: 820px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    line-height: 1.7;
}

.legales h2 {
    text-align: left;
    margin-top: 35px;
}

.legales h2:first-of-type {
    margin-top: 0;
}

.legales .completar {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

