/* ============================================
   DISENO 8 - CARD CON LOGO (ANCHO)
   Igual que Diseno4 pero mas ancho para que
   los textos ocupen menos renglones.
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(160deg, #003087 0%, #0055a5 30%, #e8f0fe 30%);
    background-attachment: fixed;
    color: #333;
    min-height: 100vh;
}

/* Header minimo superior */
.header-mini {
    background: transparent;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-mini span {
    color: white;
    font-size: 12px;
    opacity: 0.8;
}

/* Container */
.main-container {
    max-width: 820px;
    margin: 10px auto 30px;
    padding: 0 20px;
}

/* Card con logo */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 0 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 48, 135, 0.15);
    position: relative;
    overflow: visible;
}

.card-logo-container {
    text-align: center;
    padding-top: 30px;
    margin-bottom: 5px;
}

.card-logo-img {
    height: 75px;
    margin-bottom: 10px;
}

.card-org-name {
    color: #003087;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.form-card h2 {
    color: #0d2240;
    font-size: 20px;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-description {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #75aadb;
}

/* Campos */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 400;
    color: #0d2240;
    margin-bottom: 6px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label .optional {
    font-weight: 400;
    color: #bbb;
    font-size: 11px;
    margin-left: 5px;
    text-transform: none;
    letter-spacing: 0;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 2px solid #d0d8e8;
    border-radius: 0;
    font-size: 15px;
    transition: border-color 0.3s;
    background-color: #fafbfd;
}

.form-control:focus {
    border-bottom-color: #75aadb;
    outline: none;
    background-color: white;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230d2240' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    border: none;
    border-bottom: 2px solid #d0d8e8;
}

.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

/* Boton */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #0d2240;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 15px;
}

.btn-submit:hover {
    background: #003087;
    box-shadow: 0 4px 20px rgba(0, 48, 135, 0.3);
}

/* Validacion */
.validation-error { color: #d32f2f; font-size: 12px; margin-top: 4px; display: block; }

.validation-summary {
    background: #fce4ec;
    border: 1px solid #ef9a9a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #c62828;
    font-size: 13px;
}
.validation-summary ul { margin: 5px 0 0 20px; }

/* Aviso */
.aviso-uso {
    background: #fffde7;
    border-left: 3px solid #f9a825;
    padding: 14px 18px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #6d4c00;
    line-height: 1.5;
}
.aviso-uso strong {
    display: block;
    margin-bottom: 4px;
    color: #e65100;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}

/* Legal */
.legal-section { margin-top: 25px; padding-top: 25px; border-top: 2px solid #75aadb; }

.legal-text {
    background: #f8f9fa;
    padding: 18px 20px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    max-height: 200px;
    overflow-y: auto;
    border-left: 3px solid #0d2240;
}
.legal-text strong {
    display: block;
    color: #0d2240;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.legal-text p { margin-bottom: 10px; }
.legal-text p:last-child { margin-bottom: 0; }

.checkbox-legal {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f0f4f8;
    border-left: 3px solid #75aadb;
}
.checkbox-legal input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: #0d2240; }
.checkbox-legal label { font-size: 13px; color: #444; line-height: 1.6; cursor: pointer; font-weight: normal !important; }

/* Inline validation */
.inline-validation { display: block; font-size: 12px; margin-top: 4px; min-height: 18px; }
.inline-validation.valid { color: #2e7d32; font-weight: 600; }
.inline-validation.invalid { color: #d32f2f; font-weight: 600; }

/* Pagina de validacion/verificacion */
.validacion-icon {
    text-align: center;
    font-size: 50px;
    color: #f9a825;
    margin-bottom: 10px;
}

.validacion-titulo {
    color: #e65100 !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.validacion-desc {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #75aadb;
    line-height: 1.6;
}

.datos-verificacion {
    background: #f8f9fa;
    border-left: 3px solid #0d2240;
    padding: 5px 0;
    margin-bottom: 25px;
}

.dato-fila {
    display: flex;
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.dato-fila:last-child { border-bottom: none; }
.dato-fila:hover { background: #f0f4f8; }

.dato-etiqueta {
    font-weight: 400;
    color: #0d2240;
    min-width: 180px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dato-valor {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.validacion-botones {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-confirmar {
    flex: 1;
    padding: 15px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn-confirmar:hover {
    background: #1b5e20;
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.4);
}

.btn-modificar {
    flex: 1;
    padding: 15px;
    background: #c62828;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.btn-modificar:hover {
    background: #b71c1c;
    box-shadow: 0 4px 20px rgba(198, 40, 40, 0.4);
}

/* Pagina de confirmacion exitosa */
.check-icon {
    text-align: center;
    font-size: 60px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.agradecimiento {
    color: #0d2240;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.datos-resumen {
    text-align: left;
    background: #f8f9fa;
    border-left: 3px solid #0d2240;
    padding: 20px;
    margin: 20px 0;
}

.datos-resumen .dato-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
}

.datos-resumen .dato-item:last-child { border-bottom: none; }

.datos-resumen .dato-label {
    font-weight: 400;
    color: #0d2240;
    min-width: 120px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.datos-resumen .dato-valor {
    color: #333;
}

.btn-volver {
    display: inline-block;
    padding: 15px 30px;
    background: #0d2240;
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-volver:hover {
    background: #003087;
    box-shadow: 0 4px 20px rgba(0, 48, 135, 0.3);
}

/* Footer */
.footer { text-align: center; padding: 20px; color: #666; font-size: 12px; margin-top: 25px; }
.footer a { color: #003087; text-decoration: none; }

/* Tablet */
@media (max-width: 860px) {
    .main-container { max-width: 95%; }
}

/* Celular */
@media (max-width: 600px) {
    body { background: #e8f0fe; }
    .main-container { max-width: 100%; padding: 0 8px; margin-top: 5px; }
    .form-card { padding: 0 16px 25px; border-radius: 12px; }
    .form-card h2 { font-size: 17px; letter-spacing: 1px; }
    .form-description { font-size: 12px; margin-bottom: 20px; padding-bottom: 18px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group[style] { flex: 1 !important; }
    .card-logo-img { height: 55px; }

    .form-group label { font-size: 12px; margin-bottom: 5px; }
    .form-control { font-size: 16px; padding: 14px 12px; }
    select.form-control { font-size: 14px; padding: 14px 35px 14px 12px; }

    .validacion-botones { flex-direction: column; }
    .dato-fila { flex-direction: column; padding: 10px 12px; gap: 2px; }
    .dato-etiqueta { min-width: auto; font-size: 11px; }
    .dato-valor { font-size: 14px; }

    .aviso-uso { font-size: 12px; padding: 12px 14px; }
    .legal-text { font-size: 11px; padding: 14px; max-height: 160px; }
    .checkbox-legal { padding: 14px; flex-direction: row; gap: 10px; }
    .checkbox-legal input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin-top: 1px; }
    .checkbox-legal label { font-size: 12px; line-height: 1.5; }

    .btn-submit, .btn-confirmar, .btn-modificar { font-size: 13px; letter-spacing: 2px; padding: 16px; min-height: 50px; }
    .datos-resumen .dato-item { flex-direction: column; gap: 2px; }
    .datos-resumen .dato-label { min-width: auto; font-size: 11px; }
}
