/* GRUPO STR — negro, blanco y Space Grotesk. Sin acento de color: el blanco es la acción. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #202020;
  --ink: #ffffff;
  --muted: #a6a6a6;           /* 8,3:1 sobre --bg */
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "PingFang SC", "Noto Sans", sans-serif;
  --m: clamp(16px, 2.5vw, 32px);           /* margen exterior, igual a los dos lados */
  --gap: clamp(112px, 14vw, 200px);        /* entre secciones */
  --t-sm: 0.875rem;   /* 14px */
  --t-md: 1.0625rem;  /* 17px, texto */
  --t-lg: clamp(1.25rem, 1.7vw, 1.625rem); /* párrafo grande */
  --t-xl: clamp(1.75rem, 2.6vw, 2.5rem);   /* títulos de sección */
  --t-xxl: clamp(4rem, 11.4vw, 12.5rem);   /* el nombre */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-md); line-height: 1.55;
  font-feature-settings: "ss01" 0; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html { scrollbar-color: #3a3a3a var(--bg); }

.skip { position: absolute; left: var(--m); top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 20; font-weight: 600; }
.skip:focus { top: 12px; }

.titulo { font-size: var(--t-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: 0;
  transition: transform .2s var(--ease), background-color .2s;
}
.boton:hover { background: #d9d9d9; }
.boton:active { transform: scale(.97); }
.boton--b { background: var(--surface-2); color: var(--ink); }
.boton--b:hover { background: #2e2e2e; }
.enlace { font-weight: 500; text-decoration: underline; transition: opacity .2s; }
.enlace:hover { text-decoration-thickness: 2px; }

/* ---------- cabecera ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--m); background: var(--bg);
}
.top__marca { font-weight: 700; font-size: var(--t-sm); letter-spacing: 0.01em; text-decoration: none; margin-right: auto; }
.top__nav { display: flex; gap: clamp(16px, 3vw, 40px); font-size: var(--t-sm); }
.top__nav a { text-decoration: none; color: var(--ink); padding: 8px 0; }
.top__nav a:hover { text-decoration: underline; }

.lang { position: relative; font-size: var(--t-sm); }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 2px; }
.lang summary::-webkit-details-marker { display: none; }
.lang svg { width: 18px; height: 18px; }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); padding: 8px 0; min-width: 190px; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.lang__list a { display: block; padding: 9px 18px; text-decoration: none; }
.lang__list a:hover, .lang__list a[aria-current] { background: var(--surface-2); }
[dir="rtl"] .lang__list { right: auto; left: 0; }

/* ---------- portada ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 96px var(--m) 32px;
}
.hero__nombre {
  text-align: center;
  font-size: clamp(4rem, 15.6vw, 17rem); font-weight: 700; line-height: .9; letter-spacing: -0.04em; white-space: nowrap;
}
.hero__apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 2vw, 32px); width: min(100%, 1120px); justify-self: center; margin-top: clamp(40px, 6vh, 72px); }
.hero__apps a { display: grid; justify-items: center; gap: 12px; text-decoration: none; font-size: var(--t-sm); text-align: center; }
.hero__apps img { width: clamp(56px, 6.4vw, 104px); height: auto; aspect-ratio: 1; border-radius: 22%; background: var(--surface-2); transition: transform .25s var(--ease); }
.hero__apps a:hover img { transform: translateY(-4px); }
.hero__apps a:hover span { text-decoration: underline; }
.hero__centro { align-self: center; display: grid; }
.hero__pie { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 16px; }
.hero__texto { grid-column: 6 / span 5; font-size: var(--t-lg); line-height: 1.35; max-width: 30ch; }
.hero__pie .boton { grid-column: 11 / span 2; justify-self: end; }

/* entrada de la portada: el nombre y luego los íconos, uno tras otro */
.js .hero__nombre, .js .hero__apps li { opacity: 0; transform: translateY(20px); }
.js .hero.listo .hero__nombre, .js .hero.listo .hero__apps li { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero.listo .hero__apps li:nth-child(1) { transition-delay: 270ms; }
.js .hero.listo .hero__apps li:nth-child(2) { transition-delay: 340ms; }
.js .hero.listo .hero__apps li:nth-child(3) { transition-delay: 410ms; }
.js .hero.listo .hero__apps li:nth-child(4) { transition-delay: 480ms; }
.js .hero.listo .hero__apps li:nth-child(5) { transition-delay: 550ms; }
.js .hero.listo .hero__apps li:nth-child(6) { transition-delay: 620ms; }

/* ---------- quiénes somos ---------- */
.nosotros { padding: var(--gap) var(--m) 0; }
.nosotros__fila { display: grid; grid-template-columns: 34% 1fr; }
.datos { display: grid; gap: 20px; align-content: start; font-size: var(--t-sm); padding-top: 6px; }
.datos dt { color: var(--muted); }
.datos dd { font-size: var(--t-md); font-weight: 500; }
.nosotros__texto { max-width: 66ch; }
.nosotros__texto .titulo { margin-bottom: 24px; }
.parrafo-grande { font-size: var(--t-lg); line-height: 1.38; }
.nosotros__fila--listas { margin-top: 120px; }
.nosotros__fila--listas .registro:first-child { grid-column: 2; }
.nosotros__fila--listas { grid-template-columns: 34% minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
.registro h3 { font-size: var(--t-md); font-weight: 600; margin-bottom: 14px; }
.registro li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: var(--t-sm); }
.registro li span:last-child { color: var(--muted); text-align: end; }

/* ---------- apps ---------- */
.apps { padding: var(--gap) var(--m) 0; }
.apps__cabeza { display: grid; grid-template-columns: 34% 1fr; align-items: start; margin-bottom: 72px; }
.filtro { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtro legend { padding: 0; font-size: var(--t-lg); margin-bottom: 18px; }
.filtro__opciones { display: flex; flex-wrap: wrap; gap: 10px; }
.filtro button {
  font: inherit; font-size: var(--t-sm); font-weight: 500; color: var(--ink); background: var(--surface-2); border: 0;
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.filtro button:hover { background: #2e2e2e; }
.filtro button:active { transform: scale(.96); }
.filtro button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filtro__aviso { margin-top: 14px; color: var(--muted); font-size: var(--t-sm); min-height: 1.4em; }

.lista-apps { display: grid; gap: 24px; }
.app {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); min-height: 560px;
  transition: background-color .35s;
}
.app__plato { display: grid; place-items: center; padding: 48px; overflow: hidden; background: var(--surface-2); }
.app__plato--alto img { width: min(300px, 70%); }
.app__plato--alto { padding-bottom: 0; align-items: end; }
.app__plato--ancho { padding: 40px 0 40px 40px; justify-items: start; }
.app__plato--ancho img { width: 118%; max-width: none; }
.app__plato--marca img { width: min(260px, 60%); }
.app__texto { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 16px; justify-content: center; max-width: 620px; }
.app__icono { width: 56px; height: 56px; border-radius: 13px; }
.app h3 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.app__frase { font-size: var(--t-lg); line-height: 1.3; }
.app__texto > p:not(.app__frase) { max-width: 48ch; }
.app__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.estado { font-weight: 600; }
.app:nth-child(even) .app__plato { order: 2; }
/* filtro: lo que no es para ti queda en segundo plano, sin bajar el contraste del texto */
.app.no-es .app__plato img { filter: grayscale(1) brightness(.45); }
.app.no-es { background: var(--bg); }
.app.no-es h3, .app.no-es .app__frase { color: var(--muted); }
.app__plato img { transition: filter .35s; }

/* ---------- sellos ---------- */
.sellos { padding: var(--gap) var(--m) 0; }
.sellos__titulo { font-size: clamp(2.5rem, 4.6vw, 4.25rem); font-weight: 700; line-height: .98; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }
.sellos__cuerpo { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 96px; align-items: stretch; }
.sellos__logos { grid-column: 1 / span 5; display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.sellos__logos img { background: var(--surface); width: 100%; height: 100%; min-height: 220px; object-fit: contain; padding: 6% 22%; }
.sellos__tabla { grid-column: 7 / span 6; display: grid; gap: 88px; align-content: center; }
.sello h3 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.sello dl div { display: grid; grid-template-columns: 30% 1fr; gap: 16px; padding: 6px 0; }
.sello dt { color: var(--muted); }
.sello__enlaces { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; font-weight: 500; font-size: var(--t-md); }
.sello__enlaces a:hover { text-decoration-thickness: 2px; }

/* ---------- contacto (invertido) ---------- */
.contacto {
  margin-top: var(--gap); min-height: 88svh; background: var(--ink); color: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto; padding: 56px var(--m) 40px;
}
.contacto__arriba { max-width: 34ch; }
.contacto__arriba .titulo { margin-bottom: 12px; }
.contacto__arriba p { font-size: var(--t-lg); line-height: 1.3; }
.contacto__correo {
  align-self: end; margin-bottom: 10vh; text-decoration: none; font-weight: 500; letter-spacing: -0.04em;
  font-size: clamp(2.6rem, 7.6vw, 9rem); line-height: .95; display: flex; flex-wrap: wrap; transition: opacity .25s;
}
.contacto__correo:hover { opacity: .7; }
.contacto__correo:hover span { text-decoration: underline; text-decoration-thickness: .05em; }
.contacto__abajo { display: flex; justify-content: space-between; gap: 24px; font-size: var(--t-sm); flex-wrap: wrap; }
.contacto__redes { display: flex; gap: 24px; }
.contacto :focus-visible { outline-color: var(--bg); }

/* ---------- pie ---------- */
.pie { padding: 64px var(--m) 32px; overflow: hidden; }
.pie__nombre { font-weight: 700; font-size: clamp(4rem, 15.8vw, 17rem); line-height: .82; letter-spacing: -0.045em; white-space: nowrap; }
.pie__fila { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 72px; }
.pie__lugares { grid-column: 1 / span 5; display: grid; gap: 6px; }
.pie__lugares a { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 600; text-decoration: none; }
.pie__lugares a:hover { text-decoration: underline; }
.pie__col { grid-column: span 3; }
.pie__col:first-of-type { grid-column: 7 / span 3; }
.pie__col h2 { font-size: var(--t-sm); font-weight: 600; margin-bottom: 10px; }
.pie__col li { padding: 4px 0; font-size: var(--t-sm); }
.pie__col a { color: var(--muted); text-decoration: none; }
.pie__col a:hover { color: var(--ink); text-decoration: underline; }
.pie__legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 96px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }

/* ---------- entradas ---------- */
.js [data-entra] > *, .js .app[data-entra] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-entra].visto > * { opacity: 1; transform: none; }
.js [data-entra].visto > *:nth-child(2) { transition-delay: 80ms; }
.js [data-entra].visto > *:nth-child(3) { transition-delay: 160ms; }
.js .contacto__correo[data-entra] > * { transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  .js [data-entra] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .hero__nombre, .js .hero__apps li { opacity: 1 !important; transform: none !important; }
}

/* ---------- escritorio pequeño / tableta ---------- */
@media (max-width: 1024px) {
  .contacto { min-height: 64svh; }
  .hero__texto { grid-column: 1 / span 8; }
  .hero__pie .boton { grid-column: 9 / span 4; }
  .sellos__logos { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .sellos__logos img { aspect-ratio: 1; min-height: 0; padding: 14%; }
  .sellos__tabla { grid-column: 1 / -1; }
}

/* ---------- móvil ---------- */
@media (max-width: 767px) {
  .top { gap: 12px; }
  .top__nav { gap: 14px; font-size: 14px; }
  .top__nav a:nth-child(3) { display: none; }
  .hero { padding-top: 88px; }
  .hero__nombre { font-size: 24vw; line-height: .86; white-space: normal; }
  .hero__apps { grid-template-columns: repeat(3, 1fr); row-gap: 24px; margin-top: 40px; }
  .hero__apps img { width: 64px; }
  .hero__pie { grid-template-columns: 1fr; }
  .hero__texto, .hero__pie .boton { grid-column: 1; justify-self: start; }
  .nosotros__fila, .nosotros__fila--listas, .apps__cabeza { grid-template-columns: 1fr; }
  .nosotros__texto { order: -1; }
  .datos { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .parrafo-grande { font-size: 1.1875rem; }
  .nosotros__fila--listas { margin-top: 64px; row-gap: 40px; }
  .nosotros__fila--listas .registro:first-child { grid-column: 1; }
  .apps__cabeza { gap: 24px; margin-bottom: 40px; }
  .app { grid-template-columns: 1fr; min-height: 0; }
  .app:nth-child(even) .app__plato { order: 0; }
  .app__plato { padding: 32px 32px 0; min-height: 280px; }
  .app__plato--marca { padding: 40px; }
  .app__plato--ancho { padding: 24px 0 24px 24px; }
  .app__plato--alto img { width: 62%; }
  .sellos__titulo { font-size: 9.5vw; }
  .sellos__cuerpo { margin-top: 48px; }
  .sello dl div { grid-template-columns: 34% 1fr; }
  .contacto { min-height: 86svh; }
  .contacto__correo { font-size: 11.5vw; flex-direction: column; margin-bottom: 8vh; }
  .contacto__abajo { flex-direction: column; }
  .pie__fila { grid-template-columns: 1fr 1fr; }
  .pie__lugares { grid-column: 1 / -1; }
  .pie__lugares a { font-size: 1.625rem; }
  .pie__col, .pie__col:first-of-type { grid-column: span 1; }
  .pie__legal { font-size: 13px; }
}
@media (max-width: 400px) { .top__nav a:nth-child(4) { display: none; } }
.no-js .filtro { display: none; }
.hero__nombre, .pie__nombre, .contacto__correo { direction: ltr; }
[dir="rtl"] .contacto__correo { justify-content: flex-end; }
.hero__apps img.con-fondo { padding: 10%; background: #262626; }
