/* ════════════════════════════════════════════════════════════
   ANVIC — Odontología & Estética Facial
   Paleta: azul marino (logo) + celeste suave
   ════════════════════════════════════════════════════════════ */
:root {
  --ink: #0f2b3a;
  --brand: #114161;
  --brand-dark: #0c3149;
  --brand-soft: #e9f3f9;
  --sky: #a5d4e6;
  --sky-strong: #62a8cd;
  --sky-soft: #eef8fc;
  --bg: #ffffff;
  --bg-soft: #f4f9fc;
  --muted: #5c7382;
  --line: #e3edf3;
  --radius: 18px;
  --shadow: 0 20px 45px -22px rgba(17, 48, 66, .25);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

/* ─────────── Tipografía ─────────── */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -.5px; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.12rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 620px; margin-bottom: 2.8rem; }
.section__head p { color: var(--muted); margin-top: .8rem; font-size: 1.05rem; }

/* ─────────── Botones ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .98rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px rgba(17, 65, 97, .6); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--sky { background: var(--sky); color: var(--brand-dark); padding: .6rem 1.2rem; font-size: .9rem; }
.btn--sky:hover { background: var(--sky-strong); color: #fff; }
.btn--ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--ghost:hover { background: var(--brand-soft); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn--wa { background: #1faa5c; color: #fff; box-shadow: 0 12px 26px -12px rgba(31, 170, 92, .6); }
.btn--wa:hover { background: #178f4c; }
.btn--small { padding: .6rem 1.15rem; font-size: .88rem; }

/* ─────────── Navegación ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(17, 48, 66, .25); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 84px; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 50px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a:not(.btn) { font-size: .92rem; font-weight: 600; color: var(--ink); opacity: .85; transition: color .15s ease, opacity .15s ease; }
.nav__links a:not(.btn):hover { color: var(--brand); opacity: 1; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─────────── Hero ─────────── */
.hero {
  padding: clamp(8rem, 13vw, 10.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(17, 65, 97, .10), transparent 60%),
    radial-gradient(700px 380px at -10% 100%, rgba(165, 212, 230, .28), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero__lead { margin: 1.4rem 0 1.9rem; color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 2.2rem; font-size: .9rem; font-weight: 700; color: var(--ink); }
.hero__tags .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; margin-right: .45rem; }
.hero__tags .dot--sky { background: var(--sky-strong); }
.hero__tags li { display: inline-flex; align-items: center; }

.hero__visual { position: relative; }
.photo-slot svg, .photo-slot img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-slot img { display: block; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.map-slot svg, .map-slot iframe { border-radius: var(--radius); box-shadow: var(--shadow); }
.map-slot iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; }

.hero__card--float {
  position: absolute; left: -14px; bottom: 34px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: .8rem 1.2rem; display: flex; flex-direction: column;
  animation: bob 4s ease-in-out infinite;
}
.hero__card--float strong { font-size: .95rem; }
.hero__card--float span { font-size: .78rem; color: var(--muted); }
.hero__card--float2 {
  position: absolute; right: -8px; top: -16px;
  background: var(--sky-soft); border: 1px solid rgba(98, 168, 205, .35);
  border-radius: 14px; padding: .8rem 1.2rem; display: flex; flex-direction: column;
  animation: bob 5s ease-in-out 1s infinite;
}
.hero__card--float2 strong { font-size: .95rem; color: var(--brand); }
.hero__card--float2 span { font-size: .78rem; color: var(--brand); opacity: .8; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ─────────── Servicios ─────────── */
.grid { display: grid; gap: 1.3rem; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(17, 65, 97, .4); }
.service__icon { font-size: 1.9rem; line-height: 1; display: inline-block; margin-bottom: .9rem; }
.service h3 { margin-bottom: .45rem; }
.service p { font-size: .92rem; color: var(--muted); }

.section--soft .service { background: #fff; }

/* ─────────── Por qué ANVIC ─────────── */
.why-grid { grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.why { background: var(--brand-soft); border-radius: var(--radius); padding: 1.7rem 1.5rem; position: relative; overflow: hidden; }
.why__n {
  position: absolute; top: .7rem; right: 1rem;
  font-family: var(--font-head); font-size: 3.4rem; font-weight: 600;
  color: rgba(17, 65, 97, .14); line-height: 1;
}
.why h3 { margin-bottom: .5rem; }
.why p { font-size: .9rem; color: var(--muted); }

/* ─────────── CTA turnos ─────────── */
.cta { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__box {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 65%, #2f6b8f);
  color: #fff; border-radius: 26px; text-align: center;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 30px 60px -25px rgba(12, 49, 73, .55);
}
.cta__box h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: .6rem; }
.cta__box p { opacity: .92; margin-bottom: 1.9rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ─────────── Contacto ─────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }

.info-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list__icon { font-size: 1.4rem; line-height: 1.2; }
.info-list strong { font-size: .98rem; }
.info-list p { color: var(--muted); font-size: .95rem; margin-top: .1rem; }
.info-list a { color: var(--brand); font-weight: 600; }
.info-list a:hover { text-decoration: underline; }

/* ─────────── Footer ─────────── */
.footer { background: #0b2739; color: #d6e6f0; padding: 3.2rem 0 2.2rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1.6rem; }
.brand--footer .brand__logo { height: 46px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .9rem; font-weight: 600; }
.footer__links a { color: #d6e6f0; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .82rem; opacity: .7; }

/* ─────────── WhatsApp flotante ─────────── */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1faa5c; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(31, 170, 92, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ─────────── Animaciones (reveal) ─────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─────────── Responsive ─────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }

  .nav__inner { height: 76px; }
  .brand__logo { height: 42px; }

  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: #fff; padding: 1rem 5% 1.6rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -22px rgba(17, 48, 66, .3);
    transform: translateY(-130%);
    transition: transform .28s ease;
  }
  .nav.open .nav__links { transform: none; }
  .nav__links a { padding: .75rem .2rem; font-size: 1rem; }
  .nav__links .btn { justify-content: center; margin-top: .5rem; }
  .nav__burger { display: block; }
}

@media (max-width: 560px) {
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .hero__card--float { left: 6px; bottom: 22px; padding: .6rem .9rem; }
  .hero__card--float2 { right: 2px; top: -10px; padding: .6rem .9rem; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}
