/* =============================================
   NUEVO DISEÑO ORIGINAL - VERIFICADOR IPELC
   ============================================= */

:root {
    --primary: #0a1628;
    --secondary: #1a2a4a;
    --accent: #f7c948;
    --accent2: #e8a838;
    --gold: #d4a847;
    --light: #f0f4f8;
    --text-light: #e8edf5;
    --text-muted: #8899bb;
    --card-bg: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(247, 201, 72, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: #0a1628;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(247, 201, 72, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 42, 74, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(247, 201, 72, 0.03) 0%, transparent 40%);
    color: var(--text-light);
    overflow-x: hidden;
}

/* =============================================
   FONDO CON PATRÓN GEOMÉTRICO ORIGINAL
   ============================================= */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geometric-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        repeating-linear-gradient(45deg, 
            transparent 0px, 
            transparent 40px, 
            rgba(247, 201, 72, 0.02) 40px, 
            rgba(247, 201, 72, 0.02) 41px
        ),
        repeating-linear-gradient(-45deg, 
            transparent 0px, 
            transparent 40px, 
            rgba(247, 201, 72, 0.015) 40px, 
            rgba(247, 201, 72, 0.015) 41px
        );
    animation: rotateBg 120s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================
   PARTÍCULAS FLOTANTES
   ============================================= */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle 20s infinite linear;
}

.particle:nth-child(1) { top: 10%; left: 10%; animation-duration: 18s; }
.particle:nth-child(2) { top: 20%; left: 80%; animation-duration: 22s; animation-delay: 2s; }
.particle:nth-child(3) { top: 50%; left: 5%; animation-duration: 25s; animation-delay: 4s; }
.particle:nth-child(4) { top: 70%; left: 90%; animation-duration: 20s; animation-delay: 1s; }
.particle:nth-child(5) { top: 85%; left: 30%; animation-duration: 28s; animation-delay: 3s; }
.particle:nth-child(6) { top: 30%; left: 60%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(7) { top: 60%; left: 45%; animation-duration: 24s; animation-delay: 2s; }
.particle:nth-child(8) { top: 90%; left: 70%; animation-duration: 19s; animation-delay: 4s; }

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    25% { transform: translate(30px, -50px) scale(1.5); opacity: 0.25; }
    50% { transform: translate(-20px, -100px) scale(1); opacity: 0.15; }
    75% { transform: translate(40px, -60px) scale(0.8); opacity: 0.2; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
}

/* =============================================
   CONTENEDOR PRINCIPAL
   ============================================= */
.main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.verifier-card {
    width: 100%;
    max-width: 900px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px 40px 40px;
    border: 1px solid rgba(247, 201, 72, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(247, 201, 72, 0.1);
    position: relative;
    overflow: hidden;
}

.verifier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--gold), 
        var(--accent2), 
        var(--gold), 
        transparent
    );
    background-size: 200% 100%;
    animation: shimmerBorder 4s ease-in-out infinite;
}

@keyframes shimmerBorder {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =============================================
   LOGOS Y TÍTULO
   ============================================= */
.logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.logo-item {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(247, 201, 72, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s ease;
}

.logo-item:hover {
    border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(247, 201, 72, 0.15);
}

.logo-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.main-title {
    text-align: center;
    margin-bottom: 5px;
}

.main-title h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(247, 201, 72, 0.15);
}

.main-title .sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-top: 2px;
}

/* =============================================
   CONTADOR
   ============================================= */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0 30px;
    padding: 15px 30px;
    background: rgba(247, 201, 72, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(247, 201, 72, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* =============================================
   BUSCADOR
   ============================================= */
.search-wrapper {
    margin: 20px 0 30px;
}

.search-form {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(247, 201, 72, 0.15);
    overflow: hidden;
    transition: all 0.4s ease;
}

.search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(247, 201, 72, 0.1);
}

.search-input {
    flex: 1;
    padding: 16px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.search-btn {
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--gold), var(--accent2));
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(247, 201, 72, 0.3);
}

.search-btn i {
    font-size: 1rem;
}

/* =============================================
   RESULTADO - VÁLIDO
   ============================================= */
.result-card {
    margin-top: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(247, 201, 72, 0.1);
    padding: 30px 30px 25px;
    animation: slideUp 0.5s ease;
}

.result-card.valid {
    border-color: rgba(247, 201, 72, 0.25);
    background: rgba(247, 201, 72, 0.03);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.result-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    padding: 4px 14px;
    border: 1px solid rgba(247, 201, 72, 0.2);
    border-radius: 20px;
    display: inline-block;
    background: rgba(247, 201, 72, 0.05);
}

.result-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
}

.result-id {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.result-status {
    text-align: right;
    padding: 8px 20px;
    border-radius: 12px;
    background: rgba(247, 201, 72, 0.08);
    border: 1px solid rgba(247, 201, 72, 0.15);
}

.status-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.status-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

/* GRID DE DATOS */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
}

.data-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.data-item.full {
    grid-column: 1 / -1;
}

.data-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.data-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    margin-top: 2px;
}

/* FECHA */
.date-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(247, 201, 72, 0.08);
    margin-top: 5px;
}

.date-block i {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.7;
}

.date-block .data-label {
    font-size: 0.6rem;
}

.date-block .data-value {
    font-size: 0.9rem;
}

/* IMPORTANTE */
.important-note {
    margin-top: 20px;
    padding: 14px 20px;
    background: rgba(247, 201, 72, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(247, 201, 72, 0.08);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.important-note strong {
    color: var(--gold);
}

/* =============================================
   RESULTADO - INVÁLIDO
   ============================================= */
.result-card.invalid {
    border-color: rgba(255, 100, 100, 0.2);
    background: rgba(255, 100, 100, 0.03);
}

.invalid-content {
    text-align: center;
    padding: 15px 10px;
}

.invalid-icon {
    font-size: 3.5rem;
    color: #ff6b6b;
    margin-bottom: 10px;
    display: block;
}

.invalid-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff8a8a;
    margin-bottom: 5px;
}

.invalid-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-bar {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.footer-bar span {
    color: var(--gold);
    opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .verifier-card {
        padding: 30px 20px 25px;
        border-radius: 20px;
    }

    .main-title h1 {
        font-size: 1.5rem;
    }

    .logo-item {
        width: 70px;
        height: 70px;
    }

    .logos-wrapper {
        gap: 20px;
    }

    .stats-bar {
        gap: 20px;
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-input {
        padding: 14px 20px;
    }

    .search-btn {
        padding: 14px 20px;
        justify-content: center;
        border-radius: 0 0 12px 12px;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
    }

    .result-status {
        text-align: left;
        width: 100%;
    }

    .result-name {
        font-size: 1.4rem;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .verifier-card {
        padding: 20px 15px 20px;
    }

    .main-title h1 {
        font-size: 1.2rem;
    }

    .logo-item {
        width: 55px;
        height: 55px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }
}