.site-header, .site-footer { max-width: 960px; margin: 0 auto; padding: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-header .logo { font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--text); }
.site-footer { justify-content: center; color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.site { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; }
.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.features div, .plans article { background: var(--surface); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 2px 12px rgb(0 0 0 / 6%); }
.pricing { text-align: center; padding-top: 48px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center; gap: 16px; text-align: left; }
.plans .featured { outline: 2px solid var(--accent); }
.price { font-size: 2rem; font-weight: 700; margin: 0; }
.price small { font-size: 1rem; color: var(--muted); }
.legal-text { max-width: 720px; margin: 24px auto; line-height: 1.6; }

/* Web comercial */
html { scroll-behavior: smooth; }
.site section { padding-top: 56px; }
.site section > h2 { text-align: center; font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 24px; }
/* Cabecera: logo · enlaces · acciones. En móvil y tablet los enlaces van en un menú desplegable. */
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.menu-toggle:hover { background: color-mix(in srgb, var(--muted) 14%, transparent); }
.menu-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.button.small { white-space: nowrap; }
@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; position: relative; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .site-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; margin: 4px 0 0; padding: 6px; border-radius: var(--radius); background: var(--surface);
    box-shadow: 0 8px 24px rgb(0 0 0 / 15%); }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
  .site-nav a:hover { background: color-mix(in srgb, var(--muted) 12%, transparent); }
}
@media (max-width: 360px) { .header-actions .button.small { padding: 8px 10px; font-size: .85rem; } }
.button.small { padding: 8px 14px; font-size: .9rem; }
.button.secondary { background: transparent; color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.small { font-size: .9rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards > div { background: var(--surface); border-radius: var(--radius); padding: 20px;
  box-shadow: 0 2px 12px rgb(0 0 0 / 6%); }
.cards h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); }
.steps { max-width: 680px; margin: 0 auto; padding-left: 1.4em; line-height: 1.6; }
.steps li { margin-bottom: 12px; }
.demo { display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: 32px; align-items: center; }
.demo-text h2 { text-align: left; }
.examples { padding-left: 1.2em; line-height: 1.8; }
/* Móvil de la demo: marco de titanio, isla, barra de estado, botones e indicador de inicio. */
.phone { position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 19;
  max-height: 760px; padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #3a3d44, #16181c 45%, #2b2e34);
  box-shadow: inset 0 0 0 1.5px #5a5e66, inset 0 0 0 4px #0b0c0e,
    0 30px 60px -15px rgb(0 0 0 / 45%), 0 10px 25px rgb(0 0 0 / 25%); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: 46px; overflow: hidden; background: #0b0d12; isolation: isolate; }
.phone-status { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 50px; padding: 0 26px; color: #fff; font: 600 15px/1 -apple-system, system-ui, sans-serif;
  background: var(--accent); }
.phone-time { justify-self: start; padding-left: 8px; }
.phone-island { width: 104px; height: 30px; border-radius: 20px; background: #000; }
.phone-icons { justify-self: end; display: flex; align-items: center; gap: 5px; }
.phone-icons svg { fill: currentColor; }
.phone iframe { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: var(--surface); }
.phone-home { position: absolute; left: 50%; bottom: 7px; width: 120px; height: 5px; border-radius: 3px;
  transform: translateX(-50%); background: rgb(255 255 255 / 55%); pointer-events: none; }
.phone-key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a2d33, #4a4e56); }
.key-action { left: -3px; top: 120px; height: 32px; }
.key-vol-up { left: -3px; top: 175px; height: 58px; }
.key-vol-down { left: -3px; top: 245px; height: 58px; }
.key-power { right: -3px; top: 200px; height: 90px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags span { background: var(--surface); border-radius: 999px; padding: 8px 14px; box-shadow: 0 1px 6px rgb(0 0 0 / 6%); }
.plans ul { padding-left: 1.2em; line-height: 1.8; }
.plans article { position: relative; }
.badge { position: absolute; top: -12px; right: 16px; background: var(--accent); color: var(--accent-text);
  font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.contact { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin-top: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--bubble-bot); background: var(--surface); color: var(--text); }
.contact-form .wide { grid-column: 1 / -1; }
.contact-form .check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px;
  font-weight: 400; line-height: 1.5; }
.contact-form .check input { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--surface); }
.flash.error { color: var(--danger); }
@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-text h2 { text-align: center; }
  .contact-form { grid-template-columns: 1fr; }
  .phone { width: min(100%, 340px); }
}

/* El pie de página siempre abajo, aunque la página sea corta (privacidad, aviso legal…). */
body.site-body { display: flex; flex-direction: column; min-height: 100dvh; }
body.site-body > .site { flex: 1 0 auto; width: 100%; }
body.site-body > .site-header { width: 100%; }
body.site-body > .site-footer { width: 100%; border-top: 1px solid color-mix(in srgb, var(--muted) 25%, transparent); }

/* Logotipo: icono + «quedi» */
.wordmark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800;
  letter-spacing: -.02em; text-decoration: none; }
.wordmark img { width: 28px; height: 28px; flex: none; border-radius: 8px; }
.yearly { margin: 2px 0 10px; font-size: .9rem; color: var(--ok); font-weight: 600; }
