/* ===== VERIFICAR — verificar.php ===== */

.verificar-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.verificar-header {
    text-align: center;
    margin-bottom: 36px;
}

.verificar-header h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.verificar-header p {
    font-size: var(--text-xl);
    color: var(--gray);
}

/* ===== BUSCADOR ===== */
.verificar-search {
    margin-bottom: 32px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 4px 4px 16px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow:
        0 5px 0 #d1d5db,
        0 7px 16px rgba(0, 0, 0, 0.08);
}

.search-input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow:
        0 5px 0 rgba(14, 165, 233, 0.3),
        0 7px 16px rgba(14, 165, 233, 0.12);
}

.search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gray);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'DM Sans', 'Nunito', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-dark);
    letter-spacing: 0.05em;
    background: transparent;
    padding: 12px 0;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0;
}

.search-btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(to bottom, #2dd4f0, #0ea5e9);
    color: var(--white);
    transition: all 0.15s;
    position: relative;
    top: 0;
    box-shadow: 0 3px 0 #0b7bb5;
}

.search-btn:hover {
    top: 2px;
    box-shadow: 0 1px 0 #0b7bb5;
}

.search-btn:active {
    top: 3px;
    box-shadow: none;
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    top: 0;
}

.search-hint {
    font-size: var(--text-xs);
    color: var(--gray);
    text-align: center;
    margin-top: 10px;
}

/* ===== RESULTADO ===== */
.result-card {
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    border: 2px solid;
}

.result-valid {
    border-color: #22c55e;
    background: linear-gradient(180deg, #f0fdf4 0%, var(--white) 40%);
}

.result-invalid {
    border-color: #ef4444;
    background: linear-gradient(180deg, #fef2f2 0%, var(--white) 40%);
}

.result-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.result-icon svg {
    width: 32px;
    height: 32px;
}

.result-icon-valid {
    background: #dcfce7;
    color: #16a34a;
}

.result-icon-invalid {
    background: #fee2e2;
    color: #dc2626;
}

.result-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 4px;
}

.result-title-valid { color: #16a34a; }
.result-title-invalid { color: #dc2626; }

.result-subtitle {
    font-size: var(--text-base);
    color: var(--gray);
    margin-bottom: 24px;
}

/* ===== DETALLES ===== */
.result-details {
    max-width: 360px;
    margin: 0 auto 24px;
    text-align: left;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.result-label {
    font-size: var(--text-sm);
    color: var(--gray);
}

.result-value {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-dark);
}

/* ===== PREVIEW CARTÓN ===== */
.result-card-preview {
    max-width: 400px;
    margin: 16px auto;
}

.result-card-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray);
    text-align: center;
    margin-top: 20px;
    margin-bottom: 4px;
}

.result-card-preview .bingo-cell {
    cursor: default;
}

.result-card-preview .bingo-cell:active {
    transform: none;
}

/* ===== CÓMO FUNCIONA ===== */
.verificar-steps {
    margin-top: 56px;
    text-align: center;
}

.verificar-steps-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 32px;
}

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

.verificar-step {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 32px 20px 28px;
    position: relative;
    box-shadow:
        0 5px 0 #d1d5db,
        0 7px 16px rgba(0, 0, 0, 0.08);
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.step-icon-1 {
    background: linear-gradient(135deg, var(--blue), #0284c7);
    box-shadow: 0 4px 0 rgba(14, 165, 233, 0.3), 0 6px 12px rgba(14, 165, 233, 0.2);
}

.step-icon-2 {
    background: linear-gradient(135deg, #f472b6, var(--pink));
    box-shadow: 0 4px 0 rgba(236, 72, 153, 0.3), 0 6px 12px rgba(236, 72, 153, 0.2);
}

.step-icon-3 {
    background: linear-gradient(135deg, var(--green), #16a34a);
    box-shadow: 0 4px 0 rgba(34, 197, 94, 0.3), 0 6px 12px rgba(34, 197, 94, 0.2);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.step-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.step-desc {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.6;
}

/* ===== CTA ===== */
.verificar-cta {
    margin-top: 48px;
    text-align: center;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px 28px;
    box-shadow:
        0 5px 0 #d1d5db,
        0 7px 16px rgba(0, 0, 0, 0.08);
}

.verificar-cta-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    box-shadow: 0 4px 0 rgba(14, 165, 233, 0.3), 0 6px 12px rgba(14, 165, 233, 0.2);
}

.verificar-cta-icon svg {
    width: 28px;
    height: 28px;
}

.verificar-cta-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.verificar-cta-desc {
    font-size: var(--text-base);
    color: var(--gray);
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.verificar-cta-btn {
    display: inline-flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 479px) {
    .verificar-page {
        padding: 24px 12px 40px;
    }

    .search-input-wrap {
        flex-wrap: wrap;
        padding: 8px;
    }

    .search-icon {
        display: none;
    }

    .search-input {
        width: 100%;
        padding: 10px 8px;
        text-align: center;
    }

    .search-btn {
        width: 100%;
    }

    .result-card {
        padding: 24px 16px;
    }

    .verificar-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .verificar-cta {
        padding: 28px 16px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .verificar-steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
