/* ==========================================================================
   yamitim.com · Home (/)
   Carga después de base.css y sitio.css. Mobile first (375 px) → escritorio.
   Los componentes reutilizados (método, tarjetas de servicios, "Soy Yami",
   cifras, portátil) son copia de su VERSIÓN FINAL en about.css y taller.css.
   ========================================================================== */

/* Título de sección: la misma escala que en Sobre mí (~28 px celular, ~40 px escritorio) */
.home-title {
  font-size: clamp(1.75rem, 6.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 22ch;
}
@media (min-width: 900px) {
  .home-title { font-size: clamp(2rem, 2.9vw, 2.75rem); }
}

/* ---------- 1. Portada ---------- */
.home-hero {
  --fs: clamp(1.9rem, 8.2vw, 2.5rem);
  /* Mismo blanco del fondo de la foto, para que no se vea el recuadro (como en la portada de Sobre mí) */
  background: #FFFFFF;
  padding-top: calc(var(--nav-h) + 1.75rem);
  overflow: hidden;
}
.home-hero__grid {
  display: grid;
  gap: 2rem;
  padding-inline: var(--gutter);
}
.home-hero__title {
  font-size: var(--fs);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--ink);
}
.home-hero__accent {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 6.4vw, 2.4rem);   /* siempre ≥ 24 px (dorado profundo) */
  line-height: 1.1;
  color: var(--gold-deep);
}
.home-hero__sig { width: 112px; height: auto; margin-top: .35rem; }
.home-hero__action { margin-top: 1.5rem; }
@media (max-width: 899px) {
  /* En el celular la pregunta corre como texto seguido (sin renglones fijos ni palabras sueltas) */
  .home-hero__title .line,
  .home-hero__title .line > span { display: inline; }
  .js .hero .home-hero__title.lines .line > span { transform: none; }
  .js .hero .home-hero__title[data-reveal-group] { opacity: 0; transition: opacity 1s var(--ease); }
  .js .hero .home-hero__title[data-reveal-group].is-in { opacity: 1; }
  .home-hero .btn { padding-inline: 1.1rem; letter-spacing: 0; }
}
.home-hero__figure { margin: 0; justify-self: center; }
/* La foto tiene fondo blanco puro, igual que la portada: se funde con ella sin recorte.
   "multiply" se deja como seguro por si algún borde no es blanco puro. */
.home-hero__photo {
  width: min(84vw, 360px);
  height: auto;
  mix-blend-mode: multiply;
}

@media (min-width: 900px) {
  .home-hero {
    --fs: clamp(2rem, 3.4vw, 3.6rem);
    min-height: 100svh;
    padding-top: var(--nav-h);
    display: flex;
  }
  .home-hero__grid {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-left: clamp(2rem, 8vw, 110px);   /* la foto no va pegada al borde */
    padding-right: var(--gutter);
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "photo copy";
    column-gap: clamp(1.5rem, 3.5vw, 3.25rem);
    align-items: end;
  }
  .home-hero__figure { grid-area: photo; align-self: end; justify-self: start; }
  .home-hero__photo {
    width: auto;
    height: min(calc(100svh - var(--nav-h) - .75rem), 860px);
    max-width: 40vw;
    object-fit: contain;
    object-position: 50% 100%;
  }
  .home-hero__copy { grid-area: copy; align-self: center; padding-block: 2rem 3rem; }
  /* Los 3 renglones entran un poco más cada uno: siguen la silueta */
  .home-hero__title .line:nth-child(2) { padding-left: calc(var(--fs) * .32); }
  .home-hero__title .line:nth-child(3) { padding-left: calc(var(--fs) * .64); }
  .home-hero__after { padding-left: calc(var(--fs) * .64); }
  .home-hero__accent { margin-top: clamp(1.5rem, 3.6vh, 2.5rem); font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
  .home-hero__sig { width: 150px; }
  .home-hero__action { margin-top: clamp(1.25rem, 4vh, 2.5rem); }
}
@media (min-width: 1100px) {
  .home-hero__title .line > span { white-space: nowrap; }   /* los renglones no se parten */
}

/* ---------- 2. Cifras (banda centrada, como la referencia) ---------- */
.stats {
  background: var(--ivory-2);
  padding-block: clamp(2.5rem, 7vw, 3.75rem);
}
.stats__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 2rem;
  text-align: center;
}
.stats__list li { max-width: none; display: grid; justify-items: center; gap: .45rem; }
.stats__n {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}
/* Conteo animado (home.js): números de ancho fijo para que el texto no salte */
.stats__n { font-variant-numeric: tabular-nums; }
.stats__n [data-count] { display: inline-block; }
.stats__t { font-size: 1rem; line-height: 1.4; color: var(--ink); max-width: 24ch; }
@media (min-width: 700px) {
  .stats__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
  .stats__n { font-size: clamp(2.8rem, 4.6vw, 3.6rem); }
}

/* ---------- 3. Cómo puedo acompañarte (copia final de about.css → .ways / .way) ---------- */
.ways { scroll-margin-top: var(--nav-h); }
.ways__title { max-width: 16ch; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 7vw, 4rem); }
.ways__list { display: grid; gap: clamp(2.5rem, 7vw, 3rem); }
.way {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 420px;
}
/* Portada tipo "catálogo" (25 nov): recuadro de fondo y la portada al centro con sombra */
.way__media {
  aspect-ratio: 5 / 6;
  border-radius: 10px;
  background: var(--ivory-2);
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
}
.way__cover {
  display: block;
  width: 64%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(16, 47, 39, .10),
    0 14px 24px -8px rgba(16, 47, 39, .35),
    0 30px 50px -24px rgba(16, 47, 39, .45);
}
.way__sub { font-size: 1rem; font-weight: 600; letter-spacing: .01em; color: var(--ink); margin-top: -.25rem; }
.way__sub + .way__text { margin-top: 0; }
.way__name { font-size: clamp(1.25rem, 4.4vw, 1.4rem); font-weight: 600; line-height: 1.25; }
.way__text { font-size: 1.0625rem; color: var(--ink-soft); }
.way__facts {
  list-style: none;
  margin: .1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.way__facts li {
  max-width: none;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .9375rem;
  line-height: 1.35;
  color: var(--ink);
}
/* El botón queda siempre abajo, alineado entre las tres tarjetas */
.way__btn { align-self: flex-start; margin-top: auto; }
.way > :nth-last-child(2) { margin-bottom: 1.1rem; }
.way .wa { flex: none; }
.ways__note { margin-top: 2.5rem; font-size: 1rem; color: var(--ink-soft); }
.ways__note em { font-style: normal; }
@media (min-width: 900px) {
  .ways__list { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: stretch; }
  .way { max-width: none; }
}

/* ---------- 4. Soy Yami (copia final de taller.css → .guide; las cifras pasaron a la banda 2) ---------- */
.guide { background: var(--ivory-2); }
.guide__grid { display: grid; gap: clamp(2.5rem, 7vw, 4rem); align-items: center; }
.guide__photo {
  position: relative;
  width: min(62vw, 240px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 18px;
  box-shadow:
    0 2px 4px rgba(16, 47, 39, .08),
    0 14px 28px -8px rgba(16, 47, 39, .28),
    0 34px 60px -24px rgba(16, 47, 39, .35);
}
.guide__photo.ph::before { border-radius: 10px; }
.guide__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.guide__title { font-size: clamp(2.2rem, 8vw, 3.8rem); margin-bottom: 1.75rem; }
.guide__copy .lead { margin-bottom: 1.25rem; }
.guide__copy p { max-width: none; }
.guide__sig { width: 120px; height: auto; margin-top: 1.25rem; }
.guide__more { margin-top: .75rem; }
.guide__more .link { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(100% - 10px); }
.guide__grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .guide__grid { grid-template-columns: 1fr 2fr; column-gap: 4.5rem; align-items: start; }
  .guide__photo { width: 100%; max-width: 340px; justify-self: center; margin-top: 1rem; }
}

/* ---------- 5. Collage de fotos (como la referencia) ----------
   5 columnas: las de los lados más angostas y altas, la del centro empieza más abajo.
   Todas las fotos completas, con esquinas redondeadas. Medidas tomadas de la referencia
   (ancho total 1797: columnas 287 · 374 · 374 · 374 · 287, separación 25). */
.collage { padding-block: var(--section); }
.collage__grid {
  container-type: inline-size;
  display: flex;
  align-items: flex-start;
  column-gap: 1.4%;           /* % del propio collage (cqi aquí se mediría contra la página) */
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.collage__col { flex: 374 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1.4cqi; }
.collage__col--side { flex-grow: 287; }
.collage__col:nth-child(2), .collage__col:nth-child(4) { margin-top: 3.2cqi; }
.collage__col:nth-child(3) { margin-top: 5.3cqi; }
.collage__col figure {
  margin: 0;
  aspect-ratio: var(--ar, 3 / 4);
  border-radius: 1.2cqi;
  overflow: hidden;
  background: var(--ivory-2);
}
.collage__col img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Celular: solo las 3 columnas del centro, para que las fotos no queden diminutas */
@media (max-width: 699px) {
  .collage__grid { column-gap: 2.4%; }
  .collage__col { gap: 2.4cqi; }
  .collage__col--side { display: none; }
  .collage__col:nth-child(2), .collage__col:nth-child(4) { margin-top: 0; }
  .collage__col:nth-child(3) { margin-top: 6cqi; }
  .collage__col figure { border-radius: 10px; }
}
/* ---------- 6. Video (portátil de taller.css → .devices / .dev--laptop) ---------- */
.video { background: var(--ivory-2); }
.video__grid { display: grid; gap: clamp(2rem, 6vw, 3rem); align-items: center; }
.video__kick { color: var(--ink); margin-bottom: .9rem; }
.video__title { max-width: 18ch; }
.video__more { margin-top: 1.25rem; }
.video__more .link { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(100% - 10px); }
.devices {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
.dev { margin: 0; }
.dev--laptop { position: relative; width: 88%; margin-inline: auto; }
.dev__screen { position: relative; overflow: hidden; background: #111; }
.dev--laptop .dev__screen {
  aspect-ratio: 16 / 10;
  border: 2.2cqi solid #1c1c1e;
  border-bottom-width: 3cqi;
  border-radius: 2.6cqi 2.6cqi 0 0;
  box-shadow: 0 30px 60px -30px rgba(16, 47, 39, .55);
}
.dev__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev__base {
  position: relative;
  left: -7%;
  width: 114%;
  height: 2.2cqi;
  border-radius: 0 0 1.6cqi 1.6cqi;
  background: linear-gradient(180deg, #d9d6cf 0%, #b9b5ad 60%, #9d998f 100%);
  box-shadow: 0 14px 24px -12px rgba(16, 47, 39, .45);
}
.dev__base::before {           /* muesca para abrir la tapa */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 0 0 1cqi 1cqi;
  background: rgba(0, 0, 0, .12);
}
/* Botón de reproducir sobre la captura */
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 17, 13, .12);
  transition: background-color .4s var(--ease);
}
.video__play:hover { background: rgba(20, 17, 13, .25); }
.video__play:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.video__btn {
  display: grid;
  place-items: center;
  width: max(52px, 10cqi);
  height: max(52px, 10cqi);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease), background-color .3s;
}
.video__btn svg { width: 46%; height: 46%; margin-left: 8%; fill: var(--forest-2); }
.video__play:hover .video__btn { transform: scale(1.07); background: var(--gold-hover); }
.dev__screen.is-playing .video__play { display: none; }
.video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .video__grid { grid-template-columns: .8fr 1.2fr; column-gap: 4rem; }
  .dev--laptop { width: 86%; }
}

/* ---------- 7. Testimonios ---------- */
.voices { background: var(--paper); }
.voices__label { font-size: var(--fs-label); letter-spacing: .18em; color: var(--ink); margin-bottom: clamp(1.5rem, 4vw, 2rem); }
/* Collage de reseñas (mismo formato de tarjeta que las reseñas del taller) */
.wall { columns: 1; column-gap: 1.25rem; }
.wall .review {
  break-inside: avoid;
  display: block;
  margin: 0 0 1.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(16, 47, 39, .1);
  box-shadow: 0 1px 2px rgba(16, 47, 39, .06), 0 10px 30px -18px rgba(16, 47, 39, .3);
  padding: 1.25rem 1.4rem 1.35rem;
  font-family: var(--sans);
}
.wall .review__head { display: flex; align-items: center; gap: .75rem; margin: 0 0 .8rem; }
.wall .review__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c, var(--forest));
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
}
.wall .review__avatar--img { object-fit: cover; object-position: 50% 25%; }
.wall .review__who { display: grid; line-height: 1.25; min-width: 0; }
.wall .review__name { font-weight: 600; font-size: 1rem; color: #202124; }
.wall .review__meta { font-size: .9375rem; color: #5f6368; }
.wall .review__stars { margin: -.2rem 0 .6rem; color: #FBBC04; font-size: 1.05rem; letter-spacing: .08em; line-height: 1; }
.wall .review blockquote p { font-size: 1rem; line-height: 1.6; color: #3c4043; max-width: none; }
.wall .review--extra { display: none; }
@media (min-width: 600px) {
  .wall { columns: 2; }
  .wall .review--extra { display: block; }
}
@media (min-width: 1000px) {
  .wall { columns: 3; column-gap: 1.5rem; }
  .wall .review { margin-bottom: 1.5rem; }
}
.voices__more { margin-top: clamp(2.25rem, 6vw, 3rem); }
.voices__more .link { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(100% - 10px); }

/* Testimonios en video dentro de un celular tipo iPhone dibujado con CSS (sin marcas ni logos) */
.vts { margin-bottom: clamp(3rem, 8vw, 4.5rem); }
.vts__title { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.vts__row {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .75rem var(--gutter, 1.25rem) 1.75rem;
  margin-inline: calc(-1 * var(--gutter, 1.25rem));
}
.vt { flex: none; width: min(66vw, 250px); margin: 0; scroll-snap-align: center; }

/* Marco metálico (titanio) con esquinas muy redondeadas */
.vt__phone {
  position: relative;
  padding: 3px;
  border-radius: 46px;
  background: linear-gradient(145deg, #e9e6e1 0%, #a9a49c 22%, #f4f2ee 48%, #8e8981 76%, #d6d2cc 100%);
  box-shadow:
    0 2px 4px rgba(16, 47, 39, .12),
    0 22px 44px -16px rgba(16, 47, 39, .5);
}
/* Botones laterales: acción y volumen a la izquierda, encendido a la derecha */
.vt__phone::before,
.vt__phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8e8981, #cfcac3);
}
.vt__phone::before {
  left: -3px;
  top: 17%;
  height: 5%;
  box-shadow: 0 3.4em 0 #a9a49c, 0 6.6em 0 #a9a49c;
  height: 1.6em;
}
.vt__phone::after { right: -3px; top: 26%; height: 4.4em; }

/* Bisel negro fino y pantalla */
.vt__screen {
  position: relative;
  aspect-ratio: 9 / 18.5;
  padding: 7px;
  border-radius: 43px;
  background: #050505;
  overflow: hidden;
}
/* Isla dinámica */
.vt__screen::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 30%;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  z-index: 2;
  pointer-events: none;
}
.vt__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* llena la pantalla; solo recorta un poco los lados, los subtítulos quedan completos */
  border-radius: 36px;
  background: #000;
}

/* Botón grande de reproducir (se oculta cuando el video empieza) */
.vt__play {
  position: absolute;
  left: 50%;
  bottom: 20%;   /* abajo, para no tapar el texto de la portada */
  width: 60px;
  height: 60px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--forest);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
  transition: transform .2s ease;
}
.vt__play:hover { transform: translateX(-50%) scale(1.06); }
.vt__play svg { width: 24px; height: 24px; margin-left: 4px; }
.vt.is-playing .vt__play { display: none; }
.vt__cap { margin-top: 1rem; text-align: center; font-family: var(--sans); }
.vt__cap .review__name { font-weight: 600; color: #202124; }
.vt__cap .review__meta { color: #5f6368; }
@media (min-width: 700px) {
  .vts__row { justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; gap: clamp(2.5rem, 6vw, 5rem); }
  .vt { width: 270px; }
}
/* 25 nov: en el celular, un video debajo del otro (sin deslizar de lado) */
@media (max-width: 699px) {
  .vts__row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    overflow: visible;
    scroll-snap-type: none;
    margin-inline: 0;
    padding-inline: 0;
  }
  .vt { width: min(72vw, 270px); }
}

/* ---------- 8. Llamado final ---------- */
.final { background: var(--ivory); text-align: center; }
.final__inner { display: grid; justify-items: center; }
.final__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  line-height: 1.08;
  color: var(--forest);
  max-width: 20ch;
  text-wrap: balance;
}
.final__text {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}
.final__btn { margin-top: 2rem; }
.final__wa { margin-top: 1.25rem; font-size: 1rem; color: var(--ink-soft); }
.final__wa .link { display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(100% - 10px); }
