/* ============================================================
   Bytex — Quiénes Somos (Home)
   File: assets/css/quienes-home.css

   Tamaños de texto desde la escala global (--bytex-fs-*).
   ============================================================ */

/* ============================================================
   Container de la sección
   ============================================================ */
.bytex-quienes {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    border-bottom: 1px solid var(--bytex-border);
}

/* Grid sutil de fondo */
.bytex-quienes__bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--bytex-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--bytex-border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.25;
    mask-image: radial-gradient(ellipse at 70% 50%, #000 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 25%, transparent 75%);
    pointer-events: none;
}

/* ============================================================
   Inner
   ============================================================ */
.bytex-quienes__inner {
    position: relative;
    z-index: 2;
    max-width: var(--bytex-container);
    margin: 0 auto;
    padding: 0 var(--bytex-container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ============================================================
   Lado izquierdo
   ============================================================ */
.bytex-quienes__left {
    position: relative;
}

.bytex-quienes__eyebrow {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bytex-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.bytex-quienes__eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--bytex-accent);
    display: inline-block;
}

.bytex-quienes__title {
    font-family: var(--bytex-font-heading);
    font-weight: 700;
    font-size: var(--bytex-fs-h2);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--bytex-text);
    margin: 0 0 24px;
    text-transform: uppercase;
}
.bytex-quienes__title-accent {
    color: var(--bytex-accent);
}

.bytex-quienes__sub {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-body);
    line-height: 1.6;
    color: var(--bytex-text-2);
    margin: 0 0 36px;
    max-width: 540px;
}

/* ============================================================
   Lista de pilares
   ============================================================ */
.bytex-quienes__pilares {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    border-top: 1px solid var(--bytex-border);
}

.bytex-quienes__pilar {
    display: grid;
    grid-template-columns: 50px 1fr 2fr;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--bytex-border);
    transition: border-color .2s ease;
}
.bytex-quienes__pilar:hover {
    border-bottom-color: var(--bytex-accent);
}

.bytex-quienes__pilar-num {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-eyebrow);
    color: var(--bytex-accent);
    letter-spacing: 0.1em;
}

.bytex-quienes__pilar-title {
    font-family: var(--bytex-font-heading);
    font-size: var(--bytex-fs-body);
    font-weight: 700;
    color: var(--bytex-text);
    text-transform: uppercase;
    letter-spacing: -0.005em;
}

.bytex-quienes__pilar-desc {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-sm);
    line-height: 1.5;
    color: var(--bytex-text-2);
}

/* ============================================================
   CTA
   ============================================================ */
.bytex-quienes__cta {
    display: flex;
    gap: 12px;
}

/* ============================================================
   Lado derecho: visual con número grande
   ============================================================ */
.bytex-quienes__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    max-width: 560px;
    width: 100%;
    justify-self: end;
    border: 1px solid var(--bytex-border);
    background: var(--bytex-panel);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    isolation: isolate;
}

/* Capa de imagen de fondo */
.bytex-quienes__visual-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bytex-quienes__visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.8) brightness(0.9);
}
.bytex-quienes__visual-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center,
            rgba(10, 11, 13, calc(var(--bytex-image-overlay) * 0.25)) 0%,
            rgba(10, 11, 13, calc(var(--bytex-image-overlay) * 0.7)) 70%,
            rgba(10, 11, 13, calc(var(--bytex-image-overlay) * 0.9)) 100%
        ),
        linear-gradient(
            135deg,
            rgba(0, 115, 232, 0.15) 0%,
            transparent 60%
        );
    pointer-events: none;
}

/* Glow detrás del número */
.bytex-quienes__visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--bytex-accent) 0%, transparent 60%);
    opacity: 0.18;
    filter: blur(40px);
    pointer-events: none;
    animation: bytex-quienes-glow-pulse 4s ease-in-out infinite;
}
@keyframes bytex-quienes-glow-pulse {
    0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.28; transform: translate(-50%, -50%) scale(1.08); }
}

/* Esquinas tipo mira */
.bytex-quienes__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 3;
    pointer-events: none;
}
.bytex-quienes__corner::before,
.bytex-quienes__corner::after {
    content: "";
    position: absolute;
    background: var(--bytex-accent);
}
.bytex-quienes__corner::before { width: 100%; height: 1px; }
.bytex-quienes__corner::after  { width: 1px; height: 100%; }

.bytex-quienes__corner--tl { top: -1px; left: -1px; }
.bytex-quienes__corner--tl::before { top: 0; left: 0; }
.bytex-quienes__corner--tl::after  { top: 0; left: 0; }

.bytex-quienes__corner--tr { top: -1px; right: -1px; }
.bytex-quienes__corner--tr::before { top: 0; right: 0; }
.bytex-quienes__corner--tr::after  { top: 0; right: 0; }

.bytex-quienes__corner--bl { bottom: -1px; left: -1px; }
.bytex-quienes__corner--bl::before { bottom: 0; left: 0; }
.bytex-quienes__corner--bl::after  { bottom: 0; left: 0; }

.bytex-quienes__corner--br { bottom: -1px; right: -1px; }
.bytex-quienes__corner--br::before { bottom: 0; right: 0; }
.bytex-quienes__corner--br::after  { bottom: 0; right: 0; }

/* Contenido central */
.bytex-quienes__visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Cifra decorativa: no forma parte de la escala de lectura, es una
   pieza gráfica dentro del visual. Va en rem propio para que escale
   con el navegador sin depender de los tokens de contenido. */
.bytex-quienes__visual-number {
    font-family: var(--bytex-font-heading);
    font-size: clamp(7rem, 14vw, 11rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--bytex-text);
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 16px;
    text-shadow: 0 0 60px rgba(35, 87, 165, 0.4);
}

.bytex-quienes__visual-divider {
    width: 48px;
    height: 1px;
    background: var(--bytex-accent);
    margin-bottom: 16px;
}

.bytex-quienes__visual-label {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-sm);
    color: var(--bytex-text);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bytex-quienes__visual-sub {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-sm);
    color: var(--bytex-text-2);
}

/* ============================================================
   Texto corto (WYSIWYG): controlar los <p> que genera wpautop
   ============================================================ */
.bytex-quienes__sub p {
    margin: 0 0 12px;
}
.bytex-quienes__sub p:last-child {
    margin-bottom: 0;
}
.bytex-quienes__sub strong {
    color: var(--bytex-text);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .bytex-quienes {
        padding: 80px 0;
    }
    .bytex-quienes__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .bytex-quienes__visual {
        max-width: 420px;
        justify-self: center;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .bytex-quienes {
        padding: 64px 0;
    }
    .bytex-quienes__pilar {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
        gap: 4px 16px;
    }
    .bytex-quienes__pilar-num {
        grid-row: 1 / 3;
    }
    .bytex-quienes__pilar-title {
        grid-column: 2;
    }
    .bytex-quienes__pilar-desc {
        grid-column: 2;
    }
    .bytex-quienes__visual {
        padding: 32px;
    }
}