:root {
  --ink: #171717;
  --text: #404040;
  --muted: #737373;
  --line: #e5e5e5;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --soft-2: #fafafa;
  /* Colores bandera de España (oficiales) */
  --es-red: #c60b1e;
  --es-yellow: #ffc400;
  --red: var(--es-red);
  --gold: var(--es-yellow);
  --es-red-soft: rgba(198, 11, 30, 0.08);
  --es-yellow-soft: rgba(255, 196, 0, 0.12);
  --download-btn-text: #1a1a1a;
  --download-btn-sub: rgba(26, 26, 26, 0.62);
  --download-btn-bg: linear-gradient(135deg, #ffe066 0%, var(--es-yellow) 48%, #e6a800 100%);
  --download-btn-bg-hover: linear-gradient(135deg, #fff0a3 0%, #ffd633 48%, #f0b800 100%);
  --download-btn-shadow: 0 8px 24px rgba(230, 168, 0, 0.28);
  --download-btn-shadow-hover: 0 12px 28px rgba(230, 168, 0, 0.38);
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Tipografía árabe: Amiri (cuerpo) + Noto Nastaliq Urdu (títulos, estilo persa) */
  --arabic: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --arabic-display: "Noto Nastaliq Urdu", "Gulzar", "Amiri", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.flag-bar {
  display: flex;
  flex-direction: column;
  height: 12px;
  flex-shrink: 0;
}

.flag-bar span:nth-child(1),
.flag-bar span:nth-child(3) {
  flex: 1;
  background: var(--es-red);
}

.flag-bar span:nth-child(2) {
  flex: 2;
  background: var(--es-yellow);
}

/* Bandera España — CSS nítida (proporción 1:2:1) */
.flag-es {
  display: inline-block;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    var(--es-red) 0% 25%,
    var(--es-yellow) 25% 75%,
    var(--es-red) 75% 100%
  );
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.flag-es-sm {
  width: 28px;
  height: 18px;
  border-radius: 3px;
}

.flag-es-md {
  width: 36px;
  height: 24px;
}

.flag-es-lg {
  width: 56px;
  height: 36px;
  border-radius: 6px;
}

.flag-es-xl {
  width: 72px;
  height: 48px;
  border-radius: 8px;
}

.card-flag-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--es-red-soft), var(--es-yellow-soft));
  border: 1px solid rgba(198, 11, 30, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--es-yellow-soft);
}

.site-header .nav.container {
  padding-right: clamp(84px, 11vw, 118px);
}

.site-header-flag {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  width: clamp(64px, 9vw, 96px);
  height: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  object-fit: cover;
  pointer-events: none;
}

.download-page-flag {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 30;
}

.promo-banner {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(90deg, #1a1a1a 0%, #2d1518 35%, #1a1a1a 100%);
  border-bottom: 2px solid var(--es-yellow);
  box-shadow: 0 4px 20px rgba(255, 196, 0, 0.15);
}

.promo-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 12px 0;
  text-align: center;
}

.promo-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--es-yellow);
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.promo-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 52rem;
}

.promo-es {
  font-size: clamp(0.88rem, 2.2vw, 1.02rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.promo-es em {
  font-style: normal;
  color: var(--es-yellow);
  font-weight: 800;
  font-size: 1.08em;
}

.promo-ar {
  font-family: var(--arabic-display);
  font-size: clamp(0.92rem, 2.35vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.promo-fr,
.promo-en {
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.promo-fr {
  font-style: italic;
}

.promo-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--download-btn-bg);
  color: var(--download-btn-text);
  border: 1px solid rgba(255, 196, 0, 0.45);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--download-btn-shadow);
}

.promo-cta-ar {
  font-family: var(--arabic);
  font-size: 0.8rem;
  font-weight: 700;
}

.promo-cta-fr {
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 700;
}

.promo-cta-en {
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-cta small {
  font-family: var(--arabic);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--download-btn-sub);
}

.promo-cta small[lang="fr"],
.promo-cta small[lang="en"] {
  font-family: var(--sans);
  font-style: normal;
}

.promo-banner-blink {
  animation: promo-banner-glow 1.15s ease-in-out infinite;
}

@keyframes promo-banner-glow {
  0%,
  100% {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d1518 35%, #1a1a1a 100%);
    box-shadow: 0 4px 14px rgba(255, 196, 0, 0.1);
    border-bottom-color: var(--es-yellow);
  }
  50% {
    background: linear-gradient(90deg, #241018 0%, #3d1822 50%, #241018 100%);
    box-shadow: 0 4px 22px rgba(255, 196, 0, 0.32);
    border-bottom-color: #ffe066;
  }
}

.promo-banner-blink .promo-badge {
  animation: promo-badge-pulse 1.15s ease-in-out infinite;
}

.promo-banner-blink .promo-cta {
  animation: promo-cta-pulse 1.15s ease-in-out infinite;
}

@keyframes promo-badge-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 8px rgba(255, 196, 0, 0.45);
  }
}

@keyframes promo-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--download-btn-shadow);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(255, 196, 0, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner-blink,
  .promo-banner-blink .promo-badge,
  .promo-banner-blink .promo-cta {
    animation: none;
  }
}

.download-page .promo-banner {
  position: relative;
  z-index: 10;
}

.promo-banner-concurso {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 40%, #0f172a 100%);
  border-bottom-color: #38bdf8;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.18);
}

.promo-banner-langs {
  background: linear-gradient(90deg, #0b1f17 0%, #134e3a 42%, #0b1f17 100%);
  border-bottom-color: #34d399;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.16);
}

.promo-badge-langs {
  background: linear-gradient(135deg, #34d399, #fbbf24);
  color: #052e1c;
}

.promo-banner-langs .promo-es em {
  color: #6ee7b7;
}

.promo-cta-langs {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-color: rgba(110, 231, 183, 0.5);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
}

.promo-cta-langs .promo-cta-en,
.promo-cta-langs .promo-cta-fr {
  color: #fff;
}

.promo-banner-blink-langs {
  animation: promo-banner-langs-glow 1.3s ease-in-out infinite;
}

@keyframes promo-banner-langs-glow {
  0%,
  100% {
    background: linear-gradient(90deg, #0b1f17 0%, #134e3a 42%, #0b1f17 100%);
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.12);
    border-bottom-color: #34d399;
  }
  50% {
    background: linear-gradient(90deg, #0f2a1f 0%, #166534 50%, #0f2a1f 100%);
    box-shadow: 0 4px 24px rgba(52, 211, 153, 0.32);
    border-bottom-color: #6ee7b7;
  }
}

.promo-banner-blink-langs .promo-badge-langs {
  animation: promo-badge-pulse 1.3s ease-in-out infinite;
}

.promo-banner-blink-langs .promo-cta-langs {
  animation: promo-cta-pulse 1.3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner-blink-langs,
  .promo-banner-blink-langs .promo-badge-langs,
  .promo-banner-blink-langs .promo-cta-langs {
    animation: none;
  }
}

.promo-badge-concurso {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #0f172a;
}

.promo-banner-concurso .promo-es em {
  color: #7dd3fc;
}

.promo-cta-concurso {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.55);
}

.promo-cta-concurso small {
  color: rgba(255, 255, 255, 0.88);
}

.promo-banner-blink-concurso {
  animation: promo-banner-concurso-glow 1.25s ease-in-out infinite;
}

@keyframes promo-banner-concurso-glow {
  0%,
  100% {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 40%, #0f172a 100%);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.12);
    border-bottom-color: #38bdf8;
  }
  50% {
    background: linear-gradient(90deg, #132238 0%, #234a73 50%, #132238 100%);
    box-shadow: 0 4px 24px rgba(56, 189, 248, 0.35);
    border-bottom-color: #7dd3fc;
  }
}

.promo-banner-blink-concurso .promo-badge-concurso {
  animation: promo-badge-pulse 1.25s ease-in-out infinite;
}

.promo-banner-blink-concurso .promo-cta-concurso {
  animation: promo-cta-pulse 1.25s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner-blink-concurso,
  .promo-banner-blink-concurso .promo-badge-concurso,
  .promo-banner-blink-concurso .promo-cta-concurso {
    animation: none;
  }
}

.header-presentation {
  padding: clamp(36px, 6vw, 56px) 0 clamp(28px, 5vw, 44px);
  background:
    linear-gradient(180deg, #fff 0%, var(--soft-2) 100%),
    linear-gradient(135deg, var(--es-red-soft) 0%, transparent 45%);
  border-bottom: 1px solid var(--line);
}

.header-presentation-inner {
  display: grid;
  gap: 28px;
}

.header-presentation-lead h1 {
  margin: 0;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  max-width: 18ch;
}

.header-presentation-copy {
  max-width: 920px;
}

.header-presentation-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.header-presentation-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.header-presentation-card-featured {
  border-color: rgba(198, 11, 30, 0.22);
  background: linear-gradient(180deg, #fff 0%, rgba(255, 196, 0, 0.08) 100%);
}

.header-presentation-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.presentation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-presentation-cta {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.header-presentation-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.download-intro-panel {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--es-red);
  border-radius: 16px;
  background: var(--soft-2);
}

.download-intro-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.download-intro-list li {
  display: grid;
  gap: 4px;
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}

.download-intro-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--es-red), var(--es-yellow));
}

.download-intro-list .bi-es {
  font-weight: 600;
  color: var(--ink);
}

.download-intro-list .bi-ar {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-text small,
.brand-text .bi-ar {
  direction: rtl;
  text-align: right;
  font-family: var(--arabic-display);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
}

.brand-text .bi-es {
  font-weight: 700;
  font-size: 1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.brand-flag {
  box-shadow: 0 2px 6px rgba(198, 11, 30, 0.18);
}

.download-badge {
  margin-bottom: 20px;
  max-width: 100%;
}

.download-brand .brand-flag {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav-links a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links span {
  font-weight: 600;
  color: var(--text);
}

.nav-links small,
.nav-cta small {
  font-family: var(--arabic);
  font-size: 0.78rem;
  line-height: 1.65;
  font-weight: 400;
}

.nav-links small {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-links a:hover span {
  color: var(--es-red);
}

.nav-cta {
  padding: 11px 18px;
  background: var(--download-btn-bg);
  color: var(--download-btn-text);
  border: 1px solid rgba(198, 11, 30, 0.18);
  font-size: 0.9rem;
  white-space: nowrap;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  text-align: center;
  box-shadow: var(--download-btn-shadow);
}

.nav-cta small {
  color: var(--download-btn-sub);
}

.button {
  padding: 14px 22px;
  font-size: 0.95rem;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--download-btn-text);
  background: var(--download-btn-bg);
  border: 1px solid rgba(198, 11, 30, 0.18);
  box-shadow: var(--download-btn-shadow);
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--download-btn-bg-hover);
  box-shadow: var(--download-btn-shadow-hover);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--es-yellow);
  background: linear-gradient(180deg, #fff 0%, var(--es-yellow-soft) 100%);
}

.hero {
  padding: 72px 0 80px;
  background:
    linear-gradient(135deg, var(--es-red-soft) 0%, transparent 42%),
    linear-gradient(225deg, var(--es-yellow-soft) 0%, transparent 38%),
    linear-gradient(180deg, var(--soft-2) 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-intro {
  width: 100%;
  max-width: 560px;
  margin-bottom: 4px;
}

.hero-academy-ar {
  margin: 0 0 10px;
  padding: 0 6px 2px;
  font-family: var(--arabic-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  text-align: right;
  direction: rtl;
}

.hero-badge {
  width: 100%;
  max-width: none;
  padding: 10px 14px;
  border: 1px solid rgba(198, 11, 30, 0.14);
  border-left: 4px solid var(--es-red);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 196, 0, 0.06) 0%, #fff 28%);
  box-shadow: 0 4px 16px rgba(198, 11, 30, 0.06);
}

.hero-badge-es {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge .bi-ar {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-flag-icon {
  width: 28px;
  height: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--es-red) 0%, var(--es-yellow) 100%);
  flex-shrink: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 600;
}

/* Títulos árabes: no usar fuente latina */
.bi-ar h1,
.bi-ar h2,
.bi-ar h3,
[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3 {
  font-family: var(--arabic-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 2;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.hero-text,
.section p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Bilingual alignment: Spanish left, Arabic right */
.bi-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 28px;
  align-items: start;
  width: 100%;
}

.bi-row-tight {
  gap: 6px 20px;
}

.bi-row-center {
  text-align: center;
}

.bi-row-center .bi-es,
.bi-row-center .bi-ar {
  text-align: center;
}

.bi-es {
  margin: 0;
  text-align: left;
}

.bi-ar,
[lang="ar"] {
  font-family: var(--arabic);
  font-weight: 400;
  font-feature-settings: "liga" 1, "calt" 1;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.bi-ar {
  margin: 0;
  direction: rtl;
  text-align: right;
  color: var(--ink);
  font-size: 1.12em;
  line-height: 2.1;
}

.bi-fr,
.bi-en {
  margin: 0;
  text-align: center;
  color: var(--ink);
  font-size: 1.02em;
  line-height: 1.55;
}

.bi-fr {
  font-style: italic;
  color: #1e3a5f;
}

.bi-en {
  color: #1a3348;
}

.bi-heading .bi-fr,
.bi-heading .bi-en {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bi-heading {
  margin: 12px 0 0;
}

.bi-heading .bi-es {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 600;
}

.bi-heading .bi-ar {
  font-family: var(--arabic-display);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 2.2;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
}

.section-heading .bi-heading .bi-es {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
}

.section-heading .bi-heading .bi-ar {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 2.25;
}

.bi-heading .bi-es {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.bi-block {
  margin-top: 16px;
}

.bi-block + .bi-block {
  margin-top: 14px;
}

.bi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bi-pill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  align-items: center;
  min-width: min(100%, 280px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.bi-pill .bi-es,
.bi-pill .bi-ar {
  font-size: 0.84rem;
  line-height: 1.35;
}

.bi-pill .bi-es {
  color: var(--muted);
  font-weight: 500;
}

.bi-pill .bi-ar {
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.75;
}

.bi-pill-flag {
  border-color: rgba(198, 11, 30, 0.22);
  background: linear-gradient(90deg, var(--es-red-soft) 0%, var(--es-yellow-soft) 100%);
}

.bi-pill-flag .bi-es {
  color: var(--es-red);
  font-weight: 600;
}

.bi-level {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.bi-level strong {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.45rem;
}

.bi-level .bi-row-tight .bi-es {
  font-weight: 500;
  color: var(--text);
  font-size: 0.98rem;
}

.bi-level .bi-row-tight .bi-ar {
  font-size: 0.92rem;
  color: var(--muted);
}

.bi-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.bi-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.bi-list li:last-child {
  border-bottom: 0;
}

.bi-list .bi-es,
.bi-list .bi-ar {
  font-size: 0.98rem;
}

.bi-list .bi-ar {
  color: var(--muted);
  font-size: 0.92rem;
}

.bi-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bi-stack .bi-es {
  text-align: left;
}

.bi-stack .bi-ar {
  text-align: right;
}

.bi-caption {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
}

.bi-caption .bi-es,
.bi-caption .bi-ar {
  font-size: 0.82rem;
  line-height: 1.45;
}

.bi-caption .bi-es {
  color: var(--muted);
  font-weight: 600;
}

.bi-caption .bi-ar {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink);
}

.brand-text.bi-row {
  gap: 4px 12px;
  align-items: baseline;
  grid-template-columns: 1fr;
}

.brand-text .bi-es {
  font-weight: 700;
  font-size: 1rem;
}

.download-brand .brand-text .bi-ar,
.download-brand .brand-text small {
  font-size: 1.05rem;
}

.nav-links a {
  min-width: 88px;
}

.section-dark .bi-ar {
  color: #e5e5e5;
}

.section-dark .bi-es {
  color: #d4d4d4;
}

.hero-text {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--text);
}

.hero-title-ar {
  margin: 14px 0 0;
  direction: rtl;
  text-align: right;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.85;
  font-weight: 700;
}

.hero-ar-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-ar-points span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.trust-row-ar {
  margin-top: 10px;
}

.trust-row-ar span {
  direction: rtl;
  font-weight: 700;
  color: var(--ink);
  background: var(--soft);
}

.download-button {
  flex-direction: column;
  gap: 3px;
}

.download-button span,
.button.secondary span,
.contact-whatsapp span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 700;
}

.button.primary.download-button span,
.nav-cta small,
.contact-download span,
.manual-download:not(.is-locked) span {
  color: var(--download-btn-sub);
}

.section-text-ar {
  margin-top: 14px;
  direction: rtl;
  text-align: right;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 700;
}

.center-ar {
  max-width: 640px;
  margin-inline: auto;
}

.pricing-ar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  direction: rtl;
  text-align: right;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.75;
}

.ar-on-dark-plain {
  color: #cbd5e1;
  font-weight: 600;
}

.ar-line,
.card-ar {
  direction: rtl;
  text-align: right;
  font-weight: 600;
}

.ar-line {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-right: 3px solid var(--es-red);
  border-left: 3px solid var(--es-yellow);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, var(--es-yellow-soft), var(--soft));
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.85;
}

.inline-ar {
  display: inline-block;
  width: 100%;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.heritage-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.heritage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-large {
  grid-row: span 2;
  min-height: 340px;
}

.heritage-large img {
  min-height: 340px;
}

.heritage-book img {
  object-fit: contain;
  padding: 18px;
  background: var(--soft);
  min-height: 120px;
}

.heritage-app {
  padding: 10px;
  background: #fff;
}

.heritage-app img {
  border-radius: 12px;
  object-fit: contain;
  min-height: 120px;
}

.heritage-card figcaption {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
}

.heritage-card figcaption span {
  display: block;
  margin-top: 4px;
  direction: rtl;
  text-align: right;
  color: var(--ink);
  font-weight: 700;
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--soft-2) 0%, #fff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 3px 0 var(--es-yellow-soft);
}

.section-dark {
  background: var(--ink);
  color: #d4d4d4;
}

.section-dark h2,
.section-dark .eyebrow {
  color: #fff;
}

.section-dark .eyebrow {
  color: #a3a3a3;
}

.section-dark .ar-on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-right-color: var(--gold);
  color: #e5e5e5;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .ar-line,
.section-heading.center p {
  margin-inline: auto;
}

.two-column,
.feature-grid,
.contact-grid,
.founder-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.author-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.author-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.author-card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 11, 30, 0.28);
  box-shadow: 0 22px 48px rgba(198, 11, 30, 0.1);
}

.author-card-link:hover img {
  filter: grayscale(0%);
}

.author-card-link:focus-visible {
  outline: 2px solid var(--es-red);
  outline-offset: 3px;
}

.author-card-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
}

.author-card-cta .bi-es {
  color: var(--es-red);
}

.author-card-cta .bi-ar {
  color: var(--es-red);
  font-size: 0.8rem;
}

.author-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(12%);
}

.author-card div {
  padding: 20px;
}

.author-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

.card-ar {
  margin-top: 10px !important;
  font-size: 0.9rem !important;
  color: var(--muted);
}

.levels {
  display: grid;
  gap: 12px;
}

.footer-tagline {
  max-width: 420px;
}

.footer-tagline .bi-es,
.footer-tagline .bi-ar {
  font-size: 0.9rem;
}

.image-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  max-width: 420px;
  justify-self: center;
}

.image-panel img {
  border-radius: 14px;
}

.check-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 14px 0;
  padding-left: 22px;
  font-size: 1rem;
}

.check-ar {
  display: block;
  margin-top: 4px;
  padding-right: 0;
  direction: rtl;
  text-align: right;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--es-red), var(--es-yellow));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card-image {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  object-fit: contain;
}

.card-image-app {
  width: 100%;
  max-width: 140px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.card-image-flag {
  width: 48px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pricing-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pricing-card.featured {
  border-color: var(--es-red);
  box-shadow: 0 12px 32px rgba(198, 11, 30, 0.1);
  background: linear-gradient(180deg, #fff 0%, var(--es-yellow-soft) 100%);
}

.pricing-card.featured .pricing-label {
  background: linear-gradient(135deg, var(--es-red), #a90919);
  color: #fff;
}

.pricing-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card h3 {
  margin-top: 16px;
}

.price {
  margin: 12px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
}

.pricing-card ul {
  padding-left: 18px;
  margin: 10px 0 0;
  line-height: 1.65;
  font-size: 0.94rem;
}

.pricing-card p {
  font-size: 0.94rem;
  line-height: 1.65;
}

.founder-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.founder-photo {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  border: 1px solid var(--line);
  justify-self: center;
}

.founder-copy {
  display: grid;
  gap: 12px;
}

.founder-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

.section-founder-top {
  padding-top: clamp(20px, 4vw, 32px);
  padding-bottom: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(180deg, #fff 0%, var(--soft-2) 100%);
  border-bottom: 1px solid var(--line);
}

.section-founder-top .founder-card {
  margin: 0;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.founder-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--soft-2);
}

.contact-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.contact-card p {
  margin: 0 0 16px;
}

.contact-card a {
  color: #fff;
}

.contact-download,
.contact-whatsapp {
  width: 100%;
  margin-top: 10px;
}

.contact-whatsapp {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.footer {
  background: #0a0a0a;
  color: #737373;
  padding: 24px 0;
  border-top: none;
  position: relative;
}

.footer::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(
    to bottom,
    var(--es-red) 0% 25%,
    var(--es-yellow) 25% 75%,
    var(--es-red) 75% 100%
  );
  margin-bottom: 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-inner [lang="ar"] {
  direction: rtl;
  font-weight: 700;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img,
.footer-brand .flag-es {
  flex-shrink: 0;
}

.footer-brand .flag-es-md {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Download page */
.download-page {
  min-height: 100vh;
  background: var(--soft-2);
}

.download-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.download-panel {
  width: min(960px, 100%);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.download-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--ink);
  font-weight: 700;
}

.download-brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

.download-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.download-ar {
  max-width: 100%;
}

.download-copy,
.download-note {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
}

.download-access {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft-2);
}

.download-access h2 {
  margin: 8px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.download-access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.download-access-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.download-access-card h3 {
  margin-top: 8px;
}

.download-access-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.65;
  color: var(--muted);
  font-size: 0.94rem;
}

.install-guide {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.guide-heading h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.guide-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.guide-step h3 {
  margin-top: 16px;
}

.guide-ar {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
  text-align: right;
  font-size: 0.92rem;
}

.phone-example {
  max-width: 200px;
  margin: 0 auto;
  padding: 10px;
  border: 6px solid var(--ink);
  border-radius: 26px;
  background: var(--ink);
}

.phone-top {
  width: 48px;
  height: 4px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #525252;
}

.phone-screen {
  min-height: 240px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 12px;
  border-radius: 18px;
  background: var(--soft-2);
}

.settings-title {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.settings-row span {
  color: var(--muted);
  font-size: 0.74rem;
}

.settings-row strong {
  color: var(--ink);
  font-size: 0.8rem;
}

.settings-row.active {
  border-color: var(--ink);
}

.toggle-on {
  width: 52px;
  height: 28px;
  justify-self: end;
  position: relative;
  border-radius: 999px;
  background: var(--ink);
}

.toggle-on::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}

.install-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
}

.install-card button {
  margin-top: 4px;
  padding: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.success-check {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 36px auto 4px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 700;
}

.guide-warning {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 14px;
  background: var(--soft-2);
  line-height: 1.65;
}

.guide-warning.bi-row-tight {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.guide-warning .bi-es,
.guide-warning .bi-ar {
  margin: 0;
  font-size: 0.96rem;
}

.guide-warning span {
  text-align: right;
  font-weight: 600;
}

.manual-download {
  width: 100%;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.manual-download span {
  color: var(--muted);
  font-size: 0.92rem;
}

.download-ad-gate {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, var(--soft-2) 100%);
}

.install-permission-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 2px solid var(--es-yellow);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf5 0%, #fff8e6 100%);
}

.install-permission-copy {
  margin-bottom: 12px;
}

.install-permission-copy p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.install-permission-button {
  width: 100%;
}

.is-android-download .install-permission-panel[hidden] {
  display: none;
}

.is-android-download .install-permission-panel:not([hidden]) {
  display: block;
}

.download-ad-heading {
  margin-bottom: 14px;
}

.ad-slot {
  min-height: 0;
  display: none;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.ad-slot:not(.ad-slot-hidden) {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px dashed #cbd5e1;
  background: #fff;
}

.ad-slot ins.adsbygoogle {
  display: block;
  width: 100%;
}

.ad-placeholder {
  display: grid;
  gap: 6px;
  padding: 18px;
  text-align: center;
}

.ad-placeholder .ad-label {
  display: inline-block;
  margin: 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-placeholder strong {
  font-size: 1rem;
}

.ad-placeholder p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ad-placeholder code {
  font-size: 0.82rem;
}

.download-countdown {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.download-countdown.is-ready {
  color: var(--ink);
}

.download-direct-link-wrap {
  margin: 14px 0 0;
  text-align: center;
}

.download-direct-link {
  display: inline-block;
  color: #9a7200;
  font-weight: 700;
  text-decoration: underline;
  line-height: 1.5;
}

.download-direct-link span {
  display: block;
  font-size: 0.92rem;
}

.download-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
}

.download-overlay-card {
  width: min(440px, 100%);
  background: #fff;
  border: 3px solid #ffd700;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.download-overlay-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.download-overlay-card p {
  margin: 0 0 10px;
  line-height: 1.55;
  color: #333;
}

.download-overlay-count {
  font-size: 3rem;
  font-weight: 800;
  color: #c99700;
  margin: 14px 0;
}

.download-overlay-ready-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 2.2rem;
  line-height: 72px;
  font-weight: 800;
}

.download-overlay-apk-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 18px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe066 0%, #ffd700 48%, #e6a800 100%);
  color: #1a1a1a;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
}

.download-overlay-install-tip {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8e6;
  border-left: 4px solid #ffd700;
  border-radius: 8px;
  text-align: left;
}

.download-overlay-install-tip p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #444;
}

.download-overlay-install-tip p:last-child {
  margin-bottom: 0;
}

.download-overlay-close {
  margin-top: 14px;
  background: none;
  border: none;
  color: #666;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
}

body.download-overlay-open {
  overflow: hidden;
}

.manual-download.is-locked,
.manual-download[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.download-hero-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.download-hero-images {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 12px;
  align-items: end;
}

.download-hero-images img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  filter: grayscale(10%);
}

.download-hero-images .download-book {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
  background: var(--soft);
  filter: none;
}

/* Author detail pages */
.author-page {
  min-height: 100vh;
  background: var(--soft-2);
}

.author-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 42px 20px 64px;
}

.author-panel {
  width: min(920px, 100%);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.author-hero {
  display: grid;
  grid-template-columns: min(240px, 38vw) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.author-hero img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(8%);
}

.author-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.author-meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.author-meta-ar {
  margin: 6px 0 0;
  direction: rtl;
  text-align: right;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.author-section {
  margin-bottom: 32px;
}

.author-section-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

.author-section-title .bi-ar {
  font-family: var(--arabic-display);
  font-size: 1.2rem;
  line-height: 2;
}

.author-prose p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.author-nav {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.author-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.author-nav-link {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft-2);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.author-nav-link:hover {
  border-color: rgba(198, 11, 30, 0.28);
  background: linear-gradient(135deg, var(--es-red-soft), var(--es-yellow-soft));
  transform: translateY(-2px);
}

.author-nav-link .bi-es {
  font-weight: 600;
  color: var(--ink);
}

.author-nav-link .bi-ar {
  font-size: 0.88rem;
  font-weight: 700;
}

/* App tour — horizontal auto scroll */
.app-scroll-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.app-scroll-hint .bi-es,
.app-scroll-hint .bi-ar {
  font-size: 0.85rem;
  line-height: 1.5;
}

.app-scroll-hint .bi-ar {
  color: var(--muted);
}

.app-scroll-wrap {
  position: relative;
}

.app-scroll-wrap::before,
.app-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 28px;
  width: min(56px, 8vw);
  z-index: 2;
  pointer-events: none;
}

.app-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--soft-2) 15%, transparent);
}

.app-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--soft-2) 15%, transparent);
}

.app-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scroll-snap-type: none;
  scroll-padding-inline: 20px;
  padding: 8px 4px 28px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.app-scroll.is-paused {
  scrollbar-color: var(--es-red) transparent;
}

.app-scroll::-webkit-scrollbar {
  height: 6px;
}

.app-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.app-slide {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-phone {
  position: relative;
  margin: 0 auto;
  width: min(220px, 100%);
  padding: 10px;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.app-phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.app-phone img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  background: var(--soft);
}

.app-slide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-slide-text h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.app-slide-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.app-slide-text .bi-ar h3,
.app-slide-text .bi-ar p {
  text-align: right;
}

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

  .nav-actions {
    display: flex;
    margin-left: auto;
  }

  .nav-cta span {
    display: none;
  }

  .nav-cta {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .nav-cta::after {
    content: "APK";
  }

  .hero-grid,
  .two-column,
  .feature-grid,
  .founder-card,
  .contact-grid,
  .authors-grid,
  .cards,
  .pricing-grid,
  .guide-grid,
  .download-access-grid,
  .header-presentation-cards {
    grid-template-columns: 1fr;
  }

  .header-presentation-lead h1 {
    max-width: none;
  }

  .heritage-large {
    grid-row: auto;
    min-height: 240px;
  }

  .heritage-large img {
    min-height: 240px;
  }

  .bi-row,
  .bi-pill {
    grid-template-columns: 1fr;
  }

  .bi-pill {
    border-radius: 16px;
    min-width: 100%;
  }

  .bi-pill .bi-ar {
    text-align: right;
  }

  .bi-level {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .download-hero-row {
    grid-template-columns: 1fr;
  }

  .download-hero-images {
    max-width: 360px;
  }

  .author-hero {
    grid-template-columns: 1fr;
  }

  .author-hero img {
    max-width: 280px;
  }

  .author-nav-grid {
    grid-template-columns: 1fr;
  }

  .app-slide {
    flex-basis: min(280px, 86vw);
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .bi-level {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flamenco-stage {
    width: min(168px, 58vw);
    min-height: 98px;
  }

  .flamenco-bailaora {
    width: 48%;
    left: 6%;
  }

  .flamenco-torero {
    width: 50%;
    left: 42%;
  }
}

/* Escena flamenco: debajo del banner A1, centrada */
.flamenco-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 12px 8px;
  margin: 0;
  background: transparent;
  border-bottom: none;
  position: relative;
  z-index: 11;
  pointer-events: none;
}

.flamenco-stage {
  position: relative;
  width: min(190px, 44vw);
  min-height: 112px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  pointer-events: auto;
}

.flamenco-bailaora,
.flamenco-torero {
  position: absolute;
  bottom: 0;
  height: auto;
  filter: none;
}

.flamenco-bailaora {
  width: 50%;
  left: 8%;
  z-index: 2;
}

.flamenco-torero {
  width: 52%;
  left: 40%;
  z-index: 3;
}

.bailaora-body {
  transform-origin: 80px 170px;
  animation: bailaora-sway 1.1s ease-in-out infinite;
}

.bailaora-arm-l {
  transform-origin: 74px 92px;
  animation: bailaora-arm-l 0.9s ease-in-out infinite;
}

.bailaora-arm-r {
  transform-origin: 86px 92px;
  animation: bailaora-arm-r 0.9s ease-in-out infinite;
}

.skirt-l {
  transform-origin: 72px 168px;
  animation: skirt-flap-l 0.85s ease-in-out infinite;
}

.skirt-r {
  transform-origin: 88px 168px;
  animation: skirt-flap-r 0.85s ease-in-out infinite;
}

.skirt-m {
  transform-origin: 80px 168px;
  animation: skirt-flap-m 0.85s ease-in-out infinite;
}

.bailaora-flower {
  transform-origin: 80px 58px;
  animation: flower-bob 1.1s ease-in-out infinite;
}

.torero-group {
  transform-origin: 90px 200px;
  animation: torero-walk 5.5s ease-in-out infinite;
}

.torero-cape-wrap {
  transform-origin: 98px 108px;
  animation: torero-cape 0.75s ease-in-out infinite;
}

.torero-leg-l {
  transform-origin: 83px 148px;
  animation: torero-step-l 0.55s ease-in-out infinite;
}

.torero-leg-r {
  transform-origin: 97px 148px;
  animation: torero-step-r 0.55s ease-in-out infinite;
}

.flamenco-notes {
  position: absolute;
  top: 14%;
  right: 8%;
  display: flex;
  gap: 12px;
  color: rgba(255, 196, 0, 0.55);
  font-size: 1.4rem;
  pointer-events: none;
}

.flamenco-notes span:nth-child(1) {
  animation: note-float 2.2s ease-in-out infinite;
}

.flamenco-notes span:nth-child(2) {
  animation: note-float 2.2s ease-in-out 0.4s infinite;
  font-size: 1.7rem;
}

.flamenco-notes span:nth-child(3) {
  animation: note-float 2.2s ease-in-out 0.8s infinite;
}

@keyframes bailaora-sway {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes bailaora-arm-l {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(18deg);
  }
}

@keyframes bailaora-arm-r {
  0%,
  100% {
    transform: rotate(12deg);
  }
  50% {
    transform: rotate(-16deg);
  }
}

@keyframes skirt-flap-l {
  0%,
  100% {
    transform: rotate(-6deg) scaleX(1);
  }
  50% {
    transform: rotate(8deg) scaleX(1.08);
  }
}

@keyframes skirt-flap-r {
  0%,
  100% {
    transform: rotate(6deg) scaleX(1);
  }
  50% {
    transform: rotate(-10deg) scaleX(1.1);
  }
}

@keyframes skirt-flap-m {
  0%,
  100% {
    transform: skewX(-2deg);
  }
  50% {
    transform: skewX(4deg);
  }
}

@keyframes flower-bob {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@keyframes torero-walk {
  0%,
  100% {
    transform: translateX(-18%) rotate(-2deg);
  }
  50% {
    transform: translateX(42%) rotate(2deg);
  }
}

@keyframes torero-cape {
  0%,
  100% {
    transform: rotate(-18deg) scale(1);
  }
  50% {
    transform: rotate(22deg) scale(1.06);
  }
}

@keyframes torero-step-l {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

@keyframes torero-step-r {
  0%,
  100% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .bailaora-body,
  .bailaora-arm-l,
  .bailaora-arm-r,
  .skirt-l,
  .skirt-r,
  .skirt-m,
  .bailaora-flower,
  .torero-group,
  .torero-cape-wrap,
  .torero-leg-l,
  .torero-leg-r,
  .flamenco-notes span {
    animation: none !important;
  }
}

/* --- Concurso A1 (web) --- */
.concurso-page {
  background: linear-gradient(180deg, #fff8f0 0%, #f5f7fb 40%, #eef2ff 100%);
  min-height: 100vh;
}

.concurso-shell {
  max-width: 920px;
  padding: 1.5rem 1rem 3rem;
}

.concurso-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.concurso-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.concurso-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0.35rem 0 1rem;
}

.concurso-hero .bi-ar {
  display: block;
  margin-top: 0.5rem;
  font-family: "Noto Nastaliq Urdu", "Amiri", serif;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: #4a5568;
}

.concurso-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #334155;
}

.concurso-prizes,
.concurso-rules,
.concurso-play,
.concurso-ranking {
  margin-top: 2rem;
}

.concurso-prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.concurso-prize-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

.concurso-prize-card .prize-rank {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.prize-gold .prize-rank {
  background: #fef3c7;
  color: #92400e;
}

.prize-silver .prize-rank {
  background: #e2e8f0;
  color: #334155;
}

.prize-bronze .prize-rank {
  background: #ffedd5;
  color: #9a3412;
}

.concurso-rules-list {
  padding-left: 1.2rem;
  line-height: 1.6;
}

.concurso-rules-list li {
  margin-bottom: 0.75rem;
}

.concurso-rules-list .bi-ar {
  display: block;
  margin-top: 0.25rem;
  font-family: "Noto Nastaliq Urdu", "Amiri", serif;
  color: #475569;
}

.concurso-matricula-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #ecfdf5;
  border-radius: 12px;
  border: 1px solid #a7f3d0;
}

.concurso-panel {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.concurso-start-btn {
  margin-top: 0.75rem;
}

.concurso-game-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.concurso-timer {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.concurso-timer-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #16a34a, #f59e0b, #dc2626);
  transition: width 0.1s linear;
}

.concurso-timer-text {
  text-align: right;
  font-size: 0.85rem;
  color: #64748b;
  margin: 0.35rem 0 0.75rem;
}

.concurso-question {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.concurso-question-ar {
  font-family: "Noto Nastaliq Urdu", "Amiri", serif;
  color: #475569;
  margin: 0 0 1rem;
}

.concurso-options {
  display: grid;
  gap: 0.65rem;
}

.concurso-option {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.concurso-option:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.concurso-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.concurso-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.concurso-form input[type="text"],
.concurso-form input[type="email"],
.concurso-form input[type="tel"] {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.concurso-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
}

.concurso-checkbox input {
  margin-top: 0.2rem;
}

.concurso-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}

.concurso-status.error {
  color: #b91c1c;
}

.concurso-table-wrap {
  overflow-x: auto;
}

.concurso-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.concurso-table th,
.concurso-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.concurso-table th {
  background: #f1f5f9;
  font-size: 0.85rem;
}

.concurso-ranking-empty {
  color: #64748b;
  font-style: italic;
}

.concurso-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: center;
}

.concurso-score-summary {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .concurso-shell {
    padding-inline: 0.85rem;
  }

  .concurso-panel {
    padding: 1rem;
  }
}

.concurso-eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.concurso-eligibility-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.concurso-eligibility-card .eligibility-num {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.concurso-eligibility-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.concurso-eligibility-card .bi-ar {
  display: block;
  margin-top: 0.35rem;
  font-family: "Noto Nastaliq Urdu", "Amiri", serif;
  color: #64748b;
  font-size: 0.92rem;
}

.concurso-process {
  margin-top: 2rem;
}

.concurso-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.concurso-step {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid #2563eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.concurso-step-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.concurso-step-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.step-badge.step-oral {
  background: #ecfdf5;
  color: #047857;
}

.step-badge.step-written {
  background: #fff7ed;
  color: #c2410c;
}

.concurso-step .bi-ar {
  display: block;
  margin-top: 0.35rem;
  font-family: "Noto Nastaliq Urdu", "Amiri", serif;
  color: #475569;
}

.concurso-jury-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  line-height: 1.55;
}

.concurso-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0;
}

.concurso-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.concurso-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 180px;
}

.concurso-word-count {
  color: #64748b;
  font-size: 0.85rem;
}

.concurso-word-count.ok {
  color: #047857;
  font-weight: 600;
}

.concurso-prompt-box {
  margin-bottom: 1rem;
  background: #fffbeb;
  border-color: #fde68a;
}

.concurso-prompt-box h3 {
  margin-top: 0;
}

.concurso-written-note {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #475569;
}

.concurso-legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.concurso-signup-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #bfdbfe;
  line-height: 1.55;
}

.concurso-signup-callout p {
  margin: 0 0 0.5rem;
}

.concurso-signup-callout p:last-child {
  margin-bottom: 0;
}

.concurso-signup-callout .bi-ar {
  font-family: "Noto Nastaliq Urdu", "Amiri", serif;
  color: #475569;
  margin-top: 0.35rem;
}

.concurso-inscripcion-intro {
  margin: -0.5rem 0 1rem;
  color: #475569;
  line-height: 1.55;
}

.concurso-winners-cycle {
  margin-top: 2rem;
}

.concurso-winners-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.concurso-next-date {
  margin-top: 0.85rem;
  font-weight: 600;
  color: #047857;
}

.concurso-matricula-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
  text-align: center;
}

.concurso-matricula-box h2 {
  margin-top: 0;
}

.concurso-matricula-box .button {
  margin-top: 0.75rem;
}

.concurso-matricula-cta {
  margin-top: 1.5rem;
}

.concurso-winners-short {
  margin-top: 1rem;
  color: #475569;
  text-align: center;
}

.concurso-radio {
  display: flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.concurso-radio input {
  margin-top: 0.2rem;
}

.concurso-success-matricula {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #eff6ff;
  border-radius: 10px;
}

.concurso-file-label input[type='file'] {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.concurso-file-hint {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-top: 0.25rem;
}

.concurso-captura-preview {
  margin-top: 0.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.5rem;
  background: #f8fafc;
  text-align: center;
}

.concurso-captura-preview img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  object-fit: contain;
}

.clases-free-box {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #6ee7b7;
}

.clases-paid-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
}

.clases-modalidades {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .clases-modalidades {
    grid-template-columns: 1fr 1fr;
  }
}

.clases-modalidades h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.clases-cta-box {
  text-align: center;
}

.clases-wa-btn {
  margin-top: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.clases-wa-note {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.95rem;
}

/* Promo ticker — scroll automático grande */
.promo-ticker-section {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-bottom: 2px solid var(--es-yellow);
  overflow: hidden;
}

.promo-ticker-viewport {
  overflow: hidden;
  width: 100%;
}

.promo-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 18px 0;
  white-space: nowrap;
}

.promo-ticker-track::-webkit-scrollbar {
  display: none;
}

.promo-ticker-item {
  flex: 0 0 auto;
  padding: 0 2.5rem;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #fef3c7;
  letter-spacing: 0.01em;
}

.promo-ticker-item-ar {
  font-family: var(--arabic-display);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.promo-ticker-item-fr {
  color: #bfdbfe;
  font-style: italic;
}

.promo-ticker-item-en {
  color: #fde68a;
}

/* Escuelas virtuales — una frase por idioma */
.school-locale-simple {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 0 8px;
  text-align: center;
}

.school-locale-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
}

.school-locale-simple--hero {
  margin-top: 20px;
  padding: 0;
  text-align: left;
  align-items: flex-start;
}

.school-locale-simple--hero .school-locale-line {
  text-align: left;
}

.school-locale-simple--hero .school-locale-ar {
  text-align: right;
  width: 100%;
}

.school-locale-ar {
  font-family: var(--arabic);
  direction: rtl;
  color: #15803d;
}

.school-locale-fr {
  font-style: italic;
  color: #1d4ed8;
}

.school-locale-en {
  color: #b45309;
}

/* Escuelas virtuales — tarjetas (legacy, por si se reutiliza) */
.school-locale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.school-locale-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.school-locale-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.school-locale-badge {
  font-size: 1.25rem;
}

.school-locale-ar {
  border-top: 4px solid #15803d;
}

.school-locale-fr {
  border-top: 4px solid #1d4ed8;
}

.school-locale-en {
  border-top: 4px solid #b45309;
}

.school-locale-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.school-locale-list li[lang="ar"] {
  font-family: var(--arabic);
  direction: rtl;
  text-align: right;
  list-style: none;
  margin-right: 0;
  padding-right: 0;
}

.school-locale-card .button {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

@media (max-width: 900px) {
  .school-locale-grid {
    grid-template-columns: 1fr;
  }
}

/* Promo showcase — carrusel grande */
.section-promo-showcase {
  background: linear-gradient(180deg, var(--soft-2) 0%, var(--paper) 100%);
  padding-top: 48px;
  padding-bottom: 56px;
}

.promo-showcase-hint {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.promo-showcase-wrap {
  position: relative;
}

.promo-showcase-wrap::before,
.promo-showcase-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(72px, 10vw);
  z-index: 2;
  pointer-events: none;
}

.promo-showcase-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--soft-2) 20%, transparent);
}

.promo-showcase-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper) 20%, transparent);
}

.promo-showcase-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 12px 8px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.promo-showcase-track.is-paused {
  scrollbar-color: var(--es-red) transparent;
}

.promo-showcase-slide {
  flex: 0 0 min(420px, 88vw);
  display: grid;
  gap: 16px;
  padding: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--ink);
  border: 2px solid rgba(255, 196, 0, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.promo-showcase-slide-featured {
  flex: 0 0 min(520px, 92vw);
}

.promo-showcase-slide img,
.promo-showcase-video {
  width: 100%;
  height: min(280px, 42vw);
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.promo-showcase-video {
  height: min(300px, 46vw);
}

.promo-showcase-caption {
  padding: 18px 20px 22px;
  color: #f8fafc;
}

.promo-showcase-caption h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: var(--es-yellow);
}

.promo-showcase-caption .bi-es,
.promo-showcase-caption .bi-ar {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.promo-showcase-caption .bi-ar {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

/* Robot demo interactivo */
.robot-hero {
  background: linear-gradient(180deg, #1a1a1a 0%, #2a1520 45%, var(--soft) 100%);
  padding: 36px 0 48px;
  border-bottom: 3px solid var(--es-yellow);
}

.robot-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.robot-hero-heading {
  text-align: center;
  max-width: 720px;
}

.robot-hero-heading .eyebrow {
  color: var(--es-yellow);
  margin-bottom: 8px;
}

.robot-hero-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.02em;
}

.robot-hero-title-ar {
  margin: 8px 0 0;
  font-family: var(--arabic-display);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  direction: rtl;
}

.robot-hero-sub {
  margin: 12px 0 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.robot-hero-sub.bi-ar {
  margin-top: 6px;
  font-family: var(--arabic);
  direction: rtl;
}

.robot-demo-panel--hero {
  width: min(100%, 520px);
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.robot-demo-panel {
  padding: 24px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, #0b1224 0%, #111827 55%, #0f172a 100%);
  border: 2px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  color: #e2e8f0;
}

.robot-demo-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #facc15;
}

.robot-demo-stage {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

.robot-demo-face {
  position: relative;
  width: 140px;
  height: 168px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0b1224 0%, #0f172a 100%);
  border: 2px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.55);
  transition: box-shadow 0.25s ease;
}

.robot-demo-face.is-speaking {
  animation: robot-demo-glow 0.65s ease-in-out infinite alternate;
}

@keyframes robot-demo-glow {
  from {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.55), 0 0 0 rgba(250, 204, 21, 0);
  }
  to {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.55), 0 0 28px rgba(250, 204, 21, 0.45);
  }
}

.robot-demo-antenna {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  width: 4px;
  height: 16px;
  border-radius: 99px;
  background: #94a3b8;
}

.robot-demo-antenna-dot {
  position: absolute;
  left: 50%;
  top: -26px;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #facc15;
}

.robot-demo-face.is-speaking .robot-demo-antenna-dot {
  animation: robot-antenna-blink 0.5s ease-in-out infinite alternate;
}

@keyframes robot-antenna-blink {
  from { opacity: 0.55; }
  to { opacity: 1; box-shadow: 0 0 10px #facc15; }
}

.robot-demo-head {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  height: 88px;
  border-radius: 18px;
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 48%, #64748b 100%);
  border: 2px solid rgba(248, 250, 252, 0.92);
}

.robot-demo-eye {
  position: absolute;
  top: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px #1e293b;
}

.robot-demo-eye-l { left: 28px; }
.robot-demo-eye-r { right: 28px; }

.robot-demo-face.is-speaking .robot-demo-eye {
  animation: robot-eye-blink 2.8s ease-in-out infinite;
}

@keyframes robot-eye-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.12); }
}

.robot-demo-mouth {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 28px;
  height: 8px;
  border-radius: 0 0 12px 12px;
  background: #334155;
}

.robot-demo-face.is-speaking .robot-demo-mouth {
  animation: robot-mouth-talk 0.35s ease-in-out infinite alternate;
}

@keyframes robot-mouth-talk {
  from { height: 8px; width: 28px; }
  to { height: 14px; width: 34px; }
}

.robot-demo-body {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 12px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(180deg, #475569, #334155);
}

.robot-demo-bubble {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.robot-demo-bubble-bot {
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fef3c7;
}

.robot-demo-bubble-user {
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #dbeafe;
}

.robot-demo-bubble-user.robot-demo-bubble-wrong {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.robot-demo-bubble .bi-ar {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.robot-demo-phrase-hint {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.robot-demo-status {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
}

.robot-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.robot-demo-actions .button {
  flex: 1 1 140px;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.robot-demo-download {
  width: 100%;
  margin-top: 8px;
}

.robot-demo-gate {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffef5 0%, #fff8dc 100%);
  border: 2px solid var(--es-yellow);
  text-align: center;
}

.robot-demo-gate-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.robot-demo-gate-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-auth-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.nav-auth-btn small {
  font-family: var(--arabic);
  font-size: 0.72rem;
  opacity: 0.9;
}

.nav-user-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--es-yellow);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-auth-dialog {
  border: none;
  padding: 0;
  max-width: min(440px, calc(100vw - 24px));
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.web-auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.web-auth-panel {
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 18px;
  position: relative;
}

.web-auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.web-auth-panel h2 {
  margin: 0 0 6px;
}

.web-auth-sub {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.web-auth-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.web-auth-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}

.web-auth-submit,
.web-auth-google,
.web-auth-panel .button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.web-auth-toggle {
  width: 100%;
  margin-top: 12px;
  border: none;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: underline;
}

.web-auth-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.web-auth-success {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.9rem;
}

.web-auth-welcome {
  margin: 0 0 10px;
}

.web-auth-hint {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.price-muted {
  font-size: 1.35rem;
  color: var(--muted);
}

.pricing-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .promo-showcase-slide,
  .promo-showcase-slide-featured {
    flex: 0 0 min(340px, 92vw);
  }

  .robot-demo-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .robot-demo-face.is-speaking,
  .robot-demo-face.is-speaking .robot-demo-antenna-dot,
  .robot-demo-face.is-speaking .robot-demo-eye,
  .robot-demo-face.is-speaking .robot-demo-mouth {
    animation: none;
  }
}
