/* =============================================================
   HINT — /es/soulmate/welcome  ·  clon 1:1
   Valores tomados de getComputedStyle() sobre la página original
   (desktop 1280x720 y móvil 375x812).

   ÍNDICE
   00. RESET / BASE
   01. TIPOGRAFÍA (Inter)
   02. LAYOUT SHELL
   03. HEADER
   04. HERO (contenedor)
   05. SOCIAL PROOF
   06. TITULAR
   07. ANIMACIÓN RIVE
   08. CTA
   09. DESTACADO EN (marquesina)
   10. LEGAL
   11. FOOTER
   12. BREAKPOINTS
   ============================================================= */


/* =============================================================
   00. RESET / BASE   (equivalente a Tailwind preflight, recortado)
   ============================================================= */
/* Variables globales del original (:root) */
:root {
  --max-width: 1536px;
  --header-height: 64px;
  --mobile-nav-bar-height: 60px;
  --gap-large: 58px;
  --gap-medium-large: 32px;
  --gap-medium: 24px;
  --gap-medium-small: 16px;
  --gap-small: 8px;
  --transition: 0.25s ease-in-out;
  --min-width: 360px;
  --font-color-primary: #0d0d0e;
  --font-color-secondary: #ffffff;
  --bg-color-primary: #ffffff;
  --bg-color-secondary: #0d0d0e;
  --scrollbar-track-color: var(--bg-color-primary);
  --scrollbar-thumb-color: var(--font-color-primary);
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid #ebebec; }
* { margin: 0; padding: 0; }

/* El original OCULTA la barra de scroll de forma global (width/height 0).
   Sin esto la página quedaría 15px más estrecha que el original. */
::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-track {
  margin: 0;
  background-color: var(--scrollbar-track-color);
  border-radius: 0;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb-color);
  border: 2px solid var(--scrollbar-track-color);
  border-radius: 1rem;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  background-color: #fff;
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
  height: 100%;
  font-family: Inter, sans-serif, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "MS PGothic";
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: rgb(17, 24, 28);
}

h1, h2, h3, p, ul, li { font: inherit; list-style: none; }
a   { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
button {
  font: inherit; color: inherit; background: none;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
hr { border: 0; color: inherit; }


/* =============================================================
   01. TIPOGRAFÍA — Inter variable (subsets servidos por el original)
   ============================================================= */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: u+00??, 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: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format("woff2");
  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;
}


/* =============================================================
   02. LAYOUT SHELL — los 3 divs que envuelven header+main
   ============================================================= */
.h-full { height: 100%; }
.w-full { width: 100%; }

.app-shell {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* clase marcadora del original: no lleva estilos propios */
.container-component-main { display: block; }


/* =============================================================
   03. HEADER — sticky, blur, sombra "small" de HeroUI
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: #f4f4f5;
  border-bottom: 1px solid rgb(235, 235, 236);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
          backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
      0 0 5px 0 rgba(0, 0, 0, .02),
      0 2px 10px 0 rgba(0, 0, 0, .06),
      0 0 1px 0 rgba(0, 0, 0, .3);
}

.site-header__inner {
  position: relative;
  margin: 0 auto;
  height: 56px;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;                    /* ≥1329px */
}

/* Logo */
.hint-logo { display: block; }
.hint-logo--header { width: 46px; height: 24px; color: #111827; }
.hint-logo--footer { width: 58px; height: 28px; color: #fff; }


/* =============================================================
   04. HERO — contenedor central (max-w-xl)
   ============================================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 16px;            /* móvil: py-8 */
  max-width: 576px;              /* max-w-xl */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


/* =============================================================
   05. SOCIAL PROOF — "3M+ bocetos creados" / "18K+ reseñas"
   ============================================================= */
.social-proof {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
  justify-content: space-between;
  background-color: #fff;
  text-align: center;
}

.social-proof__item {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;                      /* → 8px en ≥480px */
  padding: 8px 0;
  background-color: rgb(250, 245, 255);
  border-radius: 6px;
}

.social-proof__item p {
  font-size: 12px;
  line-height: 16px;
  color: rgb(30, 41, 59);
}

.social-proof__num { margin-right: 4px; font-weight: 600; }


/* =============================================================
   06. TITULAR
   ============================================================= */
.hero__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  align-items: center;
}

.hero__title {
  display: block;
  width: 100%;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  text-align: center;
}

.hero__title-accent { color: rgb(99, 33, 165); }


/* =============================================================
   07. ANIMACIÓN RIVE
   ============================================================= */
.hero__anim {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 215px;
}

.hero__anim-box {
  width: 100%;
  aspect-ratio: 894 / 639;
  max-width: calc(45vh * 894 / 639);   /* móvil */
  margin-left: auto;
  margin-right: auto;
}

.hero__anim-inner { width: 100%; height: 100%; }

#rive-canvas {
  width: 100%;
  height: 100%;
  vertical-align: top;
}


/* =============================================================
   08. CTA "Comenzar"
   ============================================================= */
.cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.cta-sticky {
  position: sticky;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.cta {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 100%;
  max-width: 400px;
  min-width: 80px;
  height: auto;
  min-height: 56px;
  padding: 0 16px;

  border: 2px solid transparent;
  border-radius: 8px;
  background-color: rgb(6, 111, 222);
  color: #fff;

  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  white-space: normal;
  text-align: center;

  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: subpixel-antialiased;
  transform: translateZ(0);
  outline: none;

  transition-property: transform, color, background, background-color, border-color,
                       text-decoration-color, fill, stroke, opacity;
  transition-timing-function: ease;
  transition-duration: .25s;
}
.cta:hover        { opacity: .8; }
.cta:active       { transform: scale(.97); }
.cta:focus-visible{ z-index: 10; outline: 2px solid rgb(6, 111, 222); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }


/* =============================================================
   09. DESTACADO EN — marquesina infinita
   ============================================================= */
.press {
  display: flex;
  align-items: center;
  width: 100%;
}

.press__label-wrap {
  flex-shrink: 0;
  height: 32px;
  padding-inline-start: 16px;
  padding-inline-end: 8px;
  border-inline-end: 1px solid #8BA0BF;
}

.press__label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: right;
  color: #8BA0BF;
}

.press__viewport {
  display: flex;
  width: 100%;
  overflow-x: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(to right, #000, #000, transparent 0,
                #000 var(--scroll-shadow-size),
                #000 calc(100% - var(--scroll-shadow-size)), transparent);
          mask-image: linear-gradient(to right, #000, #000, transparent 0,
                #000 var(--scroll-shadow-size),
                #000 calc(100% - var(--scroll-shadow-size)), transparent);
}

.press__track {
  display: flex;
  width: max-content;
  align-items: stretch;
  gap: var(--gap);
  animation: scrolling-banner var(--duration) linear infinite;
}
.press__track:hover { animation-play-state: paused; }

[dir="rtl"] .press__track { --scroll-dir: 1; }

.press__item {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  min-width: 140px;
}
/* Los logos conservan su ancho intrínseco (Newsweek mide 149px y
   desborda el min-width de 140px, igual que en el original). */
.press__item img { width: auto; max-width: none; flex-shrink: 0; }

@keyframes scrolling-banner {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(var(--scroll-dir, -1) * (100% / 3 + var(--gap) / 3))); }
}


/* =============================================================
   10. LEGAL
   ============================================================= */
.legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  text-align: center;
  color: rgb(138, 138, 140);
}
.legal a { text-decoration: underline; }


/* =============================================================
   11. FOOTER
   ============================================================= */
.site-footer { width: 100%; margin-top: auto; }

.site-footer__band {
  width: 100%;
  margin-top: 40px;              /* móvil: mt-10 */
  padding: 24px 0;               /* móvil: py-6 */
  background-color: rgb(30, 27, 75);
}

.site-footer__inner {
  margin: 0 auto;
  display: flex;
  width: 100%;
  flex-direction: column;
  max-width: 1280px;
  padding: 0 16px;               /* móvil */
}

.site-footer__cols {
  display: flex;
  flex-direction: column;        /* móvil */
  align-items: flex-start;
  justify-content: flex-end;
}

/* --- marca + redes --- */
.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  margin-inline-end: auto;
}

.footer-social { display: flex; gap: 16px; color: #fff; }
.footer-social img { width: 24px; height: 24px; }

/* --- atención al cliente --- */
.footer-care { color: #fff; margin-top: 24px; margin-inline-end: 80px; }
.footer-care__links { display: flex; flex-direction: column; gap: 8px; }

.footer-heading {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.footer-heading--tight { margin-bottom: 8px; }

.footer-link {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #fff;
}

/* --- listas legal / recursos --- */
.footer-lists {
  display: flex;
  flex-direction: column;        /* móvil */
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-lists__right { display: flex; flex-direction: column; justify-content: space-between; }

/* --- selector de idioma --- */
.lang-wrap { position: relative; }

.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 104px;
  height: 40px;
  min-width: 80px;
  padding: 0 12px;
  margin-top: 16px;

  border: 2px solid rgb(235, 235, 236);
  border-radius: 12px;
  background: transparent;

  font-size: 14px;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: subpixel-antialiased;
  outline: none;
  transition: none;
}
.lang-btn__value { display: flex; min-width: 0; flex: 1 1 0%; align-items: center; gap: 8px; }
.lang-btn__flag  { display: inline-block; height: 12px; width: 20px; flex-shrink: 0;
                   border-radius: 2px; object-fit: cover; }
.lang-btn__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
                   font-size: 14px; font-weight: 500; line-height: 1; color: #fff; }
.lang-btn__chevron { flex-shrink: 0; color: #fff; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-btn__chevron { transform: rotate(180deg); }

/* Popover de idiomas (31 idiomas). En el original es un popover de HeroUI
   que se abre hacia arriba porque no hay sitio debajo. */
.lang-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;

  width: 200px;
  padding: 4px;
  background-color: #fff;
  border-radius: 14px;
  box-shadow:
      0 0 15px 0 rgba(0, 0, 0, .03),
      0 2px 30px 0 rgba(0, 0, 0, .08),
      0 0 1px 0 rgba(0, 0, 0, .3);

  font-size: 14px;
  line-height: 20px;
  color: rgb(17, 24, 28);
  -webkit-font-smoothing: subpixel-antialiased;
}
.lang-popover[hidden] { display: none; }

.lang-scroll {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.lang-menu { width: 100%; display: flex; flex-direction: column; gap: 2px; outline: none; }

.lang-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-item:hover,
.lang-item:focus {
  background-color: hsl(240 4.88% 83.92%);   /* HeroUI "default" en claro */
  color: hsl(0 0% 0%);
  transition: background-color .15s, color .15s;
}

.lang-item__flag  { display: inline-block; width: 20px; height: 12px; flex-shrink: 0;
                    border-radius: 2px; object-fit: cover; }
.lang-item__label { flex: 1 1 0%; font-size: 14px; font-weight: 400;
                    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-item__check { width: 12px; height: 12px; flex-shrink: 0; color: inherit; }
.lang-item__check svg { width: 100%; height: 100%; }
.lang-item__check polyline { transition: stroke-dashoffset 200ms; }

/* --- separador + copyright --- */
.footer-divider {
  flex-shrink: 0;
  width: 100%;
  height: 1px;
  background-color: rgb(212, 212, 216);
  margin-bottom: 24px;
}

.site-footer__bottom {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-size: 14px;
  line-height: 20px;
  text-align: start;
  color: rgb(203, 213, 225);
}


/* =============================================================
   12. BREAKPOINTS
   (los reales del original: xsm 480 · md 768 · lg 1024 ·
    max-[1320px] y max-[1328px] para el padding lateral)
   ============================================================= */

/* --- ≤1328px : el header recupera padding lateral --- */
@media (max-width: 1328px) {
  .site-header__inner { padding: 0 24px; }
}

/* --- ≤1320px : el footer recupera padding lateral --- */
@media (max-width: 1320px) {
  .site-footer__inner { padding: 0 24px; }
}

/* --- xsm ≥480px --- */
@media (min-width: 480px) {
  .social-proof__item { gap: 8px; }
}

/* --- md ≥768px --- */
@media (min-width: 768px) {
  .hero            { padding: 72px 16px; }
  .hero__anim-box  { max-width: calc(35vh * 894 / 639); }

  .site-footer__band  { margin-top: 64px; }
  .site-footer__cols  { flex-direction: row; }
  .footer-care        { margin-top: 0; }
  .footer-lists       { flex-direction: row; gap: 80px; margin-top: 0; }
}

/* --- ≤767px : padding lateral estrecho --- */
@media (max-width: 767px) {
  .site-header__inner { padding: 0 16px; }
  .site-footer__inner { padding: 0 16px; }
}

/* --- lg ≥1024px --- */
@media (min-width: 1024px) {
  .hint-logo--header { width: 64px; height: 32px; }
  .cta               { width: 400px; }

  .site-footer__band   { padding: 48px 0; }
  .footer-lists        { margin-bottom: 48px; }
  .site-footer__bottom { flex-direction: row; align-items: flex-start; }
}
