/* ==========================================================================
   Yetty — yettyapp.com
   Hoja de estilos única. Sin fuentes externas, sin CDN, sin JS obligatorio.
   Paleta glaciar de la marca.
   ========================================================================== */

:root {
  --midnight: #0B2239;   /* azul noche */
  --deep:     #16455F;   /* azul profundo */
  --glacier:  #17A9BF;   /* glaciar */
  --glacier-dark: #0F8296;
  --ice:      #eef3f7;   /* fondo hielo */
  --frost:    #dceaf2;
  --snow:     #f8fbfd;
  --slate:    #5c7288;   /* texto secundario sobre claro */
  --mist:     #a9c3d4;   /* texto secundario sobre oscuro */
  --line:     #d7e3ec;

  --radius-l: 22px;
  --radius-m: 14px;
  --maxw: 1080px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ice);
  color: var(--midnight);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--glacier-dark); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 34, 57, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(23, 169, 191, 0.25);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img { width: 34px; height: 34px; border-radius: 9px; }

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

.header-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.header-nav a:hover { color: #fff; }

.header-nav .lang-switch {
  border: 1px solid rgba(169, 195, 212, 0.45);
  border-radius: 999px;
  padding: 5px 13px;
  color: #eaf4f8;
}

.header-nav .lang-switch:hover {
  border-color: var(--glacier);
  color: #fff;
}

/* En móvil se ocultan los enlaces de sección, no el cambio de idioma */
@media (max-width: 640px) {
  .header-nav .nav-section { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(23, 169, 191, 0.35), transparent 60%),
    radial-gradient(700px 380px at -10% 30%, rgba(22, 69, 95, 0.9), transparent 65%),
    linear-gradient(165deg, var(--midnight) 0%, #0d2c47 55%, var(--deep) 100%);
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .hero { padding: 96px 0 110px; }
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 .hl {
  background: linear-gradient(90deg, #35c7dc, var(--glacier) 55%, #6fd8e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 18px;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--mist);
  max-width: 34em;
}

.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-figure { display: flex; justify-content: center; }

.hero-figure .logo-card {
  width: min(260px, 60vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(23,169,191,0.18), rgba(238,243,247,0.06));
  border: 1px solid rgba(23, 169, 191, 0.35);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(4, 16, 28, 0.5);
}

.hero-figure img { width: 72%; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }

/* Insignia "Próximamente en Google Play" (sin enlace: la ficha aún no existe) */
.badge-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #071827;
  border: 1px solid rgba(169, 195, 212, 0.4);
  border-radius: var(--radius-m);
  padding: 10px 18px 10px 14px;
  color: #fff;
  cursor: default;
  user-select: none;
}

.badge-play svg { width: 26px; height: 26px; flex: none; }

.badge-play .badge-text { line-height: 1.25; text-align: left; }
.badge-play .badge-text small { display: block; font-size: 0.68rem; color: var(--mist); text-transform: uppercase; letter-spacing: 0.08em; }
.badge-play .badge-text strong { font-size: 1.02rem; letter-spacing: -0.01em; }

.hero-note { font-size: 0.85rem; color: var(--mist); }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */

.section { padding: 72px 0; }
.section.alt { background: var(--snow); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 42px; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glacier-dark);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 800;
}

.section-head p { margin-top: 12px; color: var(--slate); }

/* Tarjetas de funciones */
.grid-features {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px)  { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-features { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 24px;
  box-shadow: 0 6px 22px rgba(11, 34, 57, 0.05);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(23,169,191,0.16), rgba(22,69,95,0.12));
  color: var(--glacier-dark);
  margin-bottom: 16px;
}

.card .icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 8px; font-weight: 700; }
.card p { font-size: 0.94rem; color: var(--slate); }

/* Pasos */
.steps {
  display: grid;
  gap: 18px;
  counter-reset: paso;
}

@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  counter-increment: paso;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 24px 22px;
  position: relative;
}

.step::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--midnight);
  color: #7fdcea;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { font-size: 0.92rem; color: var(--slate); }

/* Banda de descarga */
.cta-band {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(23,169,191,0.3), transparent 60%),
    linear-gradient(140deg, var(--midnight), var(--deep));
  color: #fff;
  border-radius: 28px;
  padding: 52px 28px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); letter-spacing: -0.025em; }
.cta-band p { color: var(--mist); margin: 12px auto 26px; max-width: 36em; }
.cta-band .badge-play { margin: 0 auto; }

/* --------------------------------------------------------------------------
   Pie
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--midnight);
  color: var(--mist);
  padding: 48px 0 34px;
  margin-top: 72px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

.site-footer .brand { font-size: 1.05rem; margin-bottom: 10px; }

.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(238, 243, 247, 0.08);
  border: 1px solid rgba(169, 195, 212, 0.25);
  color: #d9e8f1;
}

.social a:hover { background: rgba(23, 169, 191, 0.25); color: #fff; }
.social svg { width: 19px; height: 19px; }

.footer-bottom {
  border-top: 1px solid rgba(169, 195, 212, 0.18);
  margin-top: 34px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.84rem;
}

/* --------------------------------------------------------------------------
   Páginas legales
   -------------------------------------------------------------------------- */

.legal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 5vw, 56px);
  margin: 48px auto;
  max-width: 820px;
  box-shadow: 0 6px 22px rgba(11, 34, 57, 0.05);
}

.legal h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.025em; line-height: 1.2; }

.legal .updated {
  display: inline-block;
  margin: 14px 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--glacier-dark);
  background: rgba(23, 169, 191, 0.1);
  border-radius: 999px;
  padding: 4px 14px;
}

.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal h3 { font-size: 1.04rem; margin: 24px 0 8px; }

.legal p, .legal li { color: #2c4257; font-size: 0.97rem; }
.legal p { margin: 12px 0; }
.legal ul, .legal ol { margin: 12px 0 12px 22px; }
.legal li { margin-bottom: 6px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legal th { background: var(--snow); font-size: 0.85rem; }

.legal .aviso {
  background: var(--snow);
  border: 1px solid var(--line);
  border-left: 4px solid var(--glacier);
  border-radius: var(--radius-m);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.92rem;
  color: var(--slate);
}

.legal .table-scroll { overflow-x: auto; }

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

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

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