/* ============================================================
   Bytex — Página "Ser distribuidor" (interior)
   File: assets/css/distribuidores.css

   Hero a dos columnas (texto + imagen, mismo patrón que
   quienes-somos.css, servicios.css y contacto.css) + intro
   institucional + beneficios en dos listas + niveles de la red como
   cards + cierre con CTA a WhatsApp.

   Escalas, gaps y paddings alineados con quienes-somos.css y
   servicios.css (las otras páginas interiores).
   Decoración: circuito SVG (bytex-circuit.css) sobre fondo plano.
   Tamaños de texto desde la escala global (--bytex-fs-*).
   ============================================================ */

.bytex-dist {
    position: relative;
    background: var(--bytex-bg);
    color: var(--bytex-text);
}

.bytex-dist__inner {
    max-width: var(--bytex-container);
    margin: 0 auto;
    padding: 0 var(--bytex-container-padding);
    position: relative;
    z-index: 1; /* por encima del circuito */
}

/* Las secciones contienen la decoración que sangra desde el borde */
.bytex-dist__hero,
.bytex-dist__intro,
.bytex-dist__ofrecemos,
.bytex-dist__niveles,
.bytex-dist__cierre {
    position: relative;
    overflow: hidden;
}

/* ============================================================
   Eyebrows y títulos compartidos
   ============================================================ */
.bytex-dist__eyebrow,
.bytex-dist__section-eyebrow {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bytex-accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bytex-dist__eyebrow::before,
.bytex-dist__section-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--bytex-accent);
    display: inline-block;
}

.bytex-dist__section-title {
    font-family: var(--bytex-font-heading);
    font-weight: 800;
    font-size: var(--bytex-fs-h2);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--bytex-text);
    margin: 14px 0 0;
}

.bytex-dist__section-head {
    margin-bottom: 48px;
}

.bytex-dist__section-intro {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-body);
    line-height: 1.6;
    color: var(--bytex-text-2);
    margin: 18px 0 0;
    max-width: 560px;
}

.bytex-dist__accent { color: var(--bytex-accent); }

/* ============================================================
   HERO DE PÁGINA (texto + imagen al costado)
   ============================================================ */
.bytex-dist__hero {
    padding: clamp(70px, 12vh, 140px) 0 clamp(56px, 9vh, 100px);
    border-bottom: 1px solid var(--bytex-border);
}

.bytex-dist__hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.bytex-dist__hero-title {
    font-family: var(--bytex-font-heading);
    font-weight: 800;
    font-size: var(--bytex-fs-h1-int);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--bytex-text);
    margin: 20px 0 0;
}

/* Sin max-width: el ancho lo define la columna del grid */
.bytex-dist__hero-sub {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-lg);
    line-height: 1.6;
    color: var(--bytex-text-2);
    margin: 24px 0 0;
}

/* ----- Visual del hero ----- */
.bytex-dist__hero-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--bytex-border);
    background: var(--bytex-panel);
    overflow: hidden;
}
.bytex-dist__hero-media {
    position: absolute;
    inset: 0;
}
.bytex-dist__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.85) brightness(0.92);
}
.bytex-dist__hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,115,232,0.12) 0%, transparent 55%);
    pointer-events: none;
}

/* Sin imagen cargada: hueco marcado, mismo espacio reservado */
.bytex-dist__hero-media.is-empty {
    background:
        linear-gradient(135deg, var(--bytex-panel), transparent 60%),
        var(--bytex-bg);
}
.bytex-dist__hero-media.is-empty::after {
    background:
        linear-gradient(to bottom right, transparent calc(50% - 1px), var(--bytex-border) 50%, transparent calc(50% + 1px)),
        linear-gradient(to bottom left,  transparent calc(50% - 1px), var(--bytex-border) 50%, transparent calc(50% + 1px));
    opacity: .5;
}

/* ============================================================
   INTRO INSTITUCIONAL
   ============================================================ */
.bytex-dist__intro {
    padding: clamp(56px, 9vh, 100px) 0;
    border-bottom: 1px solid var(--bytex-border);
}

.bytex-dist__intro-body {
    max-width: 820px;
}

/* Párrafo destacado, mismo tratamiento que el lead de quiénes somos */
.bytex-dist__intro-lead {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-lg);
    line-height: 1.5;
    font-weight: 500;
    color: var(--bytex-text);
    margin: 0;
    padding-left: 20px;
    border-left: 2px solid var(--bytex-accent);
}

.bytex-dist__intro-body p:not(.bytex-dist__intro-lead) {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-body);
    line-height: 1.75;
    color: var(--bytex-text-2);
    margin: 28px 0 0;
}

/* ============================================================
   QUÉ OFRECEMOS (dos listas)
   ============================================================ */
.bytex-dist__ofrecemos {
    padding: clamp(56px, 9vh, 100px) 0;
    border-bottom: 1px solid var(--bytex-border);
}

.bytex-dist__listas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bytex-dist__lista-bloque {
    padding: 32px 28px;
    background: var(--bytex-panel);
    border: 1px solid var(--bytex-border);
}

.bytex-dist__lista-title {
    font-family: var(--bytex-font-heading);
    font-size: var(--bytex-fs-lg);
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--bytex-text);
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--bytex-border);
}

.bytex-dist__lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bytex-dist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-sm);
    line-height: 1.6;
    color: var(--bytex-text-2);
}

.bytex-dist__check {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    color: var(--bytex-accent);
}

/* ============================================================
   NIVELES DE LA RED
   ============================================================ */
.bytex-dist__niveles {
    padding: clamp(56px, 9vh, 100px) 0;
    border-bottom: 1px solid var(--bytex-border);
}

.bytex-dist__niveles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bytex-dist__nivel {
    position: relative;
    padding: 32px 28px;
    background: var(--bytex-panel);
    border: 1px solid var(--bytex-border);
    transition: border-color .2s ease, transform .2s ease;
}
.bytex-dist__nivel:hover {
    border-color: var(--bytex-accent);
    transform: translateY(-3px);
}

.bytex-dist__nivel-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.bytex-dist__nivel-num {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-eyebrow);
    letter-spacing: 0.1em;
    color: var(--bytex-accent);
}

.bytex-dist__nivel-tag {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-eyebrow);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bytex-subaccent);
    border: 1px solid var(--bytex-border);
    padding: 5px 10px;
}

.bytex-dist__nivel-nombre {
    font-family: var(--bytex-font-heading);
    font-size: var(--bytex-fs-h3);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--bytex-text);
    margin: 0 0 12px;
    transition: color .2s ease;
}
.bytex-dist__nivel:hover .bytex-dist__nivel-nombre {
    color: var(--bytex-accent);
}

.bytex-dist__nivel-desc {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-sm);
    line-height: 1.6;
    color: var(--bytex-text-2);
    margin: 0 0 28px;
}

/* ----- Requisitos ----- */
.bytex-dist__nivel-reqs {
    padding-top: 24px;
    border-top: 1px solid var(--bytex-border);
}

.bytex-dist__reqs-title {
    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-text-2);
    margin: 0 0 16px;
}

.bytex-dist__reqs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bytex-dist__req {
    position: relative;
    padding-left: 18px;
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-sm);
    line-height: 1.6;
    color: var(--bytex-text-2);
}
.bytex-dist__req::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 1px;
    background: var(--bytex-accent);
}

/* ============================================================
   CIERRE + CTA
   Sin circuito (las cuatro variantes ya se usaron en las secciones
   anteriores): la decoración acá es el glow de fondo.
   ============================================================ */
.bytex-dist__cierre {
    padding: clamp(56px, 9vh, 100px) 0 clamp(70px, 11vh, 120px);
}

.bytex-dist__cierre::before {
    content: "";
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 40vw;
    background: radial-gradient(ellipse, var(--bytex-accent) 0%, transparent 60%);
    opacity: 0.07;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.bytex-dist__cierre-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.bytex-dist__cierre-title {
    font-family: var(--bytex-font-heading);
    font-weight: 800;
    font-size: var(--bytex-fs-h2);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--bytex-text);
    margin: 0 0 24px;
}

.bytex-dist__cierre-texto {
    font-family: var(--bytex-font-body);
    font-size: var(--bytex-fs-body);
    line-height: 1.7;
    color: var(--bytex-text-2);
    margin: 0 auto;
    max-width: 620px;
}

.bytex-dist__cierre-action {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ============================================================
   Esquinas tipo mira
   En las cards aparecen en hover; en el visual del hero quedan fijas
   (mismo criterio que las otras páginas interiores).
   ============================================================ */
.bytex-dist__corner {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
    z-index: 2;
}
.bytex-dist__nivel:hover .bytex-dist__corner,
.bytex-dist__hero-visual .bytex-dist__corner { opacity: 1; }
.bytex-dist__corner::before,
.bytex-dist__corner::after {
    content: "";
    position: absolute;
    background: var(--bytex-accent);
}
.bytex-dist__corner::before { width: 100%; height: 1px; }
.bytex-dist__corner::after  { width: 1px; height: 100%; }
.bytex-dist__corner--tl { top: 8px; left: 8px; }
.bytex-dist__corner--tl::before { top: 0; left: 0; }
.bytex-dist__corner--tl::after  { top: 0; left: 0; }
.bytex-dist__corner--br { bottom: 8px; right: 8px; }
.bytex-dist__corner--br::before { bottom: 0; right: 0; }
.bytex-dist__corner--br::after  { bottom: 0; right: 0; }

/* ============================================================
   Movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bytex-dist__nivel,
    .bytex-dist__nivel-nombre,
    .bytex-dist__corner {
        transition: none;
    }
    .bytex-dist__nivel:hover {
        transform: none;
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
    .bytex-dist__hero-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .bytex-dist__hero-visual {
        max-width: 480px;
    }
    .bytex-dist__listas,
    .bytex-dist__niveles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .bytex-dist__lista-bloque,
    .bytex-dist__nivel {
        padding: 26px 22px;
    }
    .bytex-dist__cierre-action .bytex-btn {
        width: 100%;
        justify-content: center;
    }
}