/**
 * RenderCore - Página Sobre Nosotros
 * Estilos para hero animado, timeline, métricas y más
 */

/* ============================================
   HERO SECTION CON ANIMACIONES
   ============================================ */

.about-hero {
    height: 88vh;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    padding-top: 70px;
    background: var(--bg-base);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg .orb {
    position: absolute;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.orb-1 {
    width: 520px;
    height: 520px;
    left: -120px;
    top: -120px;
    background: radial-gradient(circle at 30% 30%, var(--primary-500), transparent 60%);
    animation-delay: 0s;
}

.orb-2 {
    width: 420px;
    height: 420px;
    right: -80px;
    top: 20%;
    background: radial-gradient(circle at 70% 30%, var(--secondary-color), transparent 60%);
    animation-delay: 7s;
}

.orb-3 {
    width: 380px;
    height: 380px;
    left: 20%;
    bottom: -140px;
    background: radial-gradient(circle at 50% 50%, var(--accent-color), transparent 60%);
    animation-delay: 14s;
}

.hero-bg .grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-bg .noise {
    position: absolute;
    inset: -50%;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.3"/></svg>');
    animation: noiseMove 8s steps(10) infinite;
}

@keyframes noiseMove {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 15%); }
    80% { transform: translate(3%, 25%); }
    90% { transform: translate(-10%, 10%); }
}

.about-hero-inner {
    text-align: center;
    transform: translateY(-10vh) translateZ(0);
    z-index: 2;
    position: relative;
}

.about-hero-title {
    font-size: clamp(56px, 9vw, 128px);
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
}

.about-hero-title .caret {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--text-primary);
    margin-left: 6px;
    animation: blink 1s steps(1) infinite;
    vertical-align: middle;
}

@keyframes blink {
    50% { opacity: 0; }
}

.about-hero-subtitle {
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: clamp(14px, 2.2vw, 20px);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.hero-scroll-hint:hover {
    color: var(--text-primary);
    gap: 12px;
}

.hero-scroll-hint .hint-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 999px;
    animation: bounce 1.6s infinite;
}

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

/* ============================================
   HISTORIA - TIMELINE
   ============================================ */

.about-history {
    padding: 8vh 0 4vh;
    background: var(--bg-base);
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 48px;
    color: var(--text-primary);
    font-weight: 700;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--primary-color) 10%, var(--primary-color) 90%, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin: 48px 0;
    opacity: 1;
}

.timeline-badge {
    justify-self: end;
    background: rgba(6, 182, 212, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-600);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--primary-400);
    font-size: 0.95rem;
    box-shadow: var(--glow-primary);
}

.timeline-card {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    padding: 24px 28px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-600);
    background: var(--bg-hover);
}

.timeline-card p {
    margin: 0;
    line-height: 1.7;
    color: #b3b3b3 !important; /* Texto de cards visible */
}

.timeline-item:nth-child(even) .timeline-badge {
    grid-column: 2;
    justify-self: start;
    grid-row: 1;
}

.timeline-item:nth-child(even) .timeline-card {
    grid-column: 1;
    grid-row: 1;
}

/* ============================================
   MÉTRICAS / STATS
   ============================================ */

.about-stats {
    padding: 8vh 0;
    background: var(--bg-base);
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-600);
    background: var(--bg-hover);
}

.stat-number {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-number::after {
    content: '+';
    font-size: 0.7em;
    opacity: 0.7;
    margin-left: 4px;
}

.stat-card:last-child .stat-number::after {
    content: '%';
}

.stat-label {
    margin-top: 6px;
    color: #b3b3b3 !important; /* Etiquetas de estadísticas visibles */
    font-size: 1rem;
}

/* ============================================
   MISIÓN, VISIÓN, VALORES
   ============================================ */

.about-mvv {
    padding: 8vh 0 10vh;
    background: var(--bg-base);
}

.mvv-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.mvv-card {
    position: relative;
    padding: 32px 28px;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-lg);
    border-radius: 18px;
    transform: translateZ(0);
    text-align: center;
    transition: all 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-600);
    background: var(--bg-hover);
}

.mvv-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb, 79, 70, 229), 0.4);
}

.mvv-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.mvv-text {
    color: #b3b3b3 !important; /* Texto de misión/visión/valores visible */
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

.mvv-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   CTA FINAL
   ============================================ */

.about-cta {
    padding: 8vh 0 12vh;
    background: var(--bg-base);
}

.cta-card {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border-radius: 20px;
    background: var(--bg-elevated);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.cta-text {
    font-size: clamp(16px, 2vw, 20px);
    color: #b3b3b3 !important; /* Texto CTA visible */
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb, 79, 70, 229), 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb, 79, 70, 229), 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   ANIMACIÓN REVEAL ON SCROLL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .about-hero {
        height: 85vh;
        margin-top: 0;
        padding-top: 70px;
    }

    .about-hero-inner {
        transform: translateY(-6vh) translateZ(0);
    }

    .timeline::before {
        left: 24px;
        transform: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 50px;
        gap: 16px;
    }

    .timeline-badge {
        justify-self: start !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .timeline-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 80vh;
        margin-top: 0;
        padding-top: 60px;
    }

    .about-hero-inner {
        transform: translateY(-4vh) translateZ(0);
        padding: 0 20px;
    }

    .about-hero-title {
        font-size: clamp(36px, 8vw, 70px);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .timeline-item {
        padding-left: 40px;
        margin: 32px 0;
    }

    .timeline::before {
        left: 16px;
    }

    .cta-card {
        padding: 32px 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .about-hero {
        height: 78vh;
        margin-top: 0;
        padding-top: 54px;
    }

    .about-hero-inner {
        transform: translateY(-2vh) translateZ(0);
        padding: 0 15px;
    }

    .hero-scroll-hint {
        font-size: 0.85rem;
    }

    .orb-1, .orb-2, .orb-3 {
        opacity: 0.3;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .mvv-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

