/* ═══════════════════════════════════════════════════════════════
   verificar.css — Estilos compartidos para las vistas públicas
   de verificación: verificar, verificar_codigo, verificar_landing
   ═══════════════════════════════════════════════════════════════ */

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

body.verify-page {
    font-family: var(--font-body, 'Source Sans 3', 'Inter', sans-serif);
    background-color: #ffffff;
    color: var(--texto, #374151);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ── HEADER ── */
.header-verify {
    background-color: var(--c-principal, #6836D9);
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-verify-logo {
    display: flex;
    align-items: center;
}

.header-verify-logo img {
    height: 32px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.header-verify-btn {
    background-color: white;
    color: var(--texto);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-semibold, 600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: opacity 0.2s;
    font-family: var(--font-body, 'Source Sans 3', 'Inter', sans-serif);
}

.header-verify-btn:hover {
    opacity: 0.9;
}

/* ── MAIN WRAPPER ── */
.verify-main {
    display: flex;
    flex: 1;
    padding: 40px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ── LEFT SIDE (CERTIFICATE) ── */
.verify-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-preview-wrapper {
    background: #f3f4f6;
    border-radius: var(--radio-sm, 6px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1.414;
    position: relative;
}

.cert-iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.cert-ids {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-2xs, 10px);
    color: var(--texto, #374151);
    margin-top: 16px;
    font-weight: var(--fw-medium, 500);
}

.cert-ids strong {
    font-weight: var(--fw-bold, 700);
}

/* ── RIGHT SIDE ── */
.verify-right {
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;

}

.verify-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--borde-soft, #e5e7eb);
}

.verify-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.verify-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.verify-section-label {
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-bold, 700);
    color: var(--c-principal, #6836D9);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.verify-section-title {
    font-size: var(--text-base, 16px);
    font-weight: var(--fw-extrabold, 800);
    color: var(--texto, #374151);
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

.verify-link {
    font-size: var(--text-sm, 14px);
    color: var(--c-principal, #6836D9);
    font-weight: var(--fw-semibold, 600);
    text-decoration: underline;
}

.verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-semibold, 600);
    cursor: pointer;
    border: none;
    transition: filter 0.2s;
    text-decoration: none;
}

.verify-btn:hover {
    filter: brightness(0.9);
}

.verify-btn-outline {
    background: white;
    color: var(--texto-soft, #6b7280);
    border: 1px solid var(--borde-soft, #e5e7eb);
}

.verify-btn-dark {
    background: var(--texto, #374151);
    color: white;
}

.verify-props-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--borde-soft, #e5e7eb);
    border-radius: 12px;
    padding: 0 16px;

}

.verify-prop-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--borde-soft, #e5e7eb);
}

.verify-prop-row:last-child {
    border-bottom: none;
}

.verify-prop-label {
    font-size: var(--text-xs, 12px);
    font-weight: var(--fw-bold, 700);
    color: var(--c-principal, #6836D9);
    width: 50%;
}

.verify-prop-val {
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-bold, 700);
    color: var(--texto, #374151);
    width: 50%;
    text-align: left;
}

.verify-section-desc {
    font-size: var(--text-sm, 14px);
    color: var(--texto, #374151);
    line-height: var(--lh-relaxed, 1.6);
    margin: 0 0 12px 0;
}

/* ── VERIFICATION ── */
.verify-date {
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-bold, 700);
    color: var(--texto, #374151);
    margin: 4px 0 4px 0;
}

.verify-date-label {
    font-size: var(--text-xs, 12px);
    color: var(--texto-soft, #6b7280);
    text-transform: uppercase;
    font-weight: var(--fw-semibold, 600);
    margin-bottom: 16px;
}

.verify-id {
    font-size: var(--text-2xs, 10px);
    font-weight: var(--fw-bold, 700);
    color: var(--texto, #374151);
    text-align: center;
    margin-top: 8px;
}

/* ── EXTRAS SECTIONS ── */
.verify-extras {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.verify-extra-box {
    border: 1px solid var(--borde-soft, #e5e7eb);
    border-radius: 16px;
    padding: 32px;
    background: white;
}

.verify-extra-title {
    color: var(--c-principal, #6836D9);
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-extrabold, 800);
    margin-top: 0;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.verify-extra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.verify-extra-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: var(--text-sm, 14px);
    line-height: var(--lh-relaxed, 1.5);
    color: var(--texto, #374151);
}

.verify-extra-item strong {
    color: var(--texto, #374151);
    font-weight: var(--fw-extrabold, 800);
    display: block;
    margin-bottom: 4px;
}

.verify-extra-number {
    background-color: var(--c-principal, #6836D9);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fw-extrabold, 800);
    flex-shrink: 0;
    font-size: var(--text-sm, 14px);
}

.text-principal {
    color: var(--c-principal, #6836D9);
}

/* ── FOOTER ICERTIFICA ── */
.footer-cert {
    background-color: #2e1a5f;
    width: 100%;
    color: white;
    padding: 40px 40px 24px 40px;
    margin-top: auto;
    font-family: var(--font-body, 'Source Sans 3', 'Inter', sans-serif);
}

.footer-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.footer-top {
    margin-bottom: 24px;
}

.footer-top p {
    margin: 0;
    font-size: var(--text-sm, 14px);
    color: rgba(255, 255, 255, 0.9);
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs, 12px);
    color: rgba(255, 255, 255, 0.9);
}

.icertifica-badge {
    color: var(--c-principal, #6836D9);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: var(--fw-extrabold, 800);
    font-size: var(--text-sm, 14px);
    display: inline-block;
}

/* ── VERIFICAR CÓDIGO (modal centrado) ── */
.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    flex: 1;
}

.modal-card {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: var(--text-2xl, 24px);
    font-weight: var(--fw-bold, 700);
    color: var(--c-principal, #6836D9);
    margin-bottom: 16px;
}

.modal-subtitle {
    font-size: var(--text-sm, 14px);
    color: var(--texto, #374151);
    margin-bottom: 24px;
    line-height: var(--lh-snug, 1.4);
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: var(--text-xl, 20px);
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: var(--font-body, 'Source Sans 3', 'Inter', sans-serif);
}

.modal-input:focus {
    border-color: var(--c-principal, #6836D9);
}

.verify-btn-submit {
    background: var(--c-principal, #6836D9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: var(--text-base, 16px);
    font-weight: var(--fw-semibold, 600);
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: var(--font-body, 'Source Sans 3', 'Inter', sans-serif);
}

.verify-btn-submit:hover {
    opacity: 0.9;
}

/* ── LANDING ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    gap: 60px;
    flex: 1;
}

.hero-left {
    flex: 1;
}

.hero-title {
    color: var(--c-principal, #6836D9);
    font-size: var(--text-3xl, 32px);
    font-weight: var(--fw-extrabold, 800);
    line-height: var(--lh-tight, 1.2);
    margin-bottom: 24px;
}

.hero-desc {
    font-size: var(--text-base, 16px);
    color: var(--texto, #374151);
    line-height: var(--lh-relaxed, 1.5);
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    font-size: var(--text-sm);
}

.feature-icon {
    color: var(--c-principal, #6836D9);
    flex-shrink: 0;
}

.feature-text strong {
    display: block;
    margin-bottom: 4px;
}

.btn-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--texto, #374151);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--fw-semibold, 600);
    margin-top: 16px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right img {
    max-width: 100%;
    height: auto;
}

/* ── MODAL VALIDACIÓN EN VIVO ── */
.live-verify-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.live-verify-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.live-verify-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    /* Uses system font from body */
}

.live-verify-backdrop.active .live-verify-modal {
    transform: translateY(0);
}

.live-verify-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--texto-soft, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.live-verify-close:hover {
    color: var(--texto, #374151);
}

.live-verify-title {
    font-size: var(--text-lg, 18px);
    font-weight: var(--fw-extrabold, 800);
    color: var(--texto, #374151);
    margin: 0 0 4px 0;
}

.live-verify-subtitle {
    font-size: var(--text-xs, 12px);
    color: var(--c-principal, #6836D9);
    margin: 0 0 24px 0;
}

.live-verify-list {
    display: flex;
    flex-direction: column;
}

.live-verify-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--borde-soft, #e5e7eb);
    opacity: 0;
}

.live-verify-item:last-of-type {
    border-bottom: none;
}

.live-verify-label {
    font-size: var(--text-xs, 11px);
    color: var(--c-principal, #6836D9);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: var(--fw-semibold, 600);
    letter-spacing: 0.5px;
}

.live-verify-value {
    font-size: var(--text-sm, 14px);
    font-weight: var(--fw-bold, 700);
    color: var(--texto, #374151);
}

.live-verify-status {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--borde-soft, #e5e7eb);
    opacity: 0;
}

.live-verify-status-text {
    color: var(--c-principal, #6836D9);
    /* changed from green */
    font-weight: var(--fw-extrabold, 800);
    font-size: var(--text-base, 16px);
    margin-bottom: 4px;
}

.live-verify-status-date {
    font-size: var(--text-xs, 11px);
    color: var(--texto-soft, #6b7280);
    margin-bottom: 24px;
}

.live-verify-footer {
    text-align: center;
    font-size: var(--text-xs, 11px);
    color: var(--texto-soft, #6b7280);
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-verify-backdrop.active .live-verify-item {
    animation: slideUpFade 0.4s ease forwards;
}

.live-verify-backdrop.active .live-verify-item:nth-child(1) {
    animation-delay: 0.1s;
}

.live-verify-backdrop.active .live-verify-item:nth-child(2) {
    animation-delay: 0.2s;
}

.live-verify-backdrop.active .live-verify-item:nth-child(3) {
    animation-delay: 0.3s;
}

.live-verify-backdrop.active .live-verify-item:nth-child(4) {
    animation-delay: 0.4s;
}

.live-verify-backdrop.active .live-verify-item:nth-child(5) {
    animation-delay: 0.5s;
}

.live-verify-backdrop.active .live-verify-item:nth-child(6) {
    animation-delay: 0.6s;
}

.live-verify-backdrop.active .live-verify-item:nth-child(7) {
    animation-delay: 0.7s;
}

.live-verify-backdrop.active .live-verify-status {
    animation: slideUpFade 0.4s ease forwards;
    animation-delay: 0.8s;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .verify-extra-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .verify-main {
        flex-direction: column;
        padding: 20px;
    }

    .verify-extras {
        padding: 20px;
    }

    .verify-right {
        width: 100%;
    }

    .footer-cert {
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}