/* ==========================================================================
   VilaTec 2.0 — CSS de la Página Sobre Nosotros (Nuestra Filosofía)
   Terminal interactiva, Bento Grid de cristal, efectos neón y adaptabilidad móvil
   ========================================================================== */

#sobre-nosotros-page {
    background-color: #05070a;
    color: #f3f4f6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- 1. HERO SECTION --- */
.about-hero {
    position: relative;
    padding: 14rem 0 10rem;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.6) 0%, rgba(5, 7, 10, 0.92) 100%);
    z-index: 1;
}

.about-hero__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 157, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.about-hero__container {
    position: relative;
    z-index: 3;
    max-width: 68rem;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.about-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 157, 0, 0.08);
    border: 1px solid rgba(255, 157, 0, 0.25);
    border-radius: 100px;
    color: #ff9d00;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-hero__badge .badge-dot {
    width: 6px;
    height: 6px;
    background-color: #ff9d00;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff9d00;
}

.about-hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 2rem;
}

.about-hero__title .text-highlight {
    background: linear-gradient(135deg, #ffd399 0%, #ff9d00 50%, #d47a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero__desc {
    color: #cbd5e1;
    line-height: 1.75;
    max-width: 50rem;
    margin: 0 auto;
    font-weight: 300;
}


/* --- 2. TIMELINE INTERACTIVO (HISTORIA) --- */
.about-history-section {
    position: relative;
    padding: 8rem 0;
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    overflow: hidden;
}

.about-history__header {
    max-width: 50rem;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 0 2rem;
}

.about-history__title {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.about-history__subtitle {
    font-size: 1.25rem;
    color: #ff9d00;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.about-history__desc {
    color: #9ca3af;
    line-height: 1.65;
    font-weight: 300;
}

/* Timeline Cards (Selector de Hitos) */
.timeline-cards-container {
    max-width: 64rem;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.timeline-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* Tarjeta de Año Individual */
.year-card {
    background: rgba(13, 20, 35, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100px;
    width: 100%;
}

.year-card__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 157, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.year-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-card__bullet {
    width: 8px;
    height: 8px;
    background-color: #334155;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-block;
}

.year-card__number {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.year-card__title {
    font-size: 0.825rem;
    color: #94a3b8;
    line-height: 1.3;
    font-weight: 400;
    margin: 0;
    transition: color 0.3s ease;
}

/* Hovers y Activos en Tarjeta de Año */
.year-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 157, 0, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 157, 0, 0.05);
    background: rgba(13, 20, 35, 0.65);
}

.year-card:hover .year-card__bullet {
    background-color: #ffb866;
    box-shadow: 0 0 6px #ffb866;
}

.year-card:hover .year-card__glow {
    opacity: 1;
}

.year-card.active {
    border-color: #ff9d00;
    background: rgba(255, 157, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 157, 0, 0.12);
}

.year-card.active .year-card__bullet {
    background-color: #ff9d00;
    box-shadow: 0 0 10px #ff9d00;
    transform: scale(1.25);
}

.year-card.active .year-card__title {
    color: #ffb866;
    font-weight: 500;
}

.year-card.active .year-card__glow {
    opacity: 1.5;
}

/* Terminal Wrapper */
.terminal-wrapper {
    max-width: 64rem;
    margin: 0 auto;
    background: #030509;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: #0d121f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot--red { background-color: #ef4444; }
.terminal-dot--yellow { background-color: #f59e0b; }
.terminal-dot--green { background-color: #10b981; }

.terminal-title {
    font-size: 0.75rem;
    color: #9ca3af;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.terminal-status__node {
    font-size: 0.75rem;
    color: #a28d79;
    background: rgba(162, 141, 121, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(162, 141, 121, 0.15);
}

/* Terminal Body Grid */
.terminal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 380px;
}

/* Columna de Consola (Izquierda) */
.terminal-console {
    background: #05080f;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
}

.terminal-lines {
    font-family: 'Geist', 'Courier New', monospace;
    font-size: 0.825rem;
    line-height: 1.6;
    color: #cbd5e1;
    height: 280px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.terminal-line {
    margin-bottom: 0.4rem;
}

/* Colores de consola */
.text-cyan { color: #52b8ff; }
.text-orange { color: #ffb866; }
.text-success { color: #4ade80; }
.text-muted { color: #64748b; }
.text-info { color: #93c5fd; }

/* Cursor parpadeante */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #ff9d00;
}

/* Columna Inspector (Derecha) */
.terminal-inspector {
    background: #070b15;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.inspector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.inspector-badge {
    font-size: 0.675rem;
    font-weight: 600;
    color: #ffb866;
    background: rgba(255, 184, 102, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.inspector-meta {
    font-size: 0.675rem;
}

.inspector-display {
    flex-grow: 1;
    min-height: 200px;
}

.inspector-log-header {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.inspector-panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.inspector-panel-text {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.65;
    font-weight: 300;
}

.inspector-panel-note, .inspector-panel-extra {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.inspector-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 1.5rem;
}


/* --- 3. BENTO GRID (ADN TECNOLÓGICO) --- */
.about-adn-section {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.about-adn__title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 3.5rem;
    text-align: center;
}

.about-adn__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Tarjeta Bento Base */
.bento-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    background: rgba(13, 20, 35, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.bento-card__tag {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 5;
    background: rgba(5, 7, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.675rem;
    color: #ff9d00;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.bento-card__content {
    position: relative;
    z-index: 4;
    padding: 1.5rem;
    margin: 1.25rem;
    background: rgba(5, 7, 12, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.bento-card__num {
    font-size: 1rem;
    color: #ff9d00;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bento-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
    min-height: 3.5rem;
    display: flex;
    align-items: flex-start;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.bento-card__desc {
    color: #cbd5e1;
    line-height: 1.55;
    font-weight: 300;
    font-size: 0.925rem;
    margin: 0;
    flex-grow: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Bento 1: Foto */
.bento-card--photo .bento-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card--photo .bento-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.6) 0%, rgba(5, 7, 10, 0.1) 70%, transparent 100%);
    z-index: 1;
}

.bento-card--photo:hover .bento-card__bg {
    transform: scale(1.04);
}

/* Hover en Bento Cards con colores diferenciados por tecnología */
.about-adn__grid > div:hover {
    transform: translateY(-6px);
}

/* Tarjeta 1 (Infraestructura) - Hover Naranja */
.about-adn__grid > div:nth-child(1):hover {
    border-color: rgba(255, 157, 0, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 157, 0, 0.12);
}

/* Tarjeta 2 (Desarrollo) - Hover Naranja */
.about-adn__grid > div:nth-child(2):hover {
    border-color: rgba(255, 157, 0, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 157, 0, 0.12);
}

/* Tarjeta 3 (Cloud) - Hover Naranja/Azul */
.about-adn__grid > div:nth-child(3):hover {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(59, 130, 246, 0.12);
}

/* Tarjeta 4 (Inteligencia Artificial) - Hover Morado Neón */
.about-adn__grid > div:nth-child(4):hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(168, 85, 247, 0.12);
}

/* Tarjeta 5 (Ciberseguridad Activa) - Hover Azul Eléctrico */
.about-adn__grid > div:nth-child(5):hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(37, 99, 235, 0.12);
}

/* Tarjeta 6 (Visión de Negocio / Consultoría IT) - Hover Turquesa */
.about-adn__grid > div:nth-child(6):hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(6, 182, 212, 0.12);
}


/* --- 5. CTA SECTION --- */
.about-cta-section {
    padding: 6rem 0 10rem;
}

.about-cta__card {
    position: relative;
    background: rgba(13, 20, 35, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.about-cta__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 157, 0, 0.05) 0%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.about-cta__content {
    position: relative;
    z-index: 2;
    max-width: 42rem;
    margin: 0 auto;
}

.about-cta__title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.about-cta__desc {
    color: #94a3b8;
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.about-cta__btn {
    display: inline-block;
    padding: 1.15rem 2.5rem;
    background: #ff9d00;
    color: #05070a;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 157, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-cta__btn:hover {
    background: #ffd399;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 157, 0, 0.35);
}

.about-cta__btn:active {
    transform: translateY(0);
}


/* ==========================================================================
   MEDIA QUERIES (Responsividad)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Bento Grid a 2 columnas en Tablets */
    .about-adn__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .bento-card {
        min-height: 340px;
    }
}

@media (max-width: 768px) {
    /* Bento Grid a 1 columna en Móviles */
    .about-adn__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .bento-card {
        min-height: 300px;
    }
}

@media (max-width: 991px) {
    /* Terminal Historia */
    .terminal-body {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .terminal-console {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding: 1.5rem;
    }
    
    .terminal-lines {
        max-height: 140px;
    }
    
    /* El Selector de años se convierte en Carrusel Horizontal con Scroll */
    .timeline-cards-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        gap: 0.75rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 157, 0, 0.2) transparent;
        width: 100%;
    }
    
    .timeline-cards-grid::-webkit-scrollbar {
        height: 4px;
    }
    .timeline-cards-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    .timeline-cards-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 157, 0, 0.25);
        border-radius: 2px;
    }
    
    .year-card {
        flex-shrink: 0;
        width: 160px;
        scroll-snap-align: start;
        min-height: auto;
        padding: 1rem;
    }
    
    .year-card:hover {
        transform: none;
    }
    
    .terminal-inspector {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 10rem 0 7rem;
    }
    
    .about-history-section,
    .about-adn-section,
    .about-insights-section,
    .about-cta-section {
        padding: 5rem 0;
    }
    
    .about-insights__header {
        margin-bottom: 2.5rem;
    }
    
    .about-insights__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .insight-card__media {
        height: 220px;
    }
    
    .about-cta__card {
        padding: 4rem 2rem;
    }
}

@media (max-width: 480px) {
    .about-hero {
        padding: 8rem 0 5rem;
    }
    
    .about-hero__badge {
        margin-bottom: 1.25rem;
    }
    
    .about-hero__desc {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .about-history__header {
        margin-bottom: 3rem;
    }
    
    .terminal-header {
        padding: 0.75rem 1rem;
    }
    
    .terminal-title {
        display: none;
    }
    
    .terminal-console {
        padding: 1.25rem;
    }
    
    .terminal-lines {
        font-size: 0.75rem;
    }
    
    .terminal-inspector {
        padding: 1.25rem;
    }
    
    .inspector-panel-title {
        font-size: 1.15rem;
    }
    
    .inspector-panel-text {
        font-size: 0.85rem;
    }
    
    .bento-card {
        padding: 0;
    }
    
    .bento-card__content {
        margin: 1rem;
        padding: 1.25rem;
        min-height: auto;
    }
    
    .about-cta__card {
        padding: 3rem 1.5rem;
    }
}
