/* ============================================================
   Dra. Alexandra Gutiérrez · Odontología Integral
   Paleta: turquesa dental + crema cálida + acentos dorados
   ============================================================ */

:root {
  --teal-900: #0b4f4e;
  --teal-700: #0d7a76;
  --teal-600: #11948f;
  --teal-500: #16a7a1;
  --teal-300: #7fd3cf;
  --teal-50:  #e9f7f6;

  --gold: #e0b15c;
  --gold-soft: #f3e4c6;

  --cream: #faf6f0;
  --cream-2: #f3ebe1;
  --ink: #223433;
  --ink-soft: #4f635f;
  --muted: #7b8c88;
  --white: #ffffff;
  --line: #e7ded2;

  --wa: #25d366;
  --wa-dark: #1ebe5a;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 6px 20px rgba(11, 79, 78, 0.06);
  --shadow: 0 18px 50px rgba(11, 79, 78, 0.12);
  --shadow-lg: 0 30px 70px rgba(11, 79, 78, 0.18);

  --maxw: 1160px;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; color: var(--teal-900); }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-300); }
.btn-ghost:hover { background: var(--teal-50); }
.btn-light { background: #fff; color: var(--teal-700); box-shadow: var(--shadow); }
.btn-wa { background: var(--wa); color: #073b1b; box-shadow: 0 10px 24px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-dark); color: #042c13; }
.wa-ico { font-size: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark img { height: 44px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--teal-900); font-weight: 600; }
.brand-text small { font-size: .72rem; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) { font-weight: 500; color: var(--ink-soft); font-size: .96rem; position: relative; padding: .2rem 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--teal-500); transition: width .25s ease;
}
.nav > a:not(.btn):hover { color: var(--teal-700); }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: .4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--teal-800, #0b4f4e); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); background:
  radial-gradient(1200px 500px at 80% -10%, var(--teal-50), transparent 60%),
  radial-gradient(900px 500px at 0% 110%, var(--gold-soft), transparent 55%),
  var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-block; background: #fff; color: var(--teal-700); font-weight: 600; font-size: .82rem;
  padding: .45rem 1rem; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--teal-600); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em;
  background: linear-gradient(90deg, var(--gold), var(--teal-300)); opacity: .5; border-radius: 4px;
}
.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--ink-soft); max-width: 46ch; margin: 1.3rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.8rem; }
.hero-trust li { font-size: .9rem; color: var(--ink-soft); }
.hero-trust strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--teal-700); }

.hero-media { position: relative; justify-self: center; }
.hero-photo {
  width: min(420px, 82vw); aspect-ratio: 4 / 5; border-radius: 40% 40% var(--radius-lg) var(--radius-lg) / 46% 46% var(--radius-lg) var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; position: relative; z-index: 2;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-media::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 180px; height: 180px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%); border-radius: 50%; z-index: 1;
}
.hero-media::after {
  content: ""; position: absolute; left: -24px; bottom: 30px; width: 120px; height: 120px;
  background: var(--teal-300); opacity: .25; border-radius: 50%; z-index: 0;
}
.hero-badge {
  position: absolute; right: -10px; bottom: 26px; z-index: 3;
  background: #fff; border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 600; color: var(--teal-900);
}
.badge-star { font-size: 1.4rem; }

/* ---------- Features ---------- */
.features { margin-top: -3rem; position: relative; z-index: 5; padding-bottom: 1rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  background: #fff; border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow);
}
.feature { text-align: center; padding: .6rem; }
.feature-ico {
  font-size: 1.6rem; width: 58px; height: 58px; margin: 0 auto .8rem; display: grid; place-items: center;
  background: var(--teal-50); border-radius: 16px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature p { font-size: .9rem; color: var(--muted); }

/* ---------- Section heads ---------- */
.section-eyebrow {
  display: inline-block; color: var(--teal-600); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: .7rem;
}
.section-head.center { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2, .about-copy h2, .contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-sub { color: var(--ink-soft); margin-top: .7rem; font-size: 1.02rem; }

/* ---------- About ---------- */
.about { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); position: relative; z-index: 2;
}
.about-accent {
  position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--teal-300);
  border-radius: var(--radius-lg); z-index: 1;
}
.about-copy h2 { margin-bottom: 1.2rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy em { color: var(--teal-700); font-style: italic; font-family: var(--font-display); }
.about-list { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; gap: .5rem; }
.about-list li { color: var(--ink); font-weight: 500; }

/* ---------- Services ---------- */
.services { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--cream-2); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-300); }
.service-ico {
  font-size: 1.5rem; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--teal-50), var(--gold-soft)); border-radius: 16px;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.service-card p { color: var(--ink-soft); font-size: .94rem; }
.services-note { text-align: center; margin-top: 2.4rem; color: var(--ink-soft); }
.services-note a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-700), var(--teal-900));
  color: #fff; padding: clamp(2.5rem, 5vw, 3.6rem) 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(224,177,92,.4), transparent 70%); border-radius: 50%;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .4rem; }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 1.2rem; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-ig { text-align: center; margin-top: 2.4rem; }
.gallery-ig p { color: var(--ink-soft); margin-bottom: 1rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-ico {
  flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.2rem;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
}
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-list a { color: var(--teal-700); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.editable { color: var(--ink-soft); font-weight: 500; }

.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: .3rem; }
.form-hint { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; }
.contact-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: .4rem; padding: .8rem 1rem; font-family: inherit; font-size: .96rem;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; resize: vertical;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-50);
}
.contact-form input.invalid { border-color: #e06b6b; box-shadow: 0 0 0 4px #fbe9e9; }
.form-mini { text-align: center; font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.8); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 2rem; align-items: center; padding-bottom: 2.4rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .brand-mark { background: none; }
.footer-brand .brand-mark img { height: 52px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand p { font-size: .88rem; margin-top: .2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: rgba(255,255,255,.8); font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(255,255,255,.1); border-radius: 50%; transition: background .2s ease, transform .2s ease;
}
.footer-social a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa);
  display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  box-shadow: 0 10px 30px rgba(37,211,102,.5); transition: transform .2s ease;
  animation: waPulse 2.6s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; }
  .hero-actions, .hero-trust { justify-content: center; }
  .lead { margin-inline: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-brand { flex-direction: column; text-align: center; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 1.25rem 1.6rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .32s ease; z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 1rem 0 0; justify-content: center; }
  .nav-toggle { display: flex; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-item.tall { grid-row: span 2; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.tall { grid-row: span 1; }
  .hero-trust { gap: 1.2rem; }
  .hero-badge { right: 50%; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   ICONOS SVG (line icons)
   ============================================================ */
.ic {
  width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic-fill { fill: currentColor; stroke: none; }

/* Tiles de features y servicios */
.feature-ico, .service-ico { color: var(--teal-600); }
.feature-ico .ic, .service-ico .ic { width: 28px; height: 28px; }

/* Lista de contacto */
.contact-ico { color: var(--teal-700); }
.contact-ico .ic { width: 22px; height: 22px; }

/* Eyebrow del hero */
.eyebrow { display: inline-flex; align-items: center; }
.eyebrow .ic { width: 16px; height: 16px; color: var(--gold); margin-right: .4rem; }

/* Insignia del hero */
.badge-star { display: inline-flex; align-items: center; color: var(--gold); }
.badge-star .ic { width: 22px; height: 22px; }

/* Botones */
.btn .ic { width: 18px; height: 18px; }
.wa-ico { display: inline-flex; align-items: center; }
.wa-ico .ic { width: 20px; height: 20px; }

/* Redes del footer */
.footer-social .ic { width: 20px; height: 20px; }

/* Botón flotante de WhatsApp */
.wa-float .ic { width: 28px; height: 28px; }
