/* ==========================================
 * BASE & RESET
 * ========================================== */
body {
    font-family: 'Inter', sans-serif;
}

*:focus-visible {
    outline: 2px solid #001470;
    outline-offset: 2px;
}

.dark *:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

/* ==========================================
 * ANIMACIONES & KEYFRAMES
 * ========================================== */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.float-icon {
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.pulse-ring {
    animation: pulseRing 2.5s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

.modal-slide-up {
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.glow-text {
    color: #dc2626;
    animation: glowPulse 2.5s ease-in-out infinite;
}

.dark .glow-text {
    color: #ef4444;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.5), 0 0 20px rgba(220, 38, 38, 0.3);
    }
    50% {
        text-shadow: 0 0 15px rgba(220, 38, 38, 0.8), 0 0 30px rgba(220, 38, 38, 0.5), 0 0 45px rgba(220, 38, 38, 0.35);
    }
}

/* ==========================================
 * COMPONENTES & UTILIDADES
 * ========================================== */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.dark .card-hover:hover {
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
}

.copy-btn:active,
.wa-btn:active {
    transform: scale(0.95);
}

.top-gradient-bar {
    background: linear-gradient(90deg, #06b6d4 0%, #3b82f6 50%, #001470 100%);
}

.gold-chip {
    background: linear-gradient(135deg, #f6d365 0%, #e6b047 25%, #d4a03c 50%, #c8922f 75%, #f0c860 100%);
    position: relative;
    overflow: hidden;
}

.gold-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0px, transparent 6px, rgba(139, 92, 29, 0.4) 6px, rgba(139, 92, 29, 0.4) 7px),
                repeating-linear-gradient(0deg, transparent 0px, transparent 6px, rgba(139, 92, 29, 0.4) 6px, rgba(139, 92, 29, 0.4) 7px);
}

.img-zoom {
    transition: transform 0.4s ease;
}

.img-zoom:hover {
    transform: scale(1.02);
}

.img-zoom-reduced {
    transition: transform 0.4s ease;
}

.img-zoom-reduced:hover {
    transform: scale(0.92);
}

/* ==========================================
 * LOGO RECTANGULAR - HEADER & FOOTER
 * ========================================== */
.logo-rect-container {
    width: 135px;
    height: 48px;
    padding: 6px;
    background: #001470;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.dark .logo-rect-container {
    background: transparent;
}

.logo-rect-container img {
    width: 92%;
    height: 92%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ==========================================
 * ILUSTRACIÓN & BADGES FLOTANTES
 * ========================================== */
.illustration-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.floating-badge {
    position: absolute;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.dark .floating-badge {
    background: #1e293b;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 10px -2px rgba(0, 0, 0, 0.3);
}

.badge-tl {
    top: 4%;
    left: 6%;
}

.badge-tr {
    top: 4%;
    right: 6%;
}

.badge-bl {
    bottom: 4%;
    left: 6%;
}

.badge-br {
    bottom: 4%;
    right: 6%;
}

/* ==========================================
 * VIDEO MODAL - NUEVO (INTEGRACIÓN SOLICITADA)
 * ========================================== */
.video-modal {
    display: none;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
    border: 1px solid #e2e8f0;
}

.dark .video-modal-content {
    background: #0f172a;
    border-color: #334155;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .video-modal-header {
    border-color: #334155;
}

.video-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .video-modal-title {
    color: #f1f5f9;
}

.video-modal-close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.video-modal-close:hover {
    background: #e2e8f0;
}

.dark .video-modal-close {
    background: #1e293b;
}

.dark .video-modal-close:hover {
    background: #334155;
}

.video-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #475569;
}

.dark .video-modal-close svg {
    color: #94a3b8;
}

.video-modal-body {
    padding: 1rem;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .video-modal-body {
    background: #1e293b;
}

.video-player {
    width: 100%;
    max-width: 414px;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #000;
    border-radius: 1rem;
    outline: none;
}

/* ==========================================
 * RESPONSIVE - MEDIA QUERIES
 * ========================================== */
@media (max-width: 640px) {
    .video-player {
        max-width: 95vw;
        max-height: 85vh;
    }

    .illustration-container {
        max-width: 280px;
    }

    .floating-badge {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .floating-badge svg {
        width: 22px;
        height: 22px;
    }

    .badge-tl {
        top: 2%;
        left: 4%;
    }

    .badge-tr {
        top: 2%;
        right: 4%;
    }

    .badge-bl {
        bottom: 2%;
        left: 4%;
    }

    .badge-br {
        bottom: 2%;
        right: 4%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .video-player {
        max-width: 70vw;
        max-height: 80vh;
    }
}

@media (min-width: 1025px) {
    .video-player {
        max-width: 414px;
        max-height: 735px;
    }
}
