/**
  @license Copyleft
  @copyright MetodologIA
  @author Javier Montaño
  @technology Antigravity | GoogleAI Studio | Gemini 3 Pro | Gemini 3 Flash
  @poweredBy Pristino Agent
 */

/* ═══════════════════════════════════════════════════════════════
   VISION PAGE (vision.html)
   Specific Styles
   ═══════════════════════════════════════════════════════════════ */



/* Hero Visual & Layout */
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-layout { grid-template-columns: 5fr 7fr; } }
.hero-visual-container { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }



/* Micro-interactions */
.section-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.section-reveal.visible { opacity: 1; transform: translateY(0); }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.hover-glow:hover { box-shadow: 0 0 30px rgba(255, 215, 0, 0.2); }
.pulse-subtle { animation: pulse-subtle 2s infinite; }
@keyframes pulse-subtle { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.float { animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Additional Animations for Vision */
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 4s ease-in-out infinite; }
@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.animate-fade-in { animation: fade-in 0.6s ease-out forwards; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.animate-bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }
@keyframes bounce-slow { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-8px); } 
}

.animate-dash { animation: dash 3s linear infinite; }
@keyframes dash {
    to { stroke-dashoffset: -24; }
}

/* Staircase Container */
.staircase-container { transform-style: preserve-3d; }
.staircase-step { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.staircase-step:hover { transform: translateX(-4px); }

/* Ruta a la Excelencia Styles (Gantt reused in Vision) */
.gantt-bar { height: 100%; border-radius: 0.5rem; display: flex; align-items: center; padding: 0 0.75rem; position: relative; font-size: 0.7rem; }
.bar-blue { background-color: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.4); }
.bar-cyan { background-color: rgba(6, 182, 212, 0.2); border-color: rgba(6, 182, 212, 0.4); }
.bar-amber { background-color: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.4); }
.bar-yellow { background-color: rgba(234, 179, 8, 0.2); border-color: rgba(234, 179, 8, 0.4); }
.bar-purple { background-color: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.4); }
.bar-emerald { background-color: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
.bar-pink { background-color: rgba(236, 72, 153, 0.2); border-color: rgba(236, 72, 153, 0.4); }
.bar-red { background-color: rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.4); }

/* Highlight Classes */
.highlight-ia-gold {
    color: var(--brand-gold-dark);
    font-weight: 800;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #EAB308 0%, #FCD34D 50%, #CA8A04 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-orange {
    background: linear-gradient(135deg, #F97316 0%, #EF4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.5));
}

/* Modals - now handled in components.css */

/* Section Highlight Effects */
.highlight-pulse { animation: pulse-glow 3s ease-in-out infinite; }
@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--brand-gold-glow); }
    50% { opacity: 0.95; box-shadow: 0 0 25px 5px rgba(255, 215, 0, 0.25); }
}

.highlight-glow { box-shadow: 0 0 30px var(--brand-gold-glow), 0 0 60px var(--brand-gold-glow); }
.highlight-border-pulse { animation: border-pulse 2.5s ease-in-out infinite; }
@keyframes border-pulse {
    0%, 100% { border-color: var(--brand-gold-glow); }
    50% { border-color: rgba(255, 215, 0, 0.7); }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM VISION EFFECTS
   ═══════════════════════════════════════════════════════════════ */

/* Animated Mesh Gradient Background */
.vision-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes meshMove {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    25% { opacity: 0.8; transform: scale(1.05) rotate(1deg); }
    50% { opacity: 1; transform: scale(1) rotate(0deg); }
    75% { opacity: 0.9; transform: scale(0.98) rotate(-1deg); }
}

/* Premium Equation Card */
.equation-card {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.equation-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.equation-card:hover::before {
    opacity: 1;
}

.equation-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.15);
}

/* Equation Elements Animation */
.equation-element {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.equation-element:hover {
    transform: scale(1.1);
}

.equation-element.tiempo {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.equation-element.metodo {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.equation-element.ia {
    background: rgba(255, 215, 0, 0.15);
    color: var(--brand-gold-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    animation: iaPulse 2s ease-in-out infinite;
}

@keyframes iaPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.4); }
}

.equation-operator {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.3);
    animation: operatorFade 3s ease-in-out infinite;
}

@keyframes operatorFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.equation-result {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-gold-dark) 0%, #F59E0B 50%, #EAB308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: resultGlow 3s ease-in-out infinite;
}

@keyframes resultGlow {
    0%, 100% { filter: drop-shadow(0 0 8px var(--brand-gold-glow)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
}

/* Premium Problem Cards */
.problem-card {
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.problem-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(239, 68, 68, 0.05) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: none;
}

.problem-card:hover::after {
    animation: shimmerRed 0.8s ease forwards;
}

@keyframes shimmerRed {
    100% { transform: translateX(100%); }
}

.problem-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(239, 68, 68, 0.15);
}

.problem-card .icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.problem-card:hover .icon-container {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Journey Chips Premium */
.journey-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.journey-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journey-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px -8px currentColor;
}

.journey-chip.red { 
    background: rgba(239, 68, 68, 0.1); 
    border: 1px solid rgba(239, 68, 68, 0.3); 
    color: #f87171; 
}
.journey-chip.red:hover { 
    background: rgba(239, 68, 68, 0.2); 
    border-color: rgba(239, 68, 68, 0.5); 
}

.journey-chip.orange { 
    background: rgba(249, 115, 22, 0.1); 
    border: 1px solid rgba(249, 115, 22, 0.3); 
    color: #fb923c; 
}
.journey-chip.orange:hover { 
    background: rgba(249, 115, 22, 0.2); 
    border-color: rgba(249, 115, 22, 0.5); 
}

.journey-chip.cyan { 
    background: rgba(6, 182, 212, 0.1); 
    border: 1px solid rgba(6, 182, 212, 0.3); 
    color: #22d3ee; 
}
.journey-chip.cyan:hover { 
    background: rgba(6, 182, 212, 0.2); 
    border-color: rgba(6, 182, 212, 0.5); 
}

.journey-chip.gold { 
    background: var(--brand-gold-glow); 
    border: 1px solid var(--brand-gold-glow); 
    color: var(--brand-gold-dark); 
}
.journey-chip.gold:hover { 
    background: rgba(255, 215, 0, 0.2); 
    border-color: rgba(255, 215, 0, 0.5); 
}

/* Staggered Entrance */
.stagger-in { opacity: 0; transform: translateY(20px); animation: staggerFadeIn 0.6s ease forwards; }
.stagger-in:nth-child(1) { animation-delay: 0.1s; }
.stagger-in:nth-child(2) { animation-delay: 0.2s; }
.stagger-in:nth-child(3) { animation-delay: 0.3s; }
.stagger-in:nth-child(4) { animation-delay: 0.4s; }

@keyframes staggerFadeIn {
    to { opacity: 1; transform: translateY(0); }
}


/* === Moved from vision.html inline styles === */

/* Standard Container (Defined in components.css) */

/* Modal System enhancements for vision page only */
/* Base .modal-overlay and .modal-content are now in components.css */

/* Base Chip (Legacy support, prefer .journey-chip) */
.chip { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.5rem 1rem; 
    border-radius: 9999px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.2s; 
}
.chip:hover { 
    transform: translateY(-2px); 
}

/* ═══════════════════════════════════════════════════════════════
   VISION PAGE v1.1 EVOLUTION (APPENDED)
   ═══════════════════════════════════════════════════════════════ */

/* Floating Equation Animations */
.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.animate-spin-slow {
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-reverse-slow {
    animation: spinReverseSlow 25s linear infinite;
}

@keyframes spinReverseSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.perspective-1000 {
    perspective: 1000px;
}

/* PIVOTE Card Enhancements */
.card-pivote {
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.card-pivote::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-pivote:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-pivote:hover::before {
    opacity: 1;
}

/* Phase A (Cyan) Specifics */
.card-pivote.phase-a:hover {
    box-shadow: 
        0 20px 40px -12px rgba(6, 182, 212, 0.15),
        0 0 0 1px rgba(6, 182, 212, 0.3);
}
.card-pivote.phase-a:hover .letter-icon {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    transform: scale(1.1);
}

/* Phase B (Gold) Specifics */
.card-pivote.phase-b:hover {
    box-shadow: 
        0 20px 40px -12px rgba(255, 215, 0, 0.15),
        0 0 0 1px var(--brand-gold-glow);
}
.card-pivote.phase-b:hover .letter-icon {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: scale(1.1);
}

.letter-icon {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

/* ═══════════════════════════════════════════════════════════════
   DEEP DIVE: OBSIDIAN BENTO (Appended for v1.2)
   ═══════════════════════════════════════════════════════════════ */

/* Bento Grid */
.bento-fracture {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .bento-fracture {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, minmax(280px, auto));
    }
}

/* Card Obsidian */
.card-obsidian {
    position: relative;
    background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Stealth border */
    border-radius: 1.5rem;
    padding: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-obsidian::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: color-dodge;
}

.card-obsidian:hover {
    transform: scale(1.02);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.card-obsidian:hover::before {
    opacity: 1;
}

/* The Fracture Line */
.fracture-line {
    width: 60px;
    height: 4px;
    background: #334155;
    margin-bottom: 2rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.fracture-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ef4444;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.card-obsidian:hover .fracture-line::after {
    transform: translateX(0);
}

.card-obsidian:hover .fracture-line {
    width: 100px; /* Expands */
}

/* Modal Content Premium */
.modal-premium-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .modal-premium-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.metric-box {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}
