/* ==========================================================================
   San Antonio Salud Dental — hoja de estilos
   Tema claro único (rubro salud: fondos blancos/claros)
   ========================================================================== */

:root {
  /* Superficies (claras) */
  --ground: #f5f9f9;
  --surface: #ffffff;
  --surface-2: #e9f3f2;
  --surface-3: #f0f7f6;

  /* Texto */
  --ink: #112430;
  --ink-soft: #44575f;
  --ink-mute: #586b71;
  --line: #dce9e7;

  /* Marca */
  --teal: #0e9b95;
  --teal-deep: #0a6f6a;
  --teal-soft: #6fcac4;
  --navy: #163752;
  --navy-deep: #0e2739;

  /* Acción */
  --wa: #0f7d3e;
  --wa-deep: #0b6231;

  /* Elevación */
  --shadow-sm: 0 1px 2px rgba(30, 41, 51, 0.07), 0 3px 10px rgba(30, 41, 51, 0.05);
  --shadow-md: 0 12px 28px rgba(30, 41, 51, 0.1);
  --shadow-lg: 0 26px 56px rgba(30, 41, 51, 0.14);

  /* Métricas */
  --maxw: 1160px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  /* Tipografía */
  --f-display: "Spectral", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  accent-color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--teal);
}

img {
  display: block;
  max-width: 100%;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p {
  margin: 0;
}
a {
  color: inherit;
}

/* Superficies del navegador */
::selection {
  background: color-mix(in srgb, var(--teal) 26%, transparent);
  color: var(--ink);
}
* {
  scrollbar-color: var(--teal-soft) transparent;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--teal) 45%, var(--line));
  border-radius: 20px;
  border: 3px solid var(--ground);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition:
    transform 0.18s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--wa:hover {
  background: var(--wa-deep);
  box-shadow: var(--shadow-lg);
}

.btn--teal {
  background: #0a756f;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--teal:hover {
  background: #075b56;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--light:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* --------------------------------------------------------------------------
   Barra de navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ground) 85%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand__logo {
  height: 60px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav__link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav__link:hover {
  color: var(--ink);
}
.site-nav__link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 720px) {
  .site-nav__links {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--surface-2) 0%, transparent 62%);
  opacity: 0.5;
}
.hero__content {
  position: relative;
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 54px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero__title {
  font-size: clamp(40px, 6.4vw, 64px);
}
.hero__title em {
  font-style: normal;
  color: var(--teal-deep);
}

.hero__lede {
  margin-top: 22px;
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 600;
}

.chip svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex: none;
}

.hero__media {
  position: relative;
}

.hero__frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
  background: var(--surface-2);
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
  padding: 13px 18px 13px 14px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.badge__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}

.badge__icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.badge__title {
  font-weight: 800;
  font-size: 14.5px;
  display: block;
  line-height: 1.15;
}
.badge__sub {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-weight: 600;
}

@media (max-width: 480px) {
  .badge {
    left: 10px;
  }
}

/* Apila el hero y evita que la imagen se comprima en pantallas medianas/móviles */
@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0 44px;
  }
  .hero__media {
    max-width: 440px;
  }
}

@media (max-width: 600px) {
  .hero__frame {
    aspect-ratio: 4 / 3.6;
  }
}

/* Animación de entrada (único momento con motion) */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}

.hero__media.rise {
  transform: translateY(24px) scale(0.985);
}

.rise--1 {
  animation-delay: 0.05s;
}
.rise--2 {
  animation-delay: 0.14s;
}
.rise--3 {
  animation-delay: 0.23s;
}
.rise--4 {
  animation-delay: 0.32s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .hero__media.rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Estructura de secciones
   -------------------------------------------------------------------------- */
.section {
  padding: 86px 0;
}

.section-head {
  max-width: 660px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head__title {
  font-size: clamp(30px, 4.6vw, 46px);
}
.section-head__text {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* Reduce el espaciado vertical de las secciones en responsive */
@media (max-width: 900px) {
  .section {
    padding: 58px 0;
  }
  .services {
    margin-top: 40px;
  }
  .location__grid {
    margin-top: 36px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 44px 0;
  }
  .cta-card {
    padding: 46px 24px;
  }
}

/* --------------------------------------------------------------------------
   Servicios (columnas editoriales)
   -------------------------------------------------------------------------- */
.services {
  background: var(--surface-2);
}

.services__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 30px;
  margin-top: 54px;
  padding: 0;
  list-style: none;
}

.service {
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.service__icon {
  display: block;
  width: 40px;
  height: 40px;
  color: var(--teal);
  margin-bottom: 18px;
}
.service__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.service__title {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.service__text {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 30px;
  }
}

@media (max-width: 520px) {
  .services__list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service {
    padding: 26px 0;
    border-top: 1px solid var(--line);
  }
  .service:first-child {
    border-top: 2px solid var(--ink);
  }
}

/* --------------------------------------------------------------------------
Bloque foto + texto
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split--reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

@media (max-width: 900px) {
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-2);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo--wide {
  aspect-ratio: 16 / 10;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));  
}
.photo--square {
  aspect-ratio: 1 / 1;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));  
}

.prose-lead {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}

.feature__icon svg {
  width: 21px;
  height: 21px;
}
.feature__title {
  font-weight: 800;
  font-size: 16px;
}
.feature__text {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
Comunidad (cita) — tratamiento claro
   -------------------------------------------------------------------------- */
.community {
  background: var(--surface-2);
}

.quote {
  position: relative;
  margin: 0;
}

.quote__text {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.32;
  color: var(--navy);
  margin-top: 10px;
}

.quote__cite {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 22px;
}

.community__sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 20px;
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
Ubicación
   -------------------------------------------------------------------------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .location__grid {
    grid-template-columns: 1fr;
  }
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 4px 2px;
}

.info__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex: none;
}

.info__icon svg {
  width: 22px;
  height: 22px;
}
.info__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 700;
}
.info__value {
  font-size: 17px;
  font-weight: 700;
  margin-top: 3px;
  font-style: normal;
}
a.info__value {
  text-decoration: none;
}
a.info__value:hover {
  color: var(--teal-deep);
}
.info__sub {
  font-size: 14px;
  color: var(--ink-mute);
}

.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 360px;
  background: var(--surface-2);
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

/* El iframe de Google Maps llena el contenedor de forma responsive */
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.map__label {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.map__marker {
  width: 34px;
  height: 34px;
  color: var(--teal-deep);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25));
}
.map__cta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
}
.map__cta .btn {
  width: 100%;
  justify-content: center;
}

/* --------------------------------------------------------------------------
CTA final
   -------------------------------------------------------------------------- */
.cta-final {
  text-align: center;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, #0a756f 0%, #064f4a 100%);
  border-radius: var(--r-xl);
  padding: 64px 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -160px;
  right: -120px;
}

.cta-card__title {
  color: #fff;
  font-size: clamp(30px, 4.8vw, 46px);
  position: relative;
}
.cta-card__text {
  margin-top: 14px;
  color: #fff;
  font-size: 18px;
  position: relative;
}

.cta-card__actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-card .btn--wa {
  background: #fff;
  color: #0a756f;
  box-shadow: var(--shadow-md);
}
.cta-card .btn--wa:hover {
  background: #eafaf7;
}

/* --------------------------------------------------------------------------
Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 50px 0 32px;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer__brand {
  max-width: 330px;
}
.footer__brand .brand__logo {
  height: 120px;
}
.footer__tagline {
  margin-top: 14px;
  color: var(--ink-mute);
  font-size: 14.5px;
}

.footer__col h2 {
  font-family: var(--f-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 700;
}

.footer__col a,
.footer__col p {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 9px;
}

.footer__col a:hover {
  color: var(--teal-deep);
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-size: 13.5px;
}
