/* =========================================================
   Dr. Francisco Parada Díaz — Landing
   Concepto moderno: tipografía geométrica + gradientes vibrantes
   Paleta: azul · celeste · cian sobre fondo luminoso
   ========================================================= */

:root {
  --blue:      #2563eb;
  --sky:       #0ea5e9;
  --cyan:      #22d3ee;
  --azure:     #3b82f6;
  --aqua:      #38bdf8;

  --grad:      linear-gradient(135deg, #2563eb 0%, #0ea5e9 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(37,99,235,.12), rgba(34,211,238,.14));

  --bg:        #eef4fd;
  --ink:       #0f1d36;   /* texto principal */
  --slate:     #33415c;
  --muted:     #6b7a96;
  --line:      rgba(15, 29, 54, 0.07);

  --card-bg:   rgba(255, 255, 255, 0.74);
  --card-brd:  rgba(255, 255, 255, 0.9);
  --shadow:    0 40px 90px -35px rgba(30, 64, 160, 0.45);
  --radius:    20px;
  --radius-lg: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fondo de blobs vibrantes ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite;
}
.aurora__blob--1 { width: 44vmax; height: 44vmax; top: -16vmax; left: -12vmax;
  background: radial-gradient(circle, var(--blue), transparent 70%); }
.aurora__blob--2 { width: 40vmax; height: 40vmax; bottom: -16vmax; right: -12vmax;
  background: radial-gradient(circle, var(--cyan), transparent 70%); opacity: .42; animation-delay: -7s; }
.aurora__blob--3 { width: 34vmax; height: 34vmax; top: 36%; left: 52%;
  background: radial-gradient(circle, var(--sky), transparent 70%); opacity: .4; animation-delay: -13s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(5vmax, 3vmax) scale(1.1); }
  66%      { transform: translate(-4vmax, -3vmax) scale(0.94); }
}

/* ---------- Tarjeta principal (glass) ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 448px;
  padding: clamp(28px, 6vw, 42px) clamp(20px, 5vw, 34px) 28px;
  text-align: center;
  background: var(--card-bg);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(140deg, rgba(255,255,255,.95), transparent 45%, rgba(37,99,235,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Logo ---------- */
.logo {
  position: absolute;
  top: clamp(14px, 3vw, 20px);
  right: clamp(14px, 3vw, 20px);
  width: clamp(56px, 14vw, 72px);
  height: clamp(56px, 14vw, 72px);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 10px 22px -12px rgba(8,47,90,.45); }

/* ---------- Avatar ---------- */
.avatar {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 2px auto 22px;
  border-radius: 50%;
  padding: 3px;                 /* grosor del anillo */
  background: var(--grad);      /* el anillo delgado */
  display: grid;
  place-items: center;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}
.avatar__fallback {
  position: absolute;
  z-index: 1;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 64px;
  color: #fff;
  letter-spacing: 1px;
}
.avatar--empty img { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Intro ---------- */
.intro { margin-bottom: 28px; }
.intro h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 7vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.surgeon {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}
.role {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.role__badge {
  display: inline-block;
  padding: 5px 11px;
  font-size: clamp(9.5px, 2.55vw, 11.5px);
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1.4;
  color: var(--blue);
  background: var(--grad-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tagline {
  margin: 16px auto 0;
  max-width: 330px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Sello de confianza (Google) ---------- */
.trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 16px auto 0;
  padding: 7px 15px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 26px -18px rgba(30, 64, 160, .55);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}
.trust:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -18px rgba(30, 64, 160, .65); }
.trust__stars { color: #fbbc05; font-size: 14px; letter-spacing: 2px; line-height: 1; }
.trust__txt { font-size: 12px; font-weight: 500; color: var(--slate); line-height: 1; }
.trust__txt strong { font-weight: 700; color: var(--ink); }

/* ---------- Línea de acompañamiento ---------- */
.lede {
  margin: 14px auto 0;
  max-width: 340px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--slate);
}

/* ---------- Áreas / asociación rápida ---------- */
.areas {
  margin: 18px 0 22px;
}
.areas__label {
  font-family: 'Outfit', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.areas__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1;
  color: var(--ink);
  box-shadow: 0 8px 18px -16px rgba(30, 64, 160, .5);
}
.tag svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--sky);
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.links__label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  margin: 8px 2px 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.links__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.links__label:first-child { margin-top: 0; }
.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px -18px rgba(64, 51, 160, 0.5);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.link::after {
  /* brillo que cruza al hacer hover */
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}
.link:hover, .link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(109, 94, 252, 0.4);
  box-shadow: 0 22px 40px -20px rgba(64, 51, 160, 0.6);
  outline: none;
}
.link:hover::after, .link:focus-visible::after { left: 130%; }
.link:active { transform: translateY(-1px) scale(.99); }

.link__icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--grad-soft);
}
.link__icon svg { width: 22px; height: 22px; }
.link__icon .link__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

/* Iconos por tipo de botón */
.link--andes .link__icon {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,.55);
}
.link--tele .link__icon {
  color: #0d6efd;
  background: linear-gradient(135deg, rgba(13,110,253,.16), rgba(32,201,255,.18));
}
.link--proc .link__icon {
  color: #0891b2;
  background: linear-gradient(135deg, rgba(8,145,178,.16), rgba(34,211,238,.2));
}
.link--wa .link__icon {
  color: #25d366;
  background: linear-gradient(135deg, rgba(37,211,102,.17), rgba(37,211,102,.08));
}
.link--mail .link__icon {
  color: #ea4335;
  background: linear-gradient(135deg, rgba(234,67,53,.14), rgba(251,188,5,.16));
}
.link--ig .link__icon {
  color: #e1306c;
  background: linear-gradient(135deg, rgba(64,93,230,.18), rgba(225,48,108,.2), rgba(245,96,64,.2));
}
.link--about .link__icon {
  color: var(--blue);
  background: linear-gradient(135deg, rgba(37,99,235,.16), rgba(14,165,233,.18));
}
.link--portal .link__icon {
  color: var(--sky);
  background: linear-gradient(135deg, rgba(14,165,233,.16), rgba(34,211,238,.2));
}
.link--disabled {
  opacity: 0.62;
  filter: grayscale(0.22);
  pointer-events: none;
  cursor: not-allowed;
}

.link__text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.link__text strong { font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.link__text small { font-size: 12px; font-weight: 400; color: var(--muted); }

.link__arrow {
  flex: 0 0 auto;
  font-size: 18px;
  color: var(--blue);
  transform: translateX(0);
  transition: transform .3s ease;
}
.link:hover .link__arrow { transform: translateX(5px); }

/* Botón destacado: Agenda Andes Salud */
.link--primary {
  color: #fff;
  background: var(--grad);
  border: 1px solid transparent;
  box-shadow: 0 18px 38px -16px rgba(109, 94, 252, 0.75);
}
.link--primary .link__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}
.link--primary .link__text small { color: rgba(255, 255, 255, .82); }
.link--primary .link__arrow { color: #fff; }
.link--primary:hover { box-shadow: 0 26px 48px -18px rgba(37, 99, 235, 0.85); }

/* ---------- Botón flotante WHATSAPP ---------- */
.wa-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 34px -10px rgba(37, 211, 102, 0.7);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.wa-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 38px -10px rgba(37, 211, 102, 0.85); }
.wa-fab:active { transform: scale(.96); }
.wa-fab svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.foot {
  margin-top: 26px;
  font-size: 11.5px;
  letter-spacing: .2px;
  color: var(--muted);
  opacity: .9;
}

/* ---------- Reseñas de Google ---------- */
.reviews {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  box-shadow: 0 22px 44px -34px rgba(30, 64, 160, .5);
  text-decoration: none;
  color: var(--ink);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s;
}
.reviews:hover { transform: translateY(-2px); box-shadow: 0 26px 48px -30px rgba(30, 64, 160, .6); }
.reviews__g { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; }
.reviews__g svg { width: 34px; height: 34px; }
.reviews__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.reviews__txt strong { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; }
.reviews__stars { color: #fbbc05; font-size: 15px; letter-spacing: 2px; }
.reviews__txt small { font-size: 12px; color: var(--muted); }
.reviews__cta {
  flex: 0 0 auto;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: var(--grad);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(14, 165, 233, .8);
}
@media (max-width: 420px) {
  .reviews__cta { padding: 7px 11px; font-size: 12px; }
}

/* ---------- Animación de entrada (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob, .avatar__ring { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
  .link, .link__arrow { transition: none; }
}
