/* Indilab · indilab.studio
   Colores de marca: azul tinta #26306A, crema #FAF7F0
   Tipografía: Outfit (variable, servida desde /assets/fonts) */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --tinta: #26306A;
  --tinta-oscura: #11173F;
  --tinta-suave: #3A4380;
  --crema: #FAF7F0;
  --lila: #C9CEF2;
  --lila-claro: #D6D9F2;
  --acento: #DDF26B;
  --borde: rgba(38, 48, 106, .2);
  --ancho: 1280px;
  --margen: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: var(--tinta); }
a:hover { color: var(--tinta-oscura); }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; border-radius: 4px; }

.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--tinta); color: var(--crema); padding: 10px 16px; border-radius: 8px;
}
.saltar:focus { top: 16px; color: var(--crema); }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding-left: var(--margen); padding-right: var(--margen); }

.etiqueta { font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; text-align: center;
  transition: transform .2s ease, background-color .2s ease;
}
.boton:hover { transform: translateY(-1px); }
.boton-acento { background: var(--acento); color: var(--tinta); }
.boton-acento:hover { color: var(--tinta); background: #d2ea4f; }
.boton-tinta { background: var(--tinta); color: var(--crema); font-weight: 500; font-size: 15px; padding: 12px 22px; min-height: 44px; }
.boton-tinta:hover { color: var(--crema); background: var(--tinta-oscura); }
.boton-borde { color: var(--crema); border: 1px solid rgba(250, 247, 240, .4); font-weight: 500; }
.boton-borde:hover { color: var(--crema); border-color: var(--crema); }
.enlace-simple { font-weight: 500; padding: 14px 4px; }

/* Cabecera */
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.logo img { height: 30px; width: auto; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-enlace a { text-decoration: none; }
.nav-enlace a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Portada */
.portada { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 96px; }
.portada-texto { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.portada h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: .98; font-weight: 600; letter-spacing: -.035em; }
.bajada { font-size: 20px; line-height: 1.5; max-width: 500px; color: var(--tinta-suave); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 8px; }

/* Carrusel de tarjetas */
.carrusel { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pila { position: relative; width: 100%; aspect-ratio: 3 / 2; --dx: 40px; --dy: 34px; }
.tarjeta {
  position: absolute; left: 0; bottom: 0; width: 84%;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 40px rgba(38, 48, 106, .18);
  transform-origin: bottom left;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .6s ease;
}
.tarjeta img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top center; }
.tarjeta-barra { height: 24px; background: var(--tinta); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.tarjeta-barra span { width: 8px; height: 8px; border-radius: 50%; background: rgba(250, 247, 240, .55); }
.tarjeta[data-pos="0"] { z-index: 5; transform: none; opacity: 1; }
.tarjeta[data-pos="1"] { z-index: 4; transform: translate(var(--dx), calc(var(--dy) * -1)) scale(.95); opacity: .8; }
.tarjeta[data-pos="2"] { z-index: 3; transform: translate(calc(var(--dx) * 2), calc(var(--dy) * -2)) scale(.9); opacity: .6; }
.tarjeta[data-pos="3"] { z-index: 2; transform: translate(calc(var(--dx) * 3), calc(var(--dy) * -3)) scale(.85); opacity: .4; }
.tarjeta[data-pos="4"] { z-index: 1; transform: translate(calc(var(--dx) * 3), calc(var(--dy) * -3)) scale(.85); opacity: 0; }
.tarjeta.saliendo { z-index: 6; transform: translate(-6%, 12%) rotate(-4deg) scale(1.04); opacity: 0; }

.carrusel-pie { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--tinta-suave); }
.carrusel-controles { display: flex; align-items: center; gap: 6px; }
.puntos { display: flex; gap: 6px; }
.puntos i { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(38, 48, 106, .25); transition: width .4s ease, background-color .4s ease; }
.puntos i.activo { width: 22px; background: var(--tinta); }
.boton-pausa {
  width: 44px; height: 44px; margin-right: -12px; border: 0; padding: 0; background: transparent;
  color: var(--tinta); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%;
}
.boton-pausa .icono-play { display: none; }
.boton-pausa[aria-pressed="true"] .icono-play { display: block; }
.boton-pausa[aria-pressed="true"] .icono-pausa { display: none; }

@media (prefers-reduced-motion: reduce) {
  .tarjeta, .puntos i { transition: none; }
}

/* Franja azul */
.franja { background: var(--tinta); color: var(--crema); }
.franja-fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 88px; padding-bottom: 88px; }
.franja-frase { flex: 1 1 620px; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; }
.franja-nota { flex: 0 1 300px; font-size: 16px; line-height: 1.55; color: var(--lila-claro); }

/* Servicios */
.servicios { display: flex; flex-direction: column; gap: 48px; padding-top: 112px; padding-bottom: 96px; }
.servicios-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.servicios-cabeza h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.03em; }
.servicios-cabeza p { max-width: 380px; font-size: 17px; color: var(--tinta-suave); }
.servicios-grilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.servicio { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; min-height: 420px; }
.servicio h3 { font-size: 36px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }
.servicio p { font-size: 17px; }
.servicio-etiqueta { font-size: 15px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.servicio picture { margin-top: auto; }
.servicio picture img { width: 100%; height: 150px; object-fit: cover; border-radius: 18px; }
.servicio-acento { background: var(--acento); }
.servicio-tinta { background: var(--tinta); color: var(--crema); }
.servicio-tinta p:not(.servicio-etiqueta) { color: var(--lila-claro); }
.servicio-lila { background: var(--lila); }

/* Omar */
.omar { padding-top: 32px; padding-bottom: 112px; }
.omar-grilla {
  border-top: 1px solid var(--borde); padding-top: 64px;
  display: grid; grid-template-columns: 280px minmax(0, 640px);
  grid-template-areas: "foto etiqueta" "foto texto";
  column-gap: 56px; row-gap: 20px; align-content: center;
}
.omar-foto { grid-area: foto; align-self: center; }
.omar-foto img { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; background: var(--lila); }
.omar-etiqueta { grid-area: etiqueta; align-self: end; }
.omar-texto { grid-area: texto; display: flex; flex-direction: column; gap: 20px; }
.omar-texto h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.025em; }
.omar-texto p { font-size: 18px; line-height: 1.6; color: var(--tinta-suave); }

/* Contacto y pie */
.contacto { padding: 0 16px 32px; }
.contacto-tarjeta {
  max-width: 1408px; margin: 0 auto; background: var(--tinta); color: var(--crema);
  border-radius: 36px; padding: 96px 48px 56px; display: flex; flex-direction: column; gap: 56px;
}
.contacto-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.contacto h2 { flex: 1 1 560px; font-size: clamp(40px, 6vw, 88px); line-height: .98; font-weight: 600; letter-spacing: -.035em; }
.contacto-botones { flex: 0 1 380px; display: flex; flex-direction: column; gap: 14px; }
.contacto-botones .boton { font-size: 17px; padding: 16px 28px; }
.contacto-pie {
  border-top: 1px solid rgba(250, 247, 240, .2); padding-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  font-size: 14px; color: var(--lila-claro);
}
.contacto-pie img { height: 26px; width: auto; position: relative; top: -4px; }

/* Teléfono */
@media (max-width: 640px) {
  :root { --margen: 24px; }

  .cabecera { position: sticky; top: 0; z-index: 10; background: var(--crema); border-bottom: 1px solid rgba(38, 48, 106, .1); }
  .cabecera-fila { padding-top: 16px; padding-bottom: 16px; padding-left: 20px; padding-right: 20px; }
  .logo img { height: 24px; }
  .nav-enlace { display: none; }
  .boton-tinta { font-size: 14px; padding: 12px 18px; }
  [id] { scroll-margin-top: 80px; }

  .portada { gap: 32px; padding-top: 28px; padding-bottom: 64px; }
  .portada-texto { gap: 20px; flex-basis: 100%; }
  .etiqueta { font-size: 12px; }
  .bajada { font-size: 17px; }
  .acciones { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 4px; }
  .acciones .boton { padding: 17px 24px; }
  .enlace-simple { text-align: center; }
  .carrusel { flex-basis: 100%; }
  .pila { --dx: 22px; --dy: 18px; }
  .tarjeta { border-radius: 12px; }
  .tarjeta-barra { height: 18px; gap: 4px; }
  .tarjeta-barra span { width: 6px; height: 6px; }
  .carrusel-pie { font-size: 13px; }

  .franja-fila { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .franja-nota { font-size: 15px; flex-basis: 100%; }

  .servicios { gap: 28px; padding-top: 72px; padding-bottom: 64px; }
  .servicios-cabeza { gap: 14px; }
  .servicios-cabeza p { font-size: 16px; }
  .servicios-grilla { grid-template-columns: 1fr; gap: 14px; }
  .servicio { border-radius: 24px; padding: 24px; gap: 14px; min-height: 0; }
  .servicio h3 { font-size: 30px; }
  .servicio p { font-size: 16px; }
  .servicio-etiqueta { font-size: 14px !important; }
  .servicio picture { margin-top: 6px; }
  .servicio picture img { height: 130px; border-radius: 16px; }

  .omar { padding-top: 0; padding-bottom: 80px; }
  .omar-grilla { padding-top: 48px; grid-template-columns: 132px 1fr; grid-template-areas: "foto etiqueta" "texto texto"; column-gap: 18px; }
  .omar-foto { align-self: end; }
  .omar-foto img { width: 132px; height: 132px; }
  .omar-etiqueta { padding-bottom: 6px; }
  .omar-texto { gap: 20px; }
  .omar-texto h2 { font-size: 34px; }
  .omar-texto p { font-size: 16px; }

  .contacto { padding: 0 10px 10px; }
  .contacto-tarjeta { border-radius: 28px; padding: 56px 22px 28px; gap: 32px; }
  .contacto-fila { gap: 32px; }
  .contacto h2 { font-size: 44px; flex-basis: 100%; }
  .contacto-botones { flex-basis: 100%; gap: 10px; }
  .contacto-botones .boton { font-size: 16px; }
  .contacto-pie { flex-direction: column; justify-content: center; gap: 12px; padding-top: 28px; font-size: 13px; }
  .contacto-pie img { height: 24px; top: 0; }
}
