/* ==========================================================================
   Kikilos · Links — estilos
   ========================================================================== */

/* ---------- Variables de diseño ---------- */
:root {
  --bg: oklch(0.965 0.012 85);
  --surface: oklch(0.99 0.005 85);
  --ink: oklch(0.24 0.03 170);
  --ink-soft: oklch(0.32 0.05 170);
  --ink-dark: oklch(0.2 0.03 170);
  --on-dark: oklch(0.97 0.01 85);
  /* Acento: turquesa oscuro derivado del cian de marca (contraste 5.2:1 sobre el fondo) */
  --accent: oklch(0.50 0.10 220);
  --accent-dot: #6DDDF2;
  --accent-tint: oklch(0.93 0.04 210);
  --accent-tint-ink: oklch(0.40 0.08 220);
  --green: oklch(0.68 0.15 150);
  --green-tint: oklch(0.93 0.03 150);
  --green-on: oklch(0.99 0.01 150);

  /* Color de marca (botones) */
  --brand: #6DDDF2;
  --brand-hover: #4CCBE3;
  --brand-border: #6DDDF2;
  --on-brand: oklch(0.24 0.03 170);

  --line: oklch(0.24 0.03 170 / .08);
  --line-strong: oklch(0.24 0.03 170 / .12);
  --ink-70: oklch(0.24 0.03 170 / .75);
  --ink-60: oklch(0.24 0.03 170 / .6);
  --chip-bg: oklch(0.24 0.03 170 / .06);

  --font-sans: 'Hanken Grotesk', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: oklch(0.32 0.05 170); text-decoration: none; }
a:hover { color: oklch(0.42 0.09 220); }

button { font-family: var(--font-sans); }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(0.72 0.17 150 / .5); }
  70%  { box-shadow: 0 0 0 12px oklch(0.72 0.17 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.72 0.17 150 / 0); }
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-sans);
  color: var(--ink);
  padding-bottom: 110px;
}
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 13px;
}
.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-dot);
}
.topbar__actions { display: flex; gap: 8px; }

.pill-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font: 600 13px var(--font-sans);
  cursor: pointer;
}
.pill-btn--ghost {
  border: 1.5px solid var(--brand-border);
  background: transparent;
  color: inherit;
}
.pill-btn--ghost:hover { background: rgb(109 221 242 / .18); }
.pill-btn--solid {
  border: none;
  background: var(--brand);
  color: var(--on-brand);
}
.pill-btn--solid:hover { background: var(--brand-hover); }

/* ---------- Perfil ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: rise .6s ease both;
}
.avatar { position: relative; width: 132px; height: 132px; }
.avatar__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed var(--brand);
}
.avatar__img {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
  background: #fff;
}
.avatar__status {
  position: absolute;
  right: 2px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--on-dark);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 10px oklch(0.24 0.03 170 / .15);
}
.avatar__status[hidden] { display: none; }
.avatar__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.68 0.17 150);
  animation: pulse 2s infinite;
}
.profile__text { display: flex; flex-direction: column; gap: 6px; }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.profile__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -.01em;
}
.profile__name em { font-style: italic; color: var(--accent); }
.profile__bio {
  margin: 8px auto 0;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* Características de Ana: un badge por rol, con icono de color */
.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 16px 7px 7px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px -10px oklch(0.24 0.03 170 / .35);
}
.badge__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.badge__icon .icon { width: 17px; height: 17px; fill: currentColor; }
.badge__icon--coral { background: oklch(0.94 0.05 20);  color: oklch(0.55 0.2 25); }
.badge__icon--amber { background: oklch(0.96 0.07 90);  color: oklch(0.58 0.15 65); }
.badge__icon--teal  { background: var(--accent-tint);   color: var(--accent); }
.badge__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: oklch(0.24 0.03 170 / .95);
  text-wrap: balance;
}
/* Frase de misión, separada y más tenue */
.profile__mission {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-70);
  text-wrap: balance;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--chip-bg);
}

/* ---------- Acciones rápidas ---------- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  animation: rise .6s .08s ease both;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 10px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}
.quick-action:hover { color: var(--ink); }
/* Con 5 botones, el último ocupa todo el ancho en 2 columnas */
.quick-action:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Principal (Capacitación): color de marca */
.quick-action--training { background: var(--brand); border-color: var(--brand); }
.quick-action--training:hover { background: var(--brand-hover); }
/* Cada acción con su propio color: fondo pastel + icono saturado */
.quick-action--tns { background: oklch(0.94 0.045 240); border-color: oklch(0.85 0.07 240); }
.quick-action--tns .quick-action__icon { color: oklch(0.52 0.18 250); }
.quick-action--baby { background: oklch(0.94 0.05 150); border-color: oklch(0.85 0.08 150); }
.quick-action--baby .quick-action__icon { color: oklch(0.5 0.14 150); }
.quick-action--kids { background: oklch(0.96 0.07 90); border-color: oklch(0.88 0.1 85); }
.quick-action--kids .quick-action__icon { color: oklch(0.58 0.15 65); }
.quick-action--kikilos { background: oklch(0.94 0.05 20); border-color: oklch(0.86 0.08 20); }
.quick-action--kikilos .quick-action__icon { color: oklch(0.55 0.2 25); }

.quick-action__icon {
  display: grid;
  place-items: center;
  height: 28px;
  color: var(--ink);
}
.quick-action__icon .icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* ---------- Encabezado de sección ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 4px;
}
.section-head__num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent);
}
.section-head__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-head__line { flex: 1; height: 1px; background: var(--line-strong); }

/* ---------- Tarjeta de enlace ---------- */
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  min-height: 68px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.link-card:hover,
.link-card:focus-visible {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px oklch(0.24 0.03 170 / .35);
}
.link-card__mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 20px;
}
.link-card--warm .link-card__mark { background: var(--accent-tint); }

/* Tarjeta destacada (Capacitación): borde cian + icono sobre fondo de marca */
.link-card--highlight { border: 1.5px solid var(--brand-border); }
.link-card__mark--icon .icon { width: 22px; height: 22px; fill: currentColor; }
.link-card__mark--brand { background: var(--brand); color: var(--on-brand); }

/* Marca con logo: recuadro blanco; el logo se ajusta dentro sin desbordar */
.link-card .link-card__mark--logo {
  display: block;
  width: 104px;          /* logos anchos (TNS) */
  height: 44px;
  padding: 4px 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.link-card .link-card__mark--logo-square { width: 56px; height: 56px; padding: 5px; }  /* logos cuadrados (Kikilos) */
.link-card__mark--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Sobre de correo: mismo icono y colores que la acción rápida "Email" */
.link-card__mark--mail { background: oklch(0.96 0.07 90); color: oklch(0.58 0.15 65); }
.link-card__mark--mail .icon { width: 22px; height: 22px; fill: currentColor; }

.link-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.link-card__title { font-weight: 700; font-size: 15px; }
.link-card__sub { font-size: 13px; color: var(--ink-60); }
.link-card__sub--ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card__arrow { font-size: 18px; color: var(--accent); }

/* ---------- Video ---------- */
.video {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 12;
  background: var(--ink-dark);
}
.video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video__shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, oklch(0.18 0.03 170 / .85));
}
.video__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: oklch(0.18 0.03 170 / .55);
  backdrop-filter: blur(8px);
  color: oklch(0.98 0.01 85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.video__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(0.7 0.18 25);
}
.video__mute {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 13px var(--font-sans);
  cursor: pointer;
}
.video__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: oklch(0.98 0.01 85);
}
.video__title { font-family: var(--font-serif); font-size: 28px; line-height: 1.05; }
.video__hint { font-size: 13px; opacity: .85; }

/* ---------- Redes ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.social {
  position: relative;
  width: 52px;          /* tamaño estándar de botón de red social */
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.social:hover,
.social:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px rgb(0 0 0 / .45);
}
/* Colores de cada red, con glifo blanco (tonos ajustados para que el texto blanco se lea bien) */
/* Instagram: el naranja queda en la esquina superior derecha; el icono y el nombre sobre rosa/morado */
.social--ig { background: linear-gradient(225deg, #F58529 0%, #DD2A7B 40%, #8134AF 100%); }
.social--fb { background: #166FE5; }
.social--yt { background: #E62117; }
.social__mark { display: grid; }
.social__mark .icon { width: 26px; height: 26px; fill: currentColor; }
/* Nombre solo para lectores de pantalla */
.social__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 0 0;
  text-align: center;
}
.footer__copy {
  height: 44px;
  padding: 0 18px;
  border: 1.5px dashed var(--brand-border);
  border-radius: 999px;
  background: transparent;
  font: 600 13px var(--font-sans);
  color: inherit;
  cursor: pointer;
}
.footer__legal { font-size: 12px; color: oklch(0.24 0.03 170 / .55); }

/* ---------- Barra fija de WhatsApp ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 45%);
  pointer-events: none;
}
.sticky-cta__link {
  pointer-events: auto;
  width: 100%;
  max-width: 444px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 14px 30px -12px #6DDDF2;
}
.sticky-cta__link:hover { color: var(--on-brand); }
.sticky-cta__text { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__title { font-weight: 700; font-size: 15px; }
.sticky-cta__sub { font-size: 12px; opacity: .75; }
.sticky-cta__btn {
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-on);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 13px;
  font-weight: 600;
  animation: rise .25s ease both;
}
.toast[hidden] { display: none; }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Layout (móvil primero: una columna; escritorio: dos columnas)
   ========================================================================== */
.layout,
.layout__side,
.layout__rest {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

/* Tablet: columna un poco más ancha */
@media (min-width: 640px) {
  .container { max-width: 600px; }
}

/* Escritorio: perfil centrado y contenido a ancho completo */
@media (min-width: 960px) {
  .container {
    max-width: 1120px;
    padding: 0 32px;
    gap: 36px;
  }
  /* Perfil centrado arriba (columna angosta), el resto va debajo a ancho completo */
  .layout { display: block; }
  .layout__side { max-width: 860px; margin: 0 auto; }
  .layout__rest { gap: 36px; }

  /* Perfil: badges a la izquierda, texto de la plataforma a la derecha */
  .profile__bio {
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-top: 12px;
  }
  .badges { width: auto; flex: none; align-items: stretch; }
  .profile__mission {
    flex: 1 1 0;
    max-width: 380px;
    margin: 0;
    padding: 0 0 0 36px;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    font-size: 17px;
    line-height: 1.55;
    text-align: left;
  }

  /* Imágenes anchas en vez de verticales */
  .video { aspect-ratio: 16 / 9; }

  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .quick-action:last-child:nth-child(odd) { grid-column: auto; }
  .quick-action { min-height: 110px; }
  .quick-action:hover { transform: translateY(-2px); }
  .quick-action { transition: transform .2s; }

  .sticky-cta { justify-content: flex-end; padding-right: max(32px, calc((100vw - 1120px) / 2 + 32px)); }
}

/* ---------- Union de logos (Kikilos + Shark Tank) ---------- */
.alliance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.alliance__logo {
  flex: 1 1 0;
  min-width: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}
.alliance__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.alliance__logo--text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
  border: 1px dashed var(--line-strong);
}
.alliance__plus {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.alliance__text {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-70);
}
