/* ==========================================================================
   Ana Fajardo · 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 de Ana (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; }
.section--anchor { scroll-margin-top: 20px; }

/* ---------- 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: cover;
  object-position: top;
  background: oklch(0.88 0.03 150);
}
.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: 4px auto 0;
  max-width: 36ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: oklch(0.24 0.03 170 / .9);
  text-wrap: pretty;
}
.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(4, minmax(0, 1fr));
  gap: 8px;
  animation: rise .6s .08s ease both;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}
.quick-action:hover { color: inherit; }
/* WhatsApp: verde oficial de la marca con glifo blanco */
.quick-action--primary {
  --wa: #25D366;
  background: var(--wa);
  border: none;
  color: var(--ink);
}
.quick-action--primary:hover { color: var(--ink); }
.quick-action--primary .quick-action__icon { color: #fff; }
/* Cada acción con su propio color: fondo pastel + icono saturado */
.quick-action--call { background: oklch(0.94 0.045 240); border-color: oklch(0.85 0.07 240); }
.quick-action--call .quick-action__icon { color: oklch(0.52 0.18 250); }
.quick-action--mail { background: oklch(0.96 0.07 90); border-color: oklch(0.88 0.1 85); }
.quick-action--mail .quick-action__icon { color: oklch(0.58 0.15 65); }
.quick-action--map { background: oklch(0.94 0.05 20); border-color: oklch(0.86 0.08 20); }
.quick-action--map .quick-action__icon { color: oklch(0.55 0.2 25); }

.quick-action__icon {
  display: grid;
  place-items: center;
  height: 26px;
  color: var(--ink);
}
.quick-action__icon .icon {
  width: 24px;
  height: 24px;
  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); }
/* Marca con logo de TNS (más ancha que las demás) */
.link-card__mark--logo {
  width: 104px;
  height: 44px;
  padding: 3px 6px;
  background: #fff;
  border: 1px solid var(--line);
}
.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); }

/* ---------- Destacado ---------- */
.feature {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-soft);
  color: oklch(0.98 0.01 85);
  box-shadow: 0 30px 60px -30px oklch(0.24 0.03 170 / .6);
}
.feature:hover { color: oklch(0.98 0.01 85); }
.feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.2 0.03 170 / .05) 30%, oklch(0.2 0.03 170 / .92) 100%);
}
.feature__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feature__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__title {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.02;
  text-wrap: balance;
}
.feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: .9;
  text-wrap: pretty;
}
.feature__cta {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Cursos ---------- */
.courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.course-card__tag {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-tint-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.course-card__title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.08;
}
.course-card__meta { font-size: 12px; color: var(--ink-60); }
.course-card__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 700;
}
.course-card__cta:hover { background: var(--brand-hover); color: var(--on-brand); }

/* ---------- 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;
}

/* ---------- Ubicación ---------- */
.location {
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.location__map {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  filter: saturate(.6) contrast(1.05);
}
.location__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.location__name { font-weight: 700; font-size: 15px; }
.location__address { margin-top: 2px; font-size: 13px; color: oklch(0.24 0.03 170 / .65); }
.location__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* ---------- Botones genéricos ---------- */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}
.btn--solid { background: var(--brand); color: var(--on-brand); }
.btn--solid:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--outline { border: 1.5px solid var(--brand-border); color: inherit; }
.btn--outline:hover { background: rgb(109 221 242 / .18); color: inherit; }

/* ---------- 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: 480px; margin: 0 auto; }
  .layout__rest { gap: 36px; }

  /* Imágenes anchas en vez de verticales */
  .feature { aspect-ratio: 2 / 1; }
  .feature__content { max-width: 560px; }
  .video { aspect-ratio: 16 / 9; }
  .location { display: grid; grid-template-columns: 1.2fr 1fr; }
  .location__map { height: 100%; min-height: 280px; }
  .location__body { justify-content: center; padding: 24px; }

  .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)); }
}
