/* Linktree del Dr. Luis Villalpando · propuesta 2 de Diseño (octubre 2026) */
@font-face { font-family: "Quicksand"; src: url("assets/quicksand-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #2c72c6;
  --blue-dark: #235fa9;
  --navy: #234e88;
  --bg: #dbe1e6;
  --ink: #151c26;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .2));
  --title: "Quicksand", "Varela Round", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* Fondo: formas del ícono de la marca muy tenues, como en la propuesta */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 40%, rgba(255, 255, 255, .35), transparent 42%),
    radial-gradient(circle at 90% 85%, rgba(255, 255, 255, .3), transparent 38%);
}
.bg::before, .bg::after {
  content: "";
  position: absolute;
  background: url("assets/icono-azul-v1.webp") no-repeat center / contain;
  opacity: .045;
}
.bg::before { width: 640px; height: 603px; left: -300px; top: 34%; }
.bg::after { width: 560px; height: 528px; right: -270px; bottom: -120px; transform: rotate(-6deg); }

.page {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 18px 16px calc(36px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Encabezado */
.hero {
  position: relative;
  width: 100%;
  min-height: 214px;
  padding: 20px 14px 16px 41%;
  border-radius: 26px;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 30px rgba(35, 78, 136, .22);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: url("assets/icono-blanco-v1.webp") no-repeat center / contain;
  opacity: .09;
  pointer-events: none;
}
.hero::before { width: 330px; height: 311px; left: -95px; top: -60px; }
.hero::after { width: 300px; height: 283px; right: -120px; bottom: -150px; }
.hero-photo {
  position: absolute;
  z-index: 0;
  left: -8%;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 52%;
  object-fit: cover;
  object-position: top center;
}
.hero-info { position: relative; z-index: 1; }
.hero h1 {
  margin: 0;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(25px, 7.3vw, 33px);
  line-height: 1.04;
  letter-spacing: .2px;
  -webkit-text-stroke: .6px #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, .55);
}
.specialty { margin: 6px 0 12px; font-size: clamp(13px, 3.6vw, 15px); line-height: 1.3; }
.phones { display: flex; align-items: center; gap: 9px; }
.phone-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}
.phone-badge svg { width: 17px; height: 17px; fill: var(--blue); }
.phone-list a { display: block; font-size: 14px; line-height: 1.38; font-variant-numeric: tabular-nums; }
.phone-list a:hover { text-decoration: underline; }
.urgent {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  margin-top: 11px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 14px rgba(10, 30, 70, .22);
  transition: transform .15s, box-shadow .15s;
}
.urgent svg {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--blue);
  fill: #fff;
}
.urgent-label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.urgent-number { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.urgent:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10, 30, 70, .28); }

/* Video */
.video-card {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #c8d2dc;
  box-shadow: 0 10px 24px rgba(35, 78, 136, .16);
}
.video-card video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Botones con contorno (agenda y reseña) */
.stack { width: min(100%, 360px); display: grid; gap: 12px; }
.btn-outline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 8px 18px 8px 66px;
  border: 1.5px solid var(--navy);
  border-radius: 18px;
  background: var(--glass);
  color: var(--blue);
  font-size: 17px;
  box-shadow: 0 6px 16px rgba(35, 78, 136, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn-outline strong { font-weight: 700; }
.btn-outline .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  transform: translateY(-50%);
}
.btn-outline .ico svg { width: 23px; height: 23px; fill: #fff; }
.btn-outline .ico img { width: 30px; height: 30px; }
.btn-outline:hover, .place:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(35, 78, 136, .14), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-review { width: min(100%, 360px); min-height: 50px; padding: 8px 18px; font-size: 16px; margin-top: 2px; }

/* Consultorios */
.places {
  width: min(100%, 380px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.place {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 8px 12px;
  border: 1.5px solid var(--navy);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: 0 6px 16px rgba(35, 78, 136, .08), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .15s, box-shadow .15s;
}
.pin {
  position: absolute;
  top: -21px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  transform: translateX(-50%);
}
.pin svg { width: 21px; height: 21px; fill: #fff; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8)); }
.place h2 {
  margin: 0 0 6px;
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(19px, 5.4vw, 23px);
  line-height: 1.04;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--blue);
  -webkit-text-stroke: .5px var(--blue);
}
.place p { margin: 0; font-size: 12px; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.route {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.route::after { content: "↗"; font-size: 13px; }

/* Botones sólidos (redes y sitio) */
.stack-solid { width: min(100%, 330px); margin-top: 4px; }
.btn-solid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 60px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(44, 114, 198, .25);
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn-solid svg {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  fill: #fff;
  transform: translateY(-50%);
}
.btn-solid svg.stroke { fill: none; stroke: #fff; stroke-width: 1.7; }
.btn-solid:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(44, 114, 198, .32); }

@media (max-width: 360px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .hero { padding-left: 39%; padding-right: 10px; }
  .phone-list a { font-size: 13px; }
  .urgent-number { font-size: 14px; }
  .btn-outline { font-size: 16px; }
}
@media (min-width: 700px) {
  .page { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
