/**
 * MetodologIA Components
 * Botones, Cards, Navegación, Footers, Animaciones.
 */

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn-gold {
    background: var(--brand-yellow);
    color: #000;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--brand-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* CTA Primary: Color-Swap Hover */
.cta-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--brand-yellow);
    color: #000;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 99px; /* Pill shape standard */
    border: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
}

.cta-primary:hover {
    background: var(--brand-gold);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    transform: scale(1.02) translateY(-2px);
}

/* CTA Secondary: Subtle Link */
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.25rem;
    transition: all 0.25s ease;
}

.cta-secondary:hover {
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.cta-secondary i, .cta-secondary svg {
    transition: transform 0.25s ease;
}

.cta-secondary:hover i, .cta-secondary:hover svg {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   CARDS (GLASSMORPHISM)
   ═══════════════════════════════════════════════════════════════ */
.card-glass {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-glass:hover {
    background: var(--bg-hover);
    border-color: var(--brand-gold-glow);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES (Brand Colors)
   ═══════════════════════════════════════════════════════════════ */
.bg-brand-gold { background-color: var(--brand-gold); }
.bg-brand-yellow { background-color: var(--brand-yellow); }
.text-brand-gold { color: var(--brand-gold); }
.border-brand-gold { border-color: var(--brand-gold); }

.hover-bg-brand-gold:hover { background-color: var(--brand-gold); transition: background-color 0.3s ease; }
.hover-text-brand-gold:hover { color: var(--brand-gold); transition: color 0.3s ease; }
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.15);
    transform: translateY(-4px);
}

/* Ensure cards don't overflow on horizontal layouts */
@media (min-width: 768px) and (max-width: 1080px) {
    .grid.md\:grid-cols-3 {
        gap: 1rem;
    }
    .card-glass {
        padding: 1.25rem;
    }
}

.card-interaction {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-interaction:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 18, 42, 0.88);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo-link:hover {
    transform: translateY(-2px);
}

.nav-logo-link:hover .logo-svg {
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.nav-logo-link h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: white;
}

.nav-tagline-modern {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-tagline-modern {
        display: flex;
    }
}

.tagline-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.tagline-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.nav-cta-glow { 
    position: relative; 
    padding: 0.6rem 1.25rem; 
    background: var(--brand-yellow); 
    color: #000; 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-decoration: none; 
    border-radius: 0.75rem; 
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2); 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.nav-cta-glow:hover { 
    background: var(--brand-gold);
    color: #000;
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4); 
}

.nav-glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.1) 20%, rgba(255, 215, 0, 0.6) 50%, rgba(255, 215, 0, 0.1) 80%, transparent 100%);
    animation: glow-pulse 4s ease-in-out infinite;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer-link {
    position: relative;
    color: #94a3b8;
    transition: color 0.25s ease, transform 0.25s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--brand-yellow);
    transform: translateX(4px);
}

.footer-link-active {
    color: var(--brand-gold) !important;
    font-weight: 600;
}

.footer-link-active::before {
    content: '›';
    margin-right: 0.5rem;
    color: var(--brand-gold);
    font-weight: 700;
}

.footer-glow-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 20%, 
        rgba(255, 215, 0, 0.4) 50%, 
        rgba(255, 215, 0, 0.1) 80%, 
        transparent 100%);
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0.5;
}

.footer-section-title {
    position: relative;
    display: inline-block;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, transparent);
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   TEXT UTILITIES & GRADIENTS
   ═══════════════════════════════════════════════════════════════ */
.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-ia-yellow {
    background: linear-gradient(120deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.highlight-metodologia {
    color: white;
    font-weight: 900;
}

.highlight-ia-premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.animate-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .animate-shimmer,
    .animate-fade-in-up,
    .nav-glow-line {
        animation: none;
    }
}

/* Modals */
.modal-overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    z-index: 100; 
    background: rgba(2, 6, 23, 0.95); 
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px); 
    align-items: center; 
    justify-content: center;
}
.modal-overlay.active { display: flex; opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: rotate(90deg);
}



/* ═══════════════════════════════════════════════════════════════
   UI MICRO-COMPONENTS (Ruta & General)
   ═══════════════════════════════════════════════════════════════ */
.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: var(--bg-hover);
    border: 1px solid var(--border-default);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.icon-box-feature {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card-feature:hover .icon-box-feature {
    transform: scale(1.1);
}

/* Pricing/Selection Cards */
.pricing-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.5); /* slate-900/50 - Keeping semi-transparent slate */
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-option-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.7);
}

.pricing-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    background: transparent;
    transition: all 0.2s;
}

/* Color variations for Icon Box */



/* ═══════════════════════════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════════════════════════ */
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: 1.5px solid;
    transition: all 0.4s;
}
.hero-badge .badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; animation: badge-pulse 2s infinite; }
@keyframes badge-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.2); } }

.hero-badge-gold { background: rgba(255, 215, 0, 0.1); border-color: rgba(255, 215, 0, 0.4); color: #FFD700; }
.hero-badge-red { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
.hero-badge-cyan { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.4); color: #22d3ee; }
.hero-badge-purple { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.4); color: #c084fc; }
.hero-badge-emerald { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
