/* ============================================================
   TECH DETAILS – Estilos de tech-details.php
   ============================================================ */

/* ── Índice interno (TOC) ── */
.tech-toc {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    display: inline-block;
}

.tech-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
}

.tech-toc a {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition), opacity var(--transition);
}

.tech-toc a::before {
    content: '↓';
    font-size: 0.75rem;
    opacity: 0.6;
}

.tech-toc a:hover {
    color: #fff;
    opacity: 1;
}

/* ── Encabezado de cada sección técnica ── */
.tech-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    scroll-margin-top: 60px;
}

.tech-section+.tech-section {
    margin-top: 1rem;
}

.tech-section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tech-section-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(124, 124, 255, 0.2);
    letter-spacing: -0.03em;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.tech-section-header h2 {
    color: var(--h1);
    font-size: 1.75rem;
}

/* ── Contenido de sección ── */
.tech-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-content p {
    line-height: 1.75;
    color: var(--text);
}

.tech-content p strong {
    color: var(--h2);
    font-weight: 600;
}

/* ── Fila texto + imagen ── */
.tech-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.tech-row .tech-content {
    flex: 1;
    min-width: 0;
}

.tech-img {
    width: 50%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
    background: #1a1a1a;
}

/* ── Tags de tecnologías ── */
.tech-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-tag {
    display: inline-block;
    background: rgba(124, 124, 255, 0.1);
    border: 1px solid rgba(124, 124, 255, 0.28);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
}

/* ── Specs grid (GPU section) ── */
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tech-spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tech-spec-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.tech-spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--h1);
    font-variant-numeric: tabular-nums;
}

/* ── Features list (VR section) ── */
.tech-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.tech-feature-icon {
    font-size: 1rem;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
    opacity: 0.7;
}

.tech-feature strong {
    display: block;
    color: var(--h2);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.tech-feature p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* ── Estrategias de audio (2 columnas) ── */
.tech-strategies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.tech-strategy {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 1.25rem;
}

.tech-strategy h3 {
    color: var(--h2);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.tech-strategy p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
}

/* ============================================================
   RESPONSIVE – Tech Details
   ============================================================ */
@media (max-width: 768px) {
    .tech-section-number {
        font-size: 2rem;
    }

    .tech-section-header h2 {
        font-size: 1.35rem;
    }

    .tech-toc ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tech-strategies {
        grid-template-columns: 1fr;
    }

    .tech-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-row {
        flex-direction: column;
    }

    .tech-img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}

@media (min-width: 871px) and (max-width: 1000px) {
    .tech-img {
        aspect-ratio: 1/1;
    }
}

@media (min-width: 769px) and (max-width: 870px) {
    .tech-img {
        aspect-ratio: 2/3;
    }
}