:root {
    --text-sm: .8125rem;
    --ink: #24185a;
    --white: #ffffff;
    --text: #211632;
    --muted: #625970;
    --blue: #7543d6;
    --blue-dark: #5d31b8;
    /* Fondos del modo claro: lilas cálidos (violeta con un toque rosado), monocromáticos como el modo oscuro y sin blanco: las tarjetas son un lila un poco más saturado que el fondo, con borde para separarse */
    --sky: #eadff1;
    --mist: #f3ebf6;
    --line: #d9c6e8;
    --rule: #c9b2de;
    --decoration: #9b7be8;
    --field-border: #857a9c;
    --surface: #ecdff4;
    --plans-bg: linear-gradient(180deg, #f1e7f6 0%, #eadff1 100%);
    --chrome-bg: var(--mist);
    --chrome-text: var(--muted);
    --chrome-link: var(--blue);
    --chrome-border: var(--line);
    --feature-bg: linear-gradient(145deg, #efe7ff 0%, #cdb9f6 100%);
    --feature-border: #7543d6;
    --feature-heading: #211632;
    --feature-copy: #46385f;
    --feature-rule: rgba(117, 67, 214, .35);
    --feature-detail-border: #cdbdf1;
    --availability-bg: linear-gradient(145deg, #bea2f1, #dac8f7);
    --availability-text: #211632;
    --availability-accent: #5d31b8;
    --availability-copy: #4a3d63;
    --availability-muted: #51466a;
    --availability-line: #b49ceb;
    --radius: 1.25rem;
    --content: 75rem;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --text: #f4f0ff;
    --muted: #b6aecf;
    --blue: #9b6dff;
    --blue-dark: #7c4ff0;
    --sky: #18112b;
    --mist: #100b1d;
    --line: #2f2549;
    --rule: #2f2549;
    --decoration: #b9a0ff;
    --field-border: #7a6e9e;
    --surface: #211938;
    --plans-bg: var(--surface);
    --feature-heading: #ffffff;
    --feature-copy: #e6dcff;
    --feature-rule: rgba(230, 220, 255, .4);
    --feature-detail-border: #3e3066;
    --availability-bg: linear-gradient(145deg, #4a2b96, #18112b);
    --availability-text: #ffffff;
    --availability-accent: #d9c9ff;
    --availability-copy: #e6dcff;
    --availability-muted: #d6cbf2;
    --availability-line: #7a55d9;
    color-scheme: dark;
}

:root[data-theme="dark"] .plan-card-featured {
    background: linear-gradient(145deg, #5b34b8, #241747);
    border-color: #9b6dff;
}

/* Contorno visible al navegar con teclado (accesibilidad) */
:focus-visible {
    outline: .15rem solid var(--blue);
    outline-offset: .2rem;
}

* {
    box-sizing: border-box;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--mist);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* "Saltar al contenido": oculto hasta que se llega con el teclado */
.skip-link {
    background: var(--blue);
    border-radius: 0 0 .75rem .75rem;
    color: var(--white);
    font-family: "Manrope", sans-serif;
    font-size: .875rem;
    font-weight: 700;
    left: 1rem;
    padding: .75rem 1.1rem;
    position: absolute;
    top: 0;
    transform: translateY(-120%);
    z-index: 60;
}

.skip-link:focus {
    transform: translateY(0);
}

:root[data-theme="dark"] .skip-link {
    color: #100b1d;
}

main:focus {
    outline: none;
}

/* Lo que tiene el atributo hidden queda oculto aunque su clase le dé otro display (por ejemplo, .button) */
[hidden] {
    display: none !important;
}

/* Fondo de la página: para que no se vea tan liso, sin dibujos ni texturas.
   1. Degradé muy suave: el lila se oscurece de a poco desde arriba hasta el contacto (--page-end).
   2. Franja alternada: "Cómo te acompaño" y "Proyectos de muestra" llevan un velo más oscuro (--band),
      de borde a borde, así las secciones se alternan y se distingue dónde empieza cada bloque.
   Siempre en la gama lila (modo claro sin blancos). */
:root {
    --page-end: #e9ddf1;
    --band: rgba(117, 67, 214, .09);
}

:root[data-theme="dark"] {
    --page-end: #1a1230;
    --band: rgba(155, 109, 255, .08);
}

body {
    background: linear-gradient(180deg, var(--mist) 0%, var(--page-end) 100%);
}

/* La franja ocupa todo el ancho de la pantalla aunque la sección tenga ancho máximo */
.why.section-shell,
.samples.section-shell {
    box-shadow: 0 0 0 100vmax var(--band);
    clip-path: inset(0 -100vmax);
    background: var(--band);
}
