:root { font-family: Arial, Helvetica, sans-serif; color:#17202a; background:#f3f4f6; }
* { box-sizing:border-box; }
body { margin:0; }
.mpv-header { min-height:92px; padding:10px 24px; background:#720014; color:#fff; display:grid; grid-template-columns:120px 1fr 220px; gap:16px; align-items:center; position:sticky; top:0; z-index:20; }
.mpv-header h1 { margin:0; text-align:center; font-size:clamp(1.25rem,3vw,2rem); }
.mpv-logo-left { max-height:70px; max-width:100px; object-fit:contain; }
.mpv-brand { text-align:right; font-size:.75rem; line-height:1.25; opacity:.95; }
.mpv-container { width:min(1100px,calc(100% - 24px)); margin:24px auto 48px; }
.mpv-actions { display:flex; justify-content:flex-end; margin-bottom:12px; }
.mpv-actions a { color:#8d1027; border:1px solid #8d1027; padding:8px 12px; border-radius:5px; text-decoration:none; }
.mpv-intro,.mpv-warning,.mpv-card { background:#fff; border:1px solid #d9dde3; border-radius:7px; margin-bottom:16px; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.mpv-intro { padding:16px 18px; }
.mpv-intro h2 { margin-top:0; text-align:center; }
.mpv-warning { padding:16px 18px; background:#fff4df; border-left:5px solid #e49b22; }
.mpv-warning strong { color:#8b4a00; }
.mpv-card { overflow:hidden; }
.mpv-card h3 { margin:0 0 16px; padding:13px 18px; background:#f0f2f5; border-bottom:1px solid #d9dde3; font-size:1.05rem; }
.mpv-card > :not(h3) { margin-left:18px; margin-right:18px; }
.mpv-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; padding-bottom:18px; }
.mpv-juridica { padding-top:15px; border-top:1px dashed #c8cdd4; }
.mpv-span-2 { grid-column:span 2; }
.mpv-full { grid-column:1/-1; }
label { display:flex; flex-direction:column; gap:6px; font-weight:600; }
label > span:not(.mpv-check span) { color:#a4001a; }
small { font-weight:400; }
input,select,textarea { width:100%; border:1px solid #aeb6bf; border-radius:5px; padding:10px 11px; font:inherit; background:#fff; }
input:focus,select:focus,textarea:focus { outline:3px solid rgba(114,0,20,.12); border-color:#720014; }
input:disabled { background:#eceff2; cursor:not-allowed; }
.mpv-file-zone:has(input:disabled) { opacity:.7; cursor:not-allowed; }
.mpv-check { flex-direction:row; align-items:flex-start; gap:9px; margin-bottom:16px; }
.mpv-check input { width:auto; margin-top:3px; }
.mpv-check span { color:inherit; }
.mpv-terms { padding:14px; background:#f7f7f7; font-size:.88rem; }
.mpv-counter { text-align:right; display:block; }
#enviar { display:block; margin:18px auto; padding:12px 30px; border:0; border-radius:6px; background:#9d1b30; color:#fff; font-weight:700; cursor:pointer; }
#enviar:disabled { opacity:.6; cursor:wait; }
.mpv-progress-wrap { display:grid; gap:7px; margin:14px 0; }
progress { width:100%; height:18px; }
.mpv-status { padding:14px 16px; border-radius:6px; white-space:pre-line; }
.mpv-status.success { background:#e8f7ec; border:1px solid #65a675; }
.mpv-status.error { background:#fdecec; border:1px solid #cc6c6c; }
.mpv-modal[hidden] { display:none; }
.mpv-modal { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.55); display:grid; place-items:center; padding:20px; }
.mpv-modal-box { width:min(560px,100%); background:#fff; border-radius:8px; padding:24px; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.mpv-modal-box h3 { margin-top:0; color:#8d1027; }
.mpv-modal-box button { float:right; border:0; border-radius:5px; padding:10px 18px; background:#8d1027; color:#fff; font-weight:700; cursor:pointer; }
.mpv-modal-open { overflow:hidden; }
@media (max-width:760px) { .mpv-header { grid-template-columns:70px 1fr; } .mpv-brand { display:none; } .mpv-grid { grid-template-columns:1fr; } .mpv-span-2,.mpv-full { grid-column:auto; } }




/* Modal de términos y condiciones */
#modal-terminos[hidden] {
    display: none !important;
}

#modal-terminos {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
}

.mpv-terminos-box {
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px;
    background: #fff;
    color: #263238;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
}

.mpv-terminos-box h3 {
    margin: 0 0 18px;
    text-align: center;
    color: #176b43;
    font-size: 23px;
}

.mpv-terminos-contenido {
    max-height: 48vh;
    overflow-y: auto;
    padding: 18px;
    margin: 18px 0;
    background: #f7f9f8;
    border: 1px solid #d9e2dc;
    border-radius: 8px;
    line-height: 1.65;
}

.mpv-terminos-contenido h4 {
    margin: 18px 0 6px;
    color: #176b43;
    font-size: 16px;
}

.mpv-terminos-contenido h4:first-child {
    margin-top: 0;
}

.mpv-terminos-contenido p {
    margin: 0 0 12px;
    text-align: justify;
}

.mpv-terminos-confirmacion {
    font-weight: 600;
    font-size: 14px;
}

.mpv-terminos-acciones {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.mpv-terminos-acciones button {
    min-height: 44px;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

#aceptar-terminos {
    background: #176b43;
    color: #fff;
}

#aceptar-terminos:hover {
    background: #105333;
}

.mpv-btn-rechazar {
    background: #e9ecef;
    color: #333;
}

#mensaje-terminos {
    color: #b42318;
    font-weight: 600;
}

body.mpv-modal-abierto {
    overflow: hidden;
}

@media (max-width: 600px) {
    .mpv-terminos-box {
        padding: 18px;
        max-height: 95vh;
    }

    .mpv-terminos-box h3 {
        font-size: 20px;
    }

    .mpv-terminos-contenido {
        max-height: 50vh;
        padding: 12px;
    }

    .mpv-terminos-acciones {
        flex-direction: column-reverse;
    }

    .mpv-terminos-acciones button {
        width: 100%;
    }
}
