/* Error de minimización. Devolviendo el contenido no minimizado.
(2,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(3,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(4,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(5,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(6,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(7,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(8,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '-'
(45,28): run-time error CSS1039: Token not allowed after unary operator: '-rmc-primary'
(370,22): run-time error CSS1039: Token not allowed after unary operator: '-rmc-primary-tint'
(371,28): run-time error CSS1039: Token not allowed after unary operator: '-rmc-border'
(380,33): run-time error CSS1039: Token not allowed after unary operator: '-rmc-primary'
(393,17): run-time error CSS1039: Token not allowed after unary operator: '-rmc-ink'
(399,17): run-time error CSS1039: Token not allowed after unary operator: '-rmc-muted'
(409,17): run-time error CSS1039: Token not allowed after unary operator: '-rmc-primary'
 */
:root {
    --rmc-primary: #a40030;
    --rmc-primary-dark: #7a0024;
    --rmc-primary-darker: #5c001b;
    --rmc-primary-tint: #fbe9ee;
    --rmc-ink: #1a2340;
    --rmc-muted: #5a6280;
    --rmc-border: #dde3ee;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2b2b2b;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ── Contenedor genérico (reemplazo de .container de Bootstrap) ── */
.rmc-container {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.body-content {
    margin-top: 15px;
    padding-bottom: 70px;
}

@media screen and (min-width: 768px) {
    .body-content {
        padding-top: 0;
    }
}

/* ── Barra de navegación ── */
.rmc-navbar {
    background-color: var(--rmc-primary);
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.rmc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.rmc-navbar-brand span {
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
}

/* ── Botones DevExpress (flat design) ── */
.btn-verificar {
    border-radius: 6px !important;
    box-shadow: none !important;
    background-image: none !important;
    transition: background-color .15s ease;
}

.btn-verificar .dxb {
    min-width: 200px;
    font-weight: 800;
    letter-spacing: .2px;
}

/* ── Footer fijo ── */
.site-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 0;
    text-align: center;
    z-index: 1030;
}

.site-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: #5a6280;
}

/* ── Cabecera de la página principal ── */
.rmc-header {
    text-align: center;
    padding: 44px 20px 28px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 44px;
}

.rmc-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1a2340;
    margin-bottom: 10px;
}

.rmc-header .lead {
    color: #5a6280;
    font-size: 1.05rem;
}

/* ── Tarjetas de tipo de documento ── */
.doc-cards-row {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 56px;
    /*max-width: 920px;*/
}

.doc-card {
    background: #ffffff;
    border: 1px solid #dde3ee;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(26,35,64,0.08);
    padding: 40px 34px 36px;
    text-align: center;
    width: 430px;
    transition: box-shadow 0.22s ease, transform 0.18s ease;
}

.doc-card:hover {
    box-shadow: 0 10px 28px rgba(26,35,64,0.15);
    transform: translateY(-3px);
}

.doc-card-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.cert-icon  { background: #e8f2fd; }
.nota-icon  { background: #e8f6ee; }

.doc-card h2 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1a2340;
    margin-bottom: 14px;
    line-height: 1.35;
}

.doc-card p {
    color: #5a6280;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 14px;
}

.doc-card-format {
    background: #f3f5fa;
    border-radius: 7px;
    padding: 9px 14px;
    margin-bottom: 26px !important;
    font-size: 0.8rem !important;
    color: #444 !important;
}

.doc-card-format code {
    font-size: 0.78rem;
    color: #b5293a;
    background: none;
    padding: 0;
}

/* ── Formulario dentro del popup ── */
.verification-body {
    padding: 20px 26px 24px;
   
    background: #fff;
}

.ver-section {
    margin-bottom: 18px;
}

.ver-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2b3452;
    margin-bottom: 6px;
}

.ver-hint {
    color: #909090;
    font-size: 0.77rem;
    margin-top: 5px;
    display: block;
}

.ver-error {
    background: #fff4f4;
    border: 1px solid #f5c0c0;
    border-left: 4px solid #d9363e;
    border-radius: 6px;
    padding: 10px 14px;
    color: #b00020;
    font-size: 0.87rem;
    margin-bottom: 16px;
}

.ver-btn-area {
    text-align: center;
    padding-top: 6px;
}

/* ── Visor de documento ── */
.visor-header {
    background: #f3f5fa;
    border: 1px solid #dde3ee;
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.visor-header-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2340;
    margin: 0 0 4px;
}

.visor-header-info .csv-badge {
    font-size: 0.82rem;
    font-family: monospace;
    background: #1a2340;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.visor-frame-wrap {
    border: 1px solid #dde3ee;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.visor-frame-wrap iframe,
.visor-frame-wrap object {
    display: block;
    border: none;
    width: 100%;
    height: 680px;
}

.visor-no-doc {
    text-align: center;
    padding: 80px 40px;
    color: #7a8099;
}

.visor-no-doc .icon-placeholder {
    font-size: 56px;
    margin-bottom: 18px;
}

.visor-no-doc h3 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

/* DevExpress button overrides for card context */
.btn-verificar .dxb {
    min-width: 200px;
    font-weight: 800;
}

/* ── Botón de descarga (reemplazo de .btn.btn-sm.btn-outline-dark de Bootstrap) ── */
.btn-descargar {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a2340;
    background: #fff;
    border: 1px solid #1a2340;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.btn-descargar:hover {
    background: #1a2340;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   Igualado de altura en tarjetas de tipo de documento
   (evita que el botón "Verificar" quede descuadrado cuando
   el texto de una tarjeta ocupa más líneas que el de la otra)
   ══════════════════════════════════════════════════════════ */
.doc-cards-row {
    box-sizing: border-box;
    flex-wrap: nowrap; /* fuerza horizontal: nunca salta de línea por sí solo */
}

.doc-card {
    box-sizing: border-box; /* el padding ya no se suma al width declarado */
    width: 430px;
    flex-shrink: 1; /* permite encoger un poco si el espacio aprieta, antes de romper línea */
    min-width: 280px; /* pero no por debajo de esto: aquí es donde debe pasar a vertical */
}

    .doc-card .btn-verificar {
        margin-top: auto; /* empuja el botón al fondo, sea cual sea el alto del contenido de arriba */
    }

/* ══════════════════════════════════════════════════════════
   Iconos flat-design de las tarjetas (sustituyen al emoji)
   ══════════════════════════════════════════════════════════ */
.doc-card-icon {
    background: none; /* el color de fondo ahora lo aporta el propio SVG (círculo interno) */
    font-size: 0; /* neutraliza el font-size: 34px heredado, ya no hay glifo de emoji */
}

    .doc-card-icon svg {
        width: 100%;
        height: 100%;
    }
/* Punto de corte explícito: por debajo de este ancho de pantalla, apila verticalmente */
@media screen and (max-width: 940px) {
    .doc-cards-row {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
    }

    .doc-card {
        width: 100%;
        max-width: 430px;
    }
}



/* ── Panel informativo bajo las tarjetas de verificación ── */
.info-panel {
    max-width: 920px;
    margin: 0 auto 56px;
    background: var(--rmc-primary-tint);
    border: 1px solid var(--rmc-border);
    border-radius: 14px;
    padding: 28px 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}
.info-panel-nota {
    background: rgba(255, 255, 255, 0.6);
    border-left: 3px solid var(--rmc-primary);
    padding: 10px 14px;
    border-radius: 6px;
}
.info-panel-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.info-panel-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--rmc-ink);
    margin: 0 0 8px;
}

.info-panel-body p {
    font-size: 0.9rem;
    color: var(--rmc-muted);
    line-height: 1.6;
    margin: 0 0 10px;
}

    .info-panel-body p:last-child {
        margin-bottom: 0;
    }

.info-panel-body a {
    color: var(--rmc-primary);
    font-weight: 600;
    text-decoration: none;
}

    .info-panel-body a:hover {
        text-decoration: underline;
    }


.info-panel-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media screen and (max-width: 640px) {
    .info-panel {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
