@charset "UTF-8";

/* ==========================================================================
   FromoRip — styles.css
   Sitio web oficial de FromoRip (launcher y biblioteca de juegos local).
   Stack: CSS3 moderno, mobile-first, sin frameworks.
   Organización: variables → reset → base → utilidades → componentes → media queries.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables globales (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Escala jerárquica de z-index (nunca valores mágicos sueltos) */
  --z-base: 0;
  --z-decorative: 1;
  --z-content: 10;
  --z-sticky: 50;
  --z-header: 100;
  --z-mobile-menu: 110;
  --z-dropdown: 200;
  --z-modal-backdrop: 500;
  --z-modal: 510;
  --z-toast: 900;
  --z-tooltip: 1000;

  /* Paleta de colores */
  --color-bg: #28113c;
  --color-bg-deep: #1c0d2b;
  --color-card: #200f33;
  --color-card-hover: #2a1442;
  --color-card-raised: #33184d;
  --color-primary: #6812c9;
  --color-primary-dark: #460d75;
  --color-accent: #bd44cc;
  --color-accent-light: #d46ce0;
  --color-text: #cec3cd;
  --color-text-secondary: #9a8ba0;
  --color-text-muted: #6f5f76;
  --color-success: #4ade80;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-white: #ffffff;

  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #6812c9, #bd44cc);

  /* Bordes */
  --border-color: rgba(206, 195, 205, 0.14);
  --border-strong: rgba(189, 68, 204, 0.45);

  /* Sombras */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-btn: 0 8px 24px rgba(104, 18, 201, 0.35);
  --shadow-logo: 0 4px 14px rgba(104, 18, 201, 0.4);
  --shadow-hero: 0 20px 50px rgba(104, 18, 201, 0.45), 0 0 0 1px rgba(189, 68, 204, 0.3);
  --shadow-step: 0 6px 18px rgba(104, 18, 201, 0.4);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Tipografías */
  --font-sans: 'Segoe UI', 'Segoe UI Variable', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  /* Layout */
  --container-max: 1080px;
  --header-height: 62px;
  --header-height-md: 70px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(104, 18, 201, 0.32) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(189, 68, 204, 0.16) 0%, transparent 55%),
    radial-gradient(rgba(206, 195, 205, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Orbes de luz animados (fondo decorativo) */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: var(--z-decorative);
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.orb--a {
  width: 520px;
  height: 520px;
  top: -140px;
  right: -120px;
  background: rgba(104, 18, 201, 0.5);
  animation: orb-a 18s ease-in-out infinite alternate;
}

.orb--b {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -120px;
  background: rgba(189, 68, 204, 0.35);
  animation: orb-b 22s ease-in-out infinite alternate;
}

.orb--c {
  width: 380px;
  height: 380px;
  top: 38%;
  left: 52%;
  background: rgba(70, 13, 117, 0.45);
  animation: orb-c 26s ease-in-out infinite alternate;
}

@keyframes orb-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-70px, 50px) scale(1.15);
  }
}

@keyframes orb-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, -40px) scale(1.1);
  }
}

@keyframes orb-c {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-40px, -60px) scale(1.2);
  }
}

main {
  position: relative;
  z-index: var(--z-content);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-deep);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--color-accent);
}

::selection {
  background: rgba(189, 68, 204, 0.35);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-dark);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --------------------------------------------------------------------------
   4. Utilidades
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: var(--z-tooltip);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   5. Header fijo
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(28, 13, 43, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-toggle {
  display: block;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--color-text);
  font-size: 1.5rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

/* Navegación: desplegable en móvil (base) */
.site-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(28, 13, 43, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  z-index: var(--z-mobile-menu);
}

.site-nav.is-open {
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-links a:not(.nav-cta) {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--color-text);
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

/* Botón de descarga destacado en el header */
.nav-cta-item {
  margin-top: 8px;
}

.nav-cta {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(104, 18, 201, 0.45);
  transition: transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-fast);
  animation: cta-glow 3s ease-in-out infinite;
}

.nav-cta:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104, 18, 201, 0.65);
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 4px 14px rgba(104, 18, 201, 0.45);
  }
  50% {
    box-shadow: 0 4px 24px rgba(189, 68, 204, 0.7);
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
}

.hero-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  border-radius: 28px;
  animation: float 4s ease-in-out infinite;
  display: block;
  object-fit: cover;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: 6px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-tagline {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.hero-tagline strong {
  color: var(--color-accent);
  font-weight: 600;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.badge {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   7. Botones de descarga
   -------------------------------------------------------------------------- */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  margin-top: 32px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  min-width: 300px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  color: inherit;
}

.btn-download:hover {
  color: inherit;
}

.btn-download.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.btn-download .btn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.btn-download .btn-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-download .btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-download .btn-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

.btn-download .btn-sub {
  font-size: 0.8rem;
  opacity: 0.75;
  font-weight: 400;
  line-height: 1.3;
}

/* Botón primario (instalador) */
.btn-primary-download {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(189, 68, 204, 0.3);
}

.btn-primary-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(104, 18, 201, 0.5), 0 0 0 1px rgba(189, 68, 204, 0.5);
}

.btn-primary-download .btn-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

/* Botón outline (portable) */
.btn-outline-download {
  background: var(--color-card);
  color: var(--color-text-secondary);
  border: 1px solid rgba(189, 68, 204, 0.45);
}

.btn-outline-download:hover {
  background: var(--color-card-hover);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(189, 68, 204, 0.3);
}

.btn-outline-download .btn-icon {
  background: rgba(189, 68, 204, 0.12);
  color: var(--color-accent);
}

/* Opciones .zip / .exe dentro del botón */
.download-options {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.opt-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--color-text-secondary);
  border: 1px solid rgba(206, 195, 205, 0.2);
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary-download .opt-badge {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-download .opt-badge {
  background: rgba(189, 68, 204, 0.1);
  color: var(--color-accent);
  border-color: rgba(189, 68, 204, 0.3);
}

.opt-badge:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline-download .opt-badge:hover {
  background: rgba(189, 68, 204, 0.25);
}

/* Formato seleccionado dentro del botón */
.format-option.is-active {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.format-option.is-active:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary-download .format-option.is-active {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-primary-download .format-option.is-active:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

/* Nota bajo los botones de descarga */
.download-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.download-note a {
  color: var(--color-accent);
  text-decoration: none;
}

.download-note a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   8. Secciones genéricas
   -------------------------------------------------------------------------- */
.section {
  padding: 60px 0;
}

.section-title {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: var(--color-white);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   9. Pasos (Cómo funciona)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.step-card {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  background: var(--color-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 20px;
  box-shadow: var(--shadow-step);
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.step-text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-text a {
  font-weight: 500;
}

/* Nota de estructura */
.structure-note {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.note-content {
  flex: 1;
  min-width: 0;
}

.structure-note-title {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-weight: 600;
}

.structure-path {
  background: var(--color-bg-deep);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-text);
  border: 1px solid var(--border-color);
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}

.structure-path .folder {
  color: var(--color-accent);
  font-weight: 600;
}

.structure-path .file {
  color: var(--color-text-secondary);
}

.btn-copy {
  background: var(--color-card-raised);
  border: 1px solid var(--border-strong);
  color: var(--color-text);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  align-self: flex-start;
}

.btn-copy:hover {
  background: var(--color-card-hover);
  border-color: var(--color-accent);
}

.btn-copy.copied {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--color-success);
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   10. Características
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition-base);
}

.feature-card:hover {
  background: var(--color-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(104, 18, 201, 0.2);
  border: 1px solid rgba(189, 68, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.feature-text {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10b. Galería de capturas
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  background: var(--color-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: block;
}

.gallery-item figcaption {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 4px 4px;
}

/* --------------------------------------------------------------------------
   11. Requisitos
   -------------------------------------------------------------------------- */
.requirements-box {
  background: var(--color-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(206, 195, 205, 0.08);
}

.requirement-item:last-child {
  border-bottom: none;
}

.req-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(104, 18, 201, 0.2);
  border: 1px solid rgba(189, 68, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.req-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-accent);
}

.requirement-item .req-text {
  color: var(--color-text);
  font-size: 0.98rem;
}

.requirement-item .req-text strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. CTA final
   -------------------------------------------------------------------------- */
.cta-final {
  text-align: center;
  padding: 60px 0 80px;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-text {
  color: var(--color-text-secondary);
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-bg-deep);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  position: relative;
  z-index: var(--z-content);
}

.footer-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-brand {
  color: var(--color-text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   14. Toast (feedback visual)
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--color-card-raised);
  border: 1px solid var(--border-strong);
  color: var(--color-text);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: min(90vw, 480px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error {
  border-color: var(--color-error);
  color: var(--color-error);
}

/* --------------------------------------------------------------------------
   15. Animaciones de aparición (fade-up)
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Escalonado (stagger) sin estilos inline; se anula al hacer hover */
.steps-grid .step-card:nth-child(2) {
  transition-delay: 0.1s;
}

.steps-grid .step-card:nth-child(3) {
  transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(2) {
  transition-delay: 0.05s;
}

.features-grid .feature-card:nth-child(3) {
  transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(4) {
  transition-delay: 0.15s;
}

.features-grid .feature-card:nth-child(5) {
  transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(6) {
  transition-delay: 0.25s;
}

.gallery-item:nth-child(2) {
  transition-delay: 0.05s;
}

.gallery-item:nth-child(3) {
  transition-delay: 0.1s;
}

.step-card:hover,
.feature-card:hover,
.gallery-item:hover {
  transition-delay: 0s;
}

/* --------------------------------------------------------------------------
   16. Media queries (mobile-first: xs → sm → md → lg → xl)
   -------------------------------------------------------------------------- */

/* sm ≥ 480px */
@media (min-width: 480px) {
  .hero-tagline {
    font-size: 1.1rem;
  }
}

/* md ≥ 768px */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .header-inner {
    height: var(--header-height-md);
    padding: 0 24px;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 0;
    z-index: auto;
  }

  .nav-links {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .nav-cta-item {
    margin-top: 0;
  }

  .hero {
    padding: 150px 0 80px;
  }

  .hero-logo {
    width: 110px;
    height: 110px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .structure-note {
    flex-direction: row;
    padding: 28px 32px;
  }

  .btn-copy {
    align-self: center;
  }

  .requirements-box {
    padding: 40px;
  }
}

/* lg ≥ 1024px */
@media (min-width: 1024px) {
  .hero-tagline {
    font-size: 1.15rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .step-card {
    padding: 40px 32px;
  }
}

/* xl ≥ 1280px */
@media (min-width: 1280px) {
  .container {
    padding: 0 32px;
  }
}

/* --------------------------------------------------------------------------
   17. Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo {
    animation: none;
  }

  .nav-cta {
    animation: none;
  }

  .orb {
    animation: none;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Clase aplicada por JS cuando el usuario prefiere movimiento reducido */
html.reduced-motion {
  scroll-behavior: auto;
}

html.reduced-motion .hero-logo {
  animation: none;
}

html.reduced-motion .nav-cta {
  animation: none;
}

html.reduced-motion .orb {
  animation: none;
}

html.reduced-motion .fade-up {
  opacity: 1;
  transform: none;
  transition: none;
}