/* ═══════════════════════════════════════════════════════════════
   NOXORA — Selector `/` con dirección visual de referencia.
   Consume el Design System (fondos, superficies, texto) y conserva
   sus acentos particulares (borde violeta, púrpuras, sombra).
   Alcance visual limitado a `.ref-home`.
   ═══════════════════════════════════════════════════════════════ */
.ref-home {
    --ref-surface: color-mix(in srgb, var(--nx-surface-elevated) 78%, transparent);
    --ref-surface-hover: color-mix(in srgb, var(--nx-surface-elevated) 88%, var(--nx-primary));
    --ref-border: rgba(151, 111, 255, .22);
    --ref-text: var(--nx-text);
    --ref-muted: var(--nx-text-muted);
    --ref-purple: #8b45ff;
    --ref-purple-light: #b65cff;
    --ref-shadow: 0 20px 70px rgba(80, 32, 180, .13);
}
html[data-theme="light"] .ref-home {
    --ref-surface: color-mix(in srgb, var(--nx-surface) 88%, transparent);
    --ref-surface-hover: var(--nx-surface);
    --ref-border: rgba(105, 69, 180, .17);
    --ref-text: var(--nx-text);
    --ref-muted: var(--nx-text-muted);
    --ref-purple: #7139e8;
    --ref-purple-light: #963df2;
    --ref-shadow: 0 20px 60px rgba(50, 30, 100, .08);
}

/* ── HERO ─────────────────────────────────────────────────── */
.ref-home .ref-hero {
    min-height: 410px;
    padding: 68px 0 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    position: relative;
    color: var(--ref-text);
}
.ref-home .ref-hero-content { position: relative; z-index: 2; }
.ref-home .ref-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 17px;
    border: 1px solid rgba(157, 77, 255, .55);
    border-radius: 30px;
    background: rgba(116, 48, 205, .12);
    font-size: 14px;
    font-weight: 650;
    color: #e6d9ff;
}
html[data-theme="light"] .ref-home .ref-eyebrow { color: #7139e8; }
.ref-home .ref-eyebrow span { color: #d18aff; font-size: 19px; }
.ref-home .ref-hero-title {
    margin: 25px 0 23px;
    font-size: clamp(46px, 5.1vw, 76px);
    line-height: .99;
    letter-spacing: -5px;
    font-weight: 900;
    color: var(--ref-text);
}
.ref-home .ref-highlight { position: relative; white-space: nowrap; display: inline-block; line-height: 1.05; padding: 0 .06em .07em 0; margin: 0 -.06em -.07em 0; }
.ref-home .ref-highlight::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(90deg, #963dff, #d05cff);
    transform: rotate(-2deg);
}
.ref-home .ref-hero-description { max-width: 520px; color: var(--ref-muted); font-size: 20px; line-height: 1.65; }

/* ── ILUSTRACIÓN (imagen real con transparencia) ─────────────── */
.ref-home .ref-hero-art {
    position: relative;
    display: grid;
    place-items: center;
}
.ref-home .ref-hero-img {
    display: block;
    width: min(480px, 100%);
    height: auto;
    filter: drop-shadow(0 24px 45px rgba(114, 39, 255, .35));
}

/* ── TARJETAS DE SERVICIO ─────────────────────────────────── */
.ref-home .ref-services { padding: 20px 0 0; }
.ref-home .ref-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ref-home .ref-service-card {
    --ref-accent: #963aff;
    min-height: 175px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 26px 24px;
    border: 1px solid var(--ref-border);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), transparent 55%), var(--ref-surface);
    box-shadow: var(--ref-shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--ref-text);
    transition: transform .25s, border-color .25s, background .25s;
}
.ref-home .ref-service-card::after {
    content: "";
    position: absolute;
    height: 4px;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--ref-accent), transparent);
}
.ref-home .ref-service-card:hover {
    transform: translateY(-7px);
    border-color: var(--ref-accent);
    background-color: var(--ref-surface-hover);
}
.ref-home .ref-card-codes { --ref-accent: #963aff; }
.ref-home .ref-card-accounts { --ref-accent: #4786ff; }
.ref-home .ref-card-web { --ref-accent: #d94bff; }
.ref-home .ref-service-icon {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ref-border);
    border-radius: 19px;
    color: white;
    background: linear-gradient(145deg, rgba(143, 65, 255, .38), rgba(73, 40, 145, .25));
}
.ref-home .ref-service-icon svg {
    width: 37px;
    height: 37px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ref-home .ref-service-info { flex: none; min-width: 0; padding-right: 52px; }
.ref-home .ref-service-info h2 { margin: 8px 0 18px; font-size: 23px; font-weight: 800; letter-spacing: -.8px; color: var(--ref-text); }
.ref-home .ref-service-info p { margin: 0; color: var(--ref-muted); font-size: 15px; line-height: 1.65; }
.ref-home .ref-service-card:focus-visible { outline: 2px solid var(--ref-purple-light); outline-offset: 4px; }
.ref-home .ref-card-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(140, 95, 255, .17);
    color: var(--ref-text);
    font-size: 27px;
    transition: .2s;
}
.ref-home .ref-service-card:hover .ref-card-arrow { background: var(--ref-accent); transform: translateX(3px); }

/* ── BENEFICIOS ───────────────────────────────────────────── */
.ref-home .ref-benefits {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 45px 0;
    color: var(--ref-text);
}
.ref-home .ref-benefit { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.ref-home .ref-benefit svg { width: 27px; height: 27px; stroke: #c18aff; fill: none; stroke-width: 2; }
.ref-home .ref-benefit-divider { height: 27px; width: 1px; background: var(--ref-border); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1000px) {
    .ref-home .ref-service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ref-home .ref-service-card { padding: 22px 18px; gap: 15px; }
    .ref-home .ref-service-icon { flex-basis: 60px; width: 60px; height: 60px; }
    .ref-home .ref-service-info h2 { font-size: 19px; }
}
@media (max-width: 760px) {
    .ref-home .ref-hero { grid-template-columns: 1fr; padding: 65px 0 25px; gap: 5px; text-align: center; }
    .ref-home .ref-hero-title { font-size: clamp(45px, 10vw, 66px); letter-spacing: -3px; }
    .ref-home .ref-hero-description { margin: 25px auto; font-size: 17px; }
    .ref-home .ref-hero-img { width: min(330px, 78%); }
    .ref-home .ref-service-grid { grid-template-columns: 1fr; gap: 15px; }
    .ref-home .ref-service-card { min-height: 145px; padding: 23px; }
    .ref-home .ref-service-info h2 { font-size: 21px; }
    .ref-home .ref-benefits { gap: 20px; padding: 38px 0; }
    .ref-home .ref-benefit-divider { display: none; }
}
@media (max-width: 380px) {
    .ref-home .ref-service-card { gap: 13px; padding: 17px; }
    .ref-home .ref-service-icon { flex-basis: 52px; width: 52px; height: 52px; }
    .ref-home .ref-service-info h2 { font-size: 18px; }
    .ref-home .ref-service-info p { font-size: 13px; }
    .ref-home .ref-card-arrow { width: 36px; height: 36px; top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ref-home .ref-service-card, .ref-home .ref-card-arrow { transition-duration: .01ms !important; }
}
