/* Portada GDZ (index.php). Independiente de gdz.css. */

/* ── Tokens ───────────────────────────────────────────────────────── */
:root {
    --bg: #f6f6f8;
    --bg-soft: #efeff3;
    --surface: #ffffff;
    --surface-2: #f3f3f6;
    --line: rgba(15, 15, 25, 0.08);
    --line-strong: rgba(15, 15, 25, 0.14);
    --text: #121218;
    --muted: rgba(18, 18, 24, 0.62);
    --faint: rgba(18, 18, 24, 0.42);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.14);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 32px 64px -24px rgba(0, 0, 0, 0.28);
    --btn-dark-bg: #121218;
    --btn-dark-fg: #ffffff;
    --header-bg: rgba(246, 246, 248, 0.78);
    --radius: 20px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: light;
}

/* Colores de marca por app (los mismos de gdz.css) */
[data-app="cf"] {
    --accent: #c2410c;
}

[data-app="du"] {
    --accent: #c8102e;
}

[data-app="mt"] {
    --accent: #0e7490;
}

[data-app="ad"] {
    --accent: #1d4ed8;
}

[data-app="ir"] {
    --accent: #7e22ce;
}

[data-app="fc"] {
    --accent: #475569;
}

[data-app="sm"] {
    --accent: #4338ca;
}

[data-app="nv"] {
    --accent: #ea580c;
}

[data-app="fs"] {
    --accent: #b91c1c;
}

[data-app="support"] {
    --accent: #475569;
}

/* Tono del acento apto para texto sobre fondo claro */
[data-app] {
    --accent-ink: color-mix(in srgb, var(--accent) 88%, black);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 6px;
}

[id] {
    scroll-margin-top: 84px;
}

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--btn-dark-bg);
    color: var(--btn-dark-fg);
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

/* ── Botones ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
}

.btn-primary,
.btn-dark {
    background: var(--btn-dark-bg);
    color: var(--btn-dark-fg);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-dark:hover {
    filter: brightness(1.15);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    border-color: var(--faint);
}

.btn-accent,
.btn-kofi {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 12px 28px -8px color-mix(in srgb, var(--accent) 55%, transparent);
}

.btn-accent:hover,
.btn-kofi:hover {
    filter: brightness(1.08);
}

.heart {
    color: #f43f5e;
    font-size: 1.05em;
    line-height: 1;
}

.btn-kofi .heart {
    color: #fff;
}

/* ── Cabecera ─────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.brand img {
    width: 30px;
    height: 30px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Tooltip bajo un botón de la cabecera. Alineado a su borde derecho para no
   salirse de la pantalla en móvil; en táctil no se muestra (no hay hover). */
.has-tip {
    position: relative;
}

.tip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-width: 240px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--btn-dark-bg);
    color: var(--btn-dark-fg);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}

/* Flechita apuntando al botón */
.tip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 22px;
    border: 6px solid transparent;
    border-bottom-color: var(--btn-dark-bg);
}

.has-tip:focus-visible .tip {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

@media (hover: hover) {
    .has-tip:hover .tip {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.15s ease 0.25s, transform 0.15s ease 0.25s, visibility 0s linear 0.25s;
    }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 72px 0 36px;
    overflow: hidden;
}

/* Rejilla de puntos muy tenue, que se funde hacia abajo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
    background-size: 24px 24px;
    /* Gradiente moderno en -webkit-mask-image es válido; el inspector del IDE va atrasado */
    /*noinspection CssInvalidPropertyValue*/
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    margin-bottom: 28px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-pill:hover {
    color: var(--text);
    border-color: var(--faint);
}

.pill-tag {
    padding: 2px 9px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.arrow {
    display: inline-block;
    transition: transform 0.2s var(--ease);
}

a:hover .arrow {
    transform: translateX(3px);
}

.hero h1 {
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.grad {
    background: linear-gradient(95deg, #e11d48 0%, #ea580c 45%, #7e22ce 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 520px;
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    text-wrap: pretty;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* Collage de capturas */
.hero-visual {
    position: relative;
    aspect-ratio: 1.12 / 1;
}

.hero-visual .glow {
    position: absolute;
    inset: 8% 4%;
    border-radius: 50%;
    background: radial-gradient(closest-side at 35% 40%, rgba(234, 88, 12, 0.28), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(126, 34, 206, 0.24), transparent),
    radial-gradient(closest-side at 50% 90%, rgba(225, 29, 72, 0.18), transparent);
    filter: blur(20px);
}

.hv {
    position: absolute;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    outline: 1px solid var(--line);
}

/* Siete capturas en capas, de atrás (Inkrease, NVR) hacia delante; CustomFolder
   va por encima de todas.
   Posiciones en % del contenedor, que mantiene la proporción. */
.hv-ir {
    width: 50%;
    top: 3%;
    left: 0;
    z-index: 1;
}

.hv-nv {
    width: 58%;
    top: -5%;
    right: 0;
    z-index: 2;
}

.hv-cf {
    width: 44%;
    top: 47%;
    left: 0;
    z-index: 7;
}

.hv-fs {
    width: 50%;
    top: 24%;
    left: 34%;
    z-index: 4;
}

.hv-mt {
    width: 24%;
    top: 29%;
    right: -5%;
    z-index: 5;
}

.hv-sm {
    width: 38%;
    top: 63%;
    right: 0;
    z-index: 5;
    border-radius: 12px;
}

.hv-fc {
    width: 46%;
    top: 81%;
    left: 16%;
    z-index: 6;
    border-radius: 12px;
}

/* ── Secciones ────────────────────────────────────────────────────── */
.section {
    padding: 96px 0 0;
}

.section-last {
    padding-bottom: 104px;
}

/* Carrusel pegado al hero, sin el espacio superior de las demás secciones */
.section.section-tight {
    padding-top: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.section-head.center {
    justify-content: center;
    text-align: center;
    margin-bottom: 44px;
}

/* Sección de solo título (Why GDZ Software): sin margen bajo el encabezado */
.section-head.center:last-child {
    margin-bottom: 0;
}

.section-head h2 {
    margin-top: 10px;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.section-head p {
    margin-top: 10px;
    font-size: 17px;
    color: var(--muted);
}

/* ── Destacada ────────────────────────────────────────────────────── */
.featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
    padding: 44px 56px;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(160deg, var(--surface), color-mix(in srgb, var(--accent) 5%, var(--surface)));
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    box-shadow: var(--shadow-md);
}

.featured .eyebrow {
    color: var(--accent-ink);
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    to {
        transform: scale(3);
        opacity: 0;
    }
}

.featured-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.featured-title img {
    width: 56px;
    height: 56px;
    padding: 8px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.featured-title h2 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.featured-lead {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
}

.featured-lead strong {
    color: var(--text);
    font-weight: 600;
}

.checks {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    font-size: 15px;
}

.checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checks li::before {
    content: '';
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* Botón y, siempre debajo, los chips de requisitos: así quedan en el mismo
   sitio en todas las fichas, tengan 2 o 3 chips. */
.featured-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
}

/* Requisitos en formato corto (Windows 10/11 · .NET 8 · Portable) */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chips li {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
    white-space: nowrap;
}

/* Marco de proporción fija con fondo teñido del color de la app: capturas muy
   distintas (el reloj apaisado, el panel casi cuadrado) quedan centradas sin
   cambiar la altura de la ficha, y las pequeñas no se ven sueltas. */
.featured-shot {
    --pad: 28px;
    position: relative;
    aspect-ratio: 16 / 10.5;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, var(--surface-2)), color-mix(in srgb, var(--accent) 14%, var(--surface-2)));
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
}

.featured-shot img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: calc(100% - var(--pad) * 2);
    max-height: calc(100% - var(--pad) * 2);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    outline: 1px solid var(--line);
}

kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    background: var(--surface);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

/* ── Carrusel de fichas ───────────────────────────────────────────── */
/* Tiempo que cada ficha permanece a la vista antes de pasar a la siguiente */
.spotlight {
    --spot-ms: 10000ms;
}

/* Todas las fichas ocupan la misma celda: la pista toma la altura de la más
   alta y el cambio es un fundido, sin saltos de maquetación. */
.spot-track {
    display: grid;
}

.slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0s;
}

.slide .featured-copy > *,
.slide .featured-shot {
    transition: transform 0.7s var(--ease);
}

.slide:not(.is-active) .featured-copy > * {
    transform: translateY(10px);
}

.slide:not(.is-active) .featured-shot {
    transform: translateX(24px) scale(0.98);
}

.spot-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.spot-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Marcador de posición en una píldora, como los chips de requisitos */
.spot-count {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.spot-arrow,
.spot-play {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s var(--ease);
}

.spot-arrow:hover,
.spot-play:hover {
    border-color: var(--faint);
}

.spot-arrow:hover {
    transform: translateX(var(--nudge, 0));
}

.spot-arrow[data-dir="-1"] {
    --nudge: -2px;
}

.spot-arrow[data-dir="1"] {
    --nudge: 2px;
}

.spot-arrow svg,
.spot-play svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Botón de pausa, más grande y con un anillo que se completa en el tiempo de
   cada ficha: al terminar su animación, home.js pasa a la siguiente. Pausarlo
   detiene también el carrusel. Toma el color de la app activa. */
.spot-play {
    width: 36px;
    height: 36px;
}

.spot-play .spot-ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: rotate(-90deg);
    pointer-events: none;
}

.spot-ring circle {
    fill: none;
    stroke: var(--accent, var(--text));
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 141.4;
    stroke-dashoffset: 141.4;
    transition: stroke 0.4s ease;
}

.spot-ring.is-running circle {
    animation: spot-progress var(--spot-ms) linear forwards;
}

.spotlight.is-paused .spot-ring.is-running circle {
    animation-play-state: paused;
}

@keyframes spot-progress {
    to {
        stroke-dashoffset: 0;
    }
}

.spot-play .i-play {
    display: none;
    fill: currentColor;
}

.spotlight.is-stopped .spot-play .i-play {
    display: block;
}

.spotlight.is-stopped .spot-play .i-pause {
    display: none;
}

.js .spotlight:not(.is-ready) .spot-play,
.spotlight.is-static .spot-play {
    display: none;
}

/* ── Filtros ──────────────────────────────────────────────────────── */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.chip {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.chip:hover {
    color: var(--text);
}

.chip.is-on {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
}

/* ── Rejilla de apps ──────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cell[hidden] {
    display: none;
}

.app-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.app-card:hover,
.app-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 48px -20px color-mix(in srgb, var(--accent) 45%, transparent);
}

.app-card:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius);
}

.card-shot {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface-2)), color-mix(in srgb, var(--accent) 12%, var(--surface-2)));
    border-bottom: 1px solid var(--line);
}

/* Centrada en absoluto: los % de max-* no se resuelven dentro de una fila auto */
.card-shot img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: calc(100% - 44px);
    max-height: calc(100% - 44px);
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 16px 32px -12px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.card-shot img.is-fading {
    opacity: 0;
}

.app-card:hover .card-shot img {
    transform: translateY(-3px) scale(1.03);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px -4px rgba(225, 29, 72, 0.6);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 24px;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.card-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.card-titles h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.card-meta {
    display: block;
    font-size: 13px;
    color: var(--faint);
}

.card-desc {
    display: block;
    flex: 1 1 auto;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-ink);
}

/* ── Apoyo ────────────────────────────────────────────────────────── */
.support {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    padding: 40px 48px;
    border-radius: 28px;
    background: radial-gradient(80% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--surface);
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    box-shadow: var(--shadow-md);
}

.support-logo {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.support h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.support p {
    max-width: 620px;
    margin-top: 8px;
    color: var(--muted);
}

/* ── Pie ──────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 2fr 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--muted);
}

.footer-title {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.footer-apps ul {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 10px 40px;
}

.footer-more ul {
    display: grid;
    gap: 10px;
}

.site-footer li a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.15s ease;
}

.site-footer li a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--faint);
}

/* Enlace "Top": vuelve al principio de la página */
.to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    font-weight: 500;
    color: var(--muted);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.to-top:hover {
    color: var(--text);
    border-color: var(--faint);
}

.to-top span {
    display: inline-block;
    transition: transform 0.2s var(--ease);
}

.to-top:hover span {
    transform: translateY(-2px);
}

/* ── Animaciones ──────────────────────────────────────────────────── */
/* Entrada del hero: solo CSS, visible aunque falle el JS */
@media (prefers-reduced-motion: no-preference) {
    .rise {
        animation: rise 0.7s var(--ease) both;
        animation-delay: calc(var(--d, 0) * 70ms);
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(14px);
        }
    }

    /* Aparición al hacer scroll: solo si home.js está activo (clase en <html>) */
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.7s var(--ease);
        transition-delay: calc(var(--i, 0) * 70ms);
    }

    .js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }
}

/* ── Parallax al hacer scroll ─────────────────────────────────────── */
/* Animaciones ligadas al scroll, sin JS. Donde el navegador no las soporta, en
   pantallas estrechas o con "reducir movimiento" no hay efecto y todo queda
   quieto como antes. Se anima la propiedad "translate" (no "transform") para
   que se sume al hover de las tarjetas en lugar de pisarlo. */
/* PhpStorm aún no conoce las animaciones ligadas al scroll (animation-timeline,
   animation-range, scroll(), view()): son CSS válido, de ahí los noinspection. */
/*noinspection CssUnknownProperty,CssInvalidFunction*/
@supports (animation-timeline: scroll()) {
    @media (min-width: 861px) and (prefers-reduced-motion: no-preference) {

        /* 1. Collage del hero: cada captura sube a su propio ritmo en los
              primeros 800 px de scroll; las del fondo casi no se mueven. */
        .hv {
            animation: hv-depth linear both;
            /*noinspection CssUnknownProperty,CssInvalidFunction*/
            animation-timeline: scroll(root block);
            /*noinspection CssUnknownProperty*/
            animation-range: 0 800px;
        }

        .hv-ir {
            --depth: 16;
        }

        .hv-nv {
            --depth: 28;
        }

        .hv-mt {
            --depth: 44;
        }

        .hv-fs {
            --depth: 58;
        }

        .hv-sm {
            --depth: 70;
        }

        .hv-cf {
            --depth: 84;
        }

        .hv-fc {
            --depth: 100;
        }

        @keyframes hv-depth {
            to {
                translate: 0 calc(var(--depth, 40) * -1px);
            }
        }

        /* 2. Tarjetas de apps: la captura se desplaza dentro de su marco
              mientras la tarjeta cruza la pantalla, como vista por una ventana. */
        /* "overflow: hidden" convierte la tarjeta y el marco en contenedores de
           scroll y la línea de tiempo view() mediría contra ellos (nunca se
           mueven); "clip" recorta igual sin crear contenedor. */
        .app-card,
        .card-shot {
            overflow: clip;
        }

        .card-shot img {
            animation: card-window linear both;
            /*noinspection CssUnknownProperty,CssInvalidFunction*/
            animation-timeline: view();
            /*noinspection CssUnknownProperty*/
            animation-range: cover;
        }

        @keyframes card-window {
            from {
                translate: 0 14px;
            }
            to {
                translate: 0 -14px;
            }
        }
    }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured {
        gap: 32px;
        padding: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .hero {
        padding-top: 48px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Apiladas, las fichas más bajas quedan arriba y el hueco sobrante abajo */
    .featured {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .hero-visual {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }

    .support {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 20px;
        padding: 36px;
    }

    .support-logo {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 720px) {
    .nav {
        display: none;
    }
}

@media (max-width: 640px) {
    /* Solo los laterales: el atajo "padding: 0 16px" anulaba el relleno
       vertical del pie (.footer-grid, .footer-bottom) en móvil */
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-inner {
        height: 60px;
    }

    .hero-cta .btn {
        flex: 1 1 100%;
    }

    .lead,
    .featured-lead {
        font-size: 17px;
    }

    .section {
        padding-top: 72px;
    }

    .section-last {
        padding-bottom: 72px;
    }

    .filters {
        width: 100%;
    }

    .chip {
        flex: 1 1 auto;
        padding: 0 10px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured {
        padding: 28px 22px;
        gap: 32px;
        border-radius: 22px;
    }

    .featured-cta .btn {
        width: 100%;
    }

    .support {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .support .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-apps ul {
        grid-template-columns: repeat(2, auto);
    }

    /* Móvil: copyright y botón "Top" apilados y centrados */
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
}

/* ── Carrusel: sin JS y reducción de movimiento ──────────────────── */
html:not(.js) .spot-nav {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .slide,
    .slide.is-active,
    .slide .featured-copy > *,
    .slide .featured-shot {
        transition: none;
    }

    .slide:not(.is-active) .featured-copy > *,
    .slide:not(.is-active) .featured-shot {
        transform: none;
    }
}

/* En móvil el collage llega al borde de la pantalla: MiniToggle no sobresale */
@media (max-width: 640px) {
    .hv-mt {
        right: 0;
    }
}

@media (max-width: 640px) {
    .featured-shot {
        --pad: 16px;
        border-radius: 14px;
    }
}

/* ── Pantallas anchas (Full HD y más) ─────────────────────────────── */
/* Más ancho útil y menos aire sobre el hero, para que la ficha del spotlight
   entre completa, con sus controles, en la primera pantalla. */
@media (min-width: 1600px) {
    .wrap {
        max-width: 1320px;
    }

    .hero {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    /* El collage crece con el ancho: una columna algo más estrecha mantiene
       su altura como en portátil */
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    }
}

/* Pantallas táctiles: controles del carrusel más grandes para el dedo */
@media (pointer: coarse) {
    .spot-arrow {
        width: 42px;
        height: 42px;
    }

    .spot-play {
        width: 46px;
        height: 46px;
    }

    .spot-arrow svg,
    .spot-play svg {
        width: 16px;
        height: 16px;
    }
}
