/* ==========================================================================
   UmbaIA — identidad Océano
   HTML, CSS y JavaScript sin dependencias ni recursos externos.
   ========================================================================== */

:root {
  /* Color */
  --bg: #F2F6FA;
  --card: #FFFFFF;
  --bg-alt: #EAF1F8;
  --text: #142030;
  --muted: #5A6B80;
  --border: #D6E1EC;
  --accent: #1F6FD2;
  --accent-strong: #185BB0;
  --accent-soft: #DFEBFB;

  --dark: #0F1621;
  --dark-text: #E5EDF7;
  --dark-muted: #A8B8CC;
  --dark-accent: #5AA8FF;
  --dark-line: #1D2A3A;

  /* Formas y sombras */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 48, 0.04), 0 10px 30px -22px rgba(20, 32, 48, 0.28);
  --shadow-md: 0 18px 50px -26px rgba(20, 32, 48, 0.38);
  --shadow-lg: 0 34px 80px -38px rgba(15, 22, 33, 0.5);

  /* Tipografía */
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  /* Medidas */
  --wrap: 1180px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

svg {
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.descarga :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--dark-accent);
}

/* --- Utilidades ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--dark-text);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

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

/* --- Botones ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -14px rgba(31, 111, 210, 0.8);
}

.btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 16px 30px -16px rgba(24, 91, 176, 0.9);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.89rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 30px;
  font-size: 1rem;
}

/* --- Cabecera ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(242, 246, 250, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(242, 246, 250, 0.97);
  box-shadow: 0 12px 32px -30px rgba(20, 32, 48, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 18px -12px rgba(31, 111, 210, 0.9);
  object-fit: cover;
}

.brand__name span {
  color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav {
  align-items: center;
  gap: 18px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.nav__list a:hover,
.nav__list a.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.menu__toggle {
  display: none;
}

/* --- Portada ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 86px) 0 clamp(78px, 9vw, 112px);
  background:
    radial-gradient(ellipse 56% 62% at 84% 8%, rgba(31, 111, 210, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 56% at 2% 100%, rgba(90, 168, 255, 0.12), transparent 72%),
    linear-gradient(180deg, #EAF1F8 0%, #F2F6FA 72%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -420px;
  right: -280px;
  width: 820px;
  height: 820px;
  border: 1px solid rgba(31, 111, 210, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(31, 111, 210, 0.025),
    0 0 0 160px rgba(31, 111, 210, 0.018);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(38px, 5vw, 66px);
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.65rem, 6vw, 4.45rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.hero__accent {
  display: block;
  color: var(--accent);
}

.hero__lead {
  max-width: 40ch;
  color: var(--text);
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero__lead strong {
  color: var(--text);
  font-weight: 700;
}

.hero__sub {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero__sub strong {
  color: var(--text);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.hero__points svg {
  flex: none;
  color: var(--accent);
}

.hero__visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% -5% -8% 10%;
  z-index: -1;
  border-radius: 44px;
  background: linear-gradient(135deg, rgba(31, 111, 210, 0.22), rgba(90, 168, 255, 0.06));
  filter: blur(42px);
}

.window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 22, 33, 0.16);
  border-radius: var(--radius-lg);
  background: var(--dark);
  box-shadow: var(--shadow-lg);
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--dark);
  color: var(--dark-text);
}

.window__dots,
.browser__dots {
  display: flex;
  gap: 6px;
}

.window__dots i,
.browser__dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A4A5E;
}

.window__dots i:nth-child(1),
.browser__dots i:nth-child(1) {
  background: var(--dark-accent);
}

.window__dots i:nth-child(2),
.browser__dots i:nth-child(2) {
  background: #8CC4FF;
  opacity: 0.8;
}

.window__dots i:nth-child(3),
.browser__dots i:nth-child(3) {
  background: #D6E1EC;
  opacity: 0.5;
}

.window__title {
  overflow: hidden;
  color: var(--dark-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window__img {
  width: 100%;
  background: #FFFFFF;
}

.hero__note {
  position: absolute;
  left: -18px;
  bottom: -24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: min(286px, 78%);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.hero__note-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.hero__note p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hero__note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 0.89rem;
  line-height: 1.35;
}

.hero__note span:not(.hero__note-icon) {
  display: block;
}

.sparkle {
  position: absolute;
  z-index: 2;
  color: var(--accent);
  pointer-events: none;
}

.sparkle--one {
  top: -20px;
  right: 9%;
  width: 27px;
}

.sparkle--two {
  bottom: 19%;
  left: -22px;
  width: 16px;
  color: var(--dark-accent);
}

/* --- Secciones ----------------------------------------------------------- */
.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 800px;
  margin: 0 auto 52px;
  text-align: center;
}

.section__head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  text-wrap: balance;
}

.section__lead {
  max-width: 62ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* --- Qué puedes crear ---------------------------------------------------- */
.ideas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.idea {
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.idea:hover {
  border-color: #B9D3EF;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.idea__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.idea__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.idea__tag {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.idea blockquote {
  flex: 1;
  margin: 0;
}

.idea blockquote p {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.idea__text {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Cómo funciona ------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.step__top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}

.step__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step__shot {
  margin-top: auto;
}

.step__shot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  box-shadow: 0 12px 26px -24px rgba(20, 32, 48, 0.55);
}

/* --- Ejemplo real -------------------------------------------------------- */
.example__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(42px, 5vw, 68px);
  align-items: center;
}

.example__copy {
  min-width: 0;
}

.example__copy h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-wrap: balance;
}

.example__lead {
  margin-top: 20px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.1vw, 1.52rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.example__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.example__list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.example__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 500;
}

.example__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

.example__copy > .btn {
  margin-top: 28px;
}

.example__media {
  position: relative;
  isolation: isolate;
  min-width: 0;
  margin: 0;
  padding-bottom: 38px;
}

.example__media::before {
  content: "";
  position: absolute;
  inset: 8% 2% 12% 8%;
  z-index: -1;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(31, 111, 210, 0.18), rgba(90, 168, 255, 0.06));
  filter: blur(38px);
}

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: #F8FBFE;
}

.browser__title {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser img {
  width: 100%;
  background: #FFFFFF;
}

.phone {
  position: absolute;
  right: -10px;
  bottom: 38px;
  width: 170px;
  padding: 6px;
  border: 1px solid #263649;
  border-radius: 26px;
  background: var(--dark);
  box-shadow: 0 32px 60px -28px rgba(15, 22, 33, 0.65);
}

.phone img {
  width: 100%;
  border-radius: 20px;
  background: #FFFFFF;
}

.example__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* --- Por qué UmbaIA ------------------------------------------------------ */
.advantages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.advantage {
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.advantage:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.advantage__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.advantage h3 {
  margin: 18px 0 8px;
  font-size: 1.16rem;
}

.advantage p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.advantage--featured {
  border-color: var(--dark);
  background:
    radial-gradient(ellipse 110% 120% at 100% 0%, rgba(90, 168, 255, 0.2), transparent 62%),
    var(--dark);
}

.advantage--featured h3 {
  color: var(--dark-text);
}

.advantage--featured p {
  color: var(--dark-muted);
}

.advantage--featured .advantage__icon {
  background: rgba(90, 168, 255, 0.16);
  color: var(--dark-accent);
}

.privacy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid #C9DFF7;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.privacy__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--accent-strong);
}

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

.privacy strong {
  font-weight: 700;
}

/* --- Precios ------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.plan--pro {
  border-color: #B9D3EF;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FAFF 100%);
  box-shadow: var(--shadow-md);
}

.plan__tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan__kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-display);
}

.plan__amount {
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan__period {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.plan__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.plan__meta strong {
  color: var(--text);
  font-weight: 700;
}

.plan__list {
  display: grid;
  gap: 11px;
  margin: 24px 0 26px;
}

.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
}

.plan__list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.plans__note {
  max-width: 720px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: center;
}

/* --- Preguntas frecuentes ------------------------------------------------ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.faq details[open] {
  border-color: #B9D3EF;
  box-shadow: var(--shadow-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: #F8FBFE;
}

.faq summary:focus-visible {
  outline-offset: -3px;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.22s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq details p {
  max-width: 70ch;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* --- Descarga ------------------------------------------------------------ */
.descarga {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  color: var(--dark-text);
}

.descarga::before {
  content: "";
  position: absolute;
  top: -520px;
  left: 50%;
  width: 940px;
  height: 940px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 210, 0.38), transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.descarga::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 168, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 168, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 42%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 42%, #000 0%, transparent 76%);
  pointer-events: none;
}

.descarga__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
}

.eyebrow--light {
  color: var(--dark-accent);
}

.descarga h2 {
  color: var(--dark-text);
  font-size: clamp(2rem, 4.5vw, 3.08rem);
  line-height: 1.12;
  text-wrap: balance;
}

.descarga__btn {
  margin-top: 26px;
}

.descarga .btn--primary {
  box-shadow: 0 18px 40px -18px rgba(90, 168, 255, 0.55);
}

.descarga__small {
  margin-top: 22px;
  color: #8799AE;
  font-size: 0.84rem;
  line-height: 1.5;
}

.descarga__contact {
  margin-top: 26px;
  color: var(--dark-muted);
  font-size: 0.88rem;
}

.descarga__contact a {
  color: var(--dark-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.descarga__contact a:hover {
  color: #8CC4FF;
}

/* --- Pie ----------------------------------------------------------------- */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--dark-line);
  background: var(--dark);
  color: var(--dark-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--dark-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer__tagline {
  color: var(--dark-text);
  font-size: 0.92rem;
}

.footer__meaning {
  color: var(--dark-muted);
  font-size: 0.86rem;
}

.footer__meaning em {
  color: var(--dark-accent);
  font-style: normal;
  font-weight: 600;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__links a {
  color: var(--dark-muted);
  font-size: 0.86rem;
  text-decoration: underline;
  text-decoration-color: rgba(168, 184, 204, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--dark-accent);
}

.footer__copy {
  margin-left: auto;
  color: #8799AE;
  font-size: 0.84rem;
}

/* --- Páginas legales ----------------------------------------------------- */
.legal-hero {
  padding: clamp(46px, 6vw, 74px) 0 0;
}

.legal-hero h1 {
  margin-top: 10px;
  font-size: clamp(1.95rem, 4.4vw, 2.9rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.legal-hero__lead {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal-updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.draft {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid #F0D6A2;
  border-radius: 999px;
  background: #FDF6E7;
  color: #85580A;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-body {
  max-width: 720px;
  padding: clamp(34px, 5vw, 52px) 0 clamp(62px, 8vw, 92px);
}

.legal-body h2 {
  margin-top: 38px;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body strong {
  color: var(--text);
  font-weight: 700;
}

.legal-body ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.legal-body li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-body li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-body a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--accent);
}

.legal-contact {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid #C9DFF7;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.legal-contact p {
  margin-top: 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* --- Animaciones suaves -------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0.75;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: rise 0.65s var(--ease) both;
  }

  .hero__visual {
    animation: rise 0.8s var(--ease) 0.1s both;
  }

  .sparkle {
    animation: twinkle 5s ease-in-out infinite;
  }

  .sparkle--two {
    animation-delay: 1.4s;
  }
}

/* --- Responsive ---------------------------------------------------------- */
@media (min-width: 981px) {
  .menu__toggle {
    display: none;
  }

  .menu > .nav {
    display: flex;
  }
}

@media (max-width: 1040px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    width: 100%;
    max-width: 790px;
    margin-inline: auto;
  }

  .ideas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .example__copy {
    max-width: 720px;
  }

  .example__media {
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
  }

  .advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantage {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .header__actions {
    gap: 10px;
  }

  .header__cta {
    order: -1;
  }

  .menu__toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    list-style: none;
  }

  .menu__toggle::-webkit-details-marker {
    display: none;
  }

  .menu__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
  }

  .menu__bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 0.2s var(--ease),
      opacity 0.2s var(--ease);
  }

  .menu[open] .menu__bars i:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu[open] .menu__bars i:nth-child(2) {
    opacity: 0;
  }

  .menu[open] .menu__bars i:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .menu > .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: min(320px, calc(100vw - 40px));
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow-md);
  }

  .menu[open] > .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__list a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .step {
    padding: 22px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .section__head {
    margin-bottom: 42px;
  }

  .hero__note {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 16px;
  }

  .hero {
    padding-top: 46px;
  }

  .sparkle {
    display: none;
  }

  .example__media {
    padding-bottom: 34px;
  }

  .phone {
    right: -4px;
    width: 148px;
  }

  .footer__copy {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .hero__actions .btn {
    width: 100%;
  }

  .hero__points {
    flex-direction: column;
    gap: 9px;
  }

  .section__head {
    text-align: left;
  }

  .section__lead {
    margin-inline: 0;
  }

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

  .idea {
    min-height: 0;
  }

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

  .privacy {
    padding: 18px;
  }

  .example__media {
    padding-bottom: 0;
  }

  .phone {
    position: relative;
    right: auto;
    bottom: auto;
    width: 150px;
    margin: -28px auto 0;
  }

  .example__caption {
    position: static;
    margin-top: 14px;
    text-align: center;
  }

  .descarga__inner {
    text-align: left;
  }

  .descarga .btn {
    width: 100%;
  }

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

  .plans__note {
    text-align: left;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}

@media (max-width: 460px) {
  .header__inner {
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: 1.08rem;
  }

  .brand__icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .header__cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.83rem;
  }

  .menu__toggle {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 3rem);
  }

  .hero__lead {
    font-size: 1.06rem;
  }

  .footer__brand,
  .footer__tagline {
    font-size: 0.92rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
