/* ============================================
   Pedia Tía Regina — estilos
   Concepto: editorial cálido, inspirado en sitios
   de referencia de médicos/nutriólogas — foto real
   a pantalla completa, barra de confianza arriba,
   cita destacada, burbuja de WhatsApp flotante.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --paper: #ffffff;
  --wash: #eaf5fc;
  --sky: #7bcdee;
  --cobalt: #0f4c86;
  --cobalt-deep: #0a3763;
  --ink: #0a2540;
  --ink-soft: #4d6478;
  --sun: #ffc93c;
  --sun-deep: #e8a600;
  --line: rgba(10, 37, 64, 0.12);

  --display: 'Bricolage Grotesque', sans-serif;
  --sans: 'Inter', sans-serif;
  --mono: 'Space Mono', monospace;

  --radius: 20px;
  --shadow: 0 22px 48px -22px rgba(10, 37, 64, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cobalt);
}
.eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--sun-deep);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-sm { padding: 11px 22px; font-size: 0.88rem; }

.btn-primary { background: var(--sun); color: var(--cobalt-deep); box-shadow: 0 12px 26px -12px rgba(232, 166, 0, 0.7); }
.btn-primary:hover { background: var(--sun-deep); transform: translateY(-2px); }

.btn-outline { background: rgba(255,255,255,0.08); color: var(--paper); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.btn-call { background: var(--cobalt); color: var(--paper); box-shadow: 0 12px 26px -12px rgba(15, 76, 134, 0.55); }
.btn-call:hover { background: var(--cobalt-deep); transform: translateY(-2px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--cobalt-deep); color: rgba(255,255,255,0.85); }
.topbar-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 24px;
  font-size: 0.78rem;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-sep { opacity: 0.4; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}
.topbar-social a:hover { color: var(--sun); }

@media (max-width: 700px) { .topbar-row { justify-content: center; text-align: center; } }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }

.logo {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cobalt-deep);
}
.logo-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--wash);
}

.nav-links { display: flex; gap: 28px; font-size: 0.9rem; font-weight: 600; }
.nav-links a { opacity: 0.7; transition: opacity 0.2s ease; }
.nav-links a:hover { opacity: 1; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--cobalt-deep); }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero — foto real a pantalla completa ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,37,64,0.25) 0%, rgba(10,37,64,0.55) 45%, rgba(10,37,64,0.93) 100%),
              linear-gradient(90deg, rgba(10,55,99,0.55) 0%, rgba(10,55,99,0.15) 60%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px 24px 64px; color: var(--paper); }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tag-chip {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
  color: var(--paper);
}
.tag-chip-mono { font-family: var(--mono); background: var(--sun); color: var(--cobalt-deep); }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  color: var(--paper);
  margin-bottom: 10px;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero .brand-sub {
  font-family: var(--mono);
  color: var(--sun);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 50ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--sun);
}
.hero-stats div span { font-size: 0.78rem; color: rgba(255,255,255,0.72); }

@media (max-width: 700px) {
  .hero { min-height: 560px; }
  .hero-inner { padding: 90px 20px 48px; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-top: 12px; }
.section-head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.02rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Sobre mí */
.about { background: var(--wash); }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--paper);
  border: 2px dashed var(--sky);
}
.about-photo .placeholder {
  height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); text-align: center; padding: 24px; font-size: 0.85rem;
}
.about p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.about .credentials { margin-top: 24px; display: grid; gap: 11px; }
.credential-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; }
.credential-item .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--sun);
  color: var(--cobalt-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { order: -1; max-width: 380px; margin: 0 auto; } }

/* Cita destacada */
.pull-quote {
  position: relative;
  background: var(--cobalt-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 56px clamp(28px, 6vw, 72px);
  overflow: hidden;
}
.pull-quote .quote-mark {
  position: absolute;
  top: -30px; right: 30px;
  font-family: var(--display);
  font-size: 11rem;
  font-weight: 800;
  color: rgba(255,201,60,0.15);
  line-height: 1;
  pointer-events: none;
}
.pull-quote p {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  max-width: 26ch;
}
.pull-quote .quote-attr {
  position: relative;
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--sun);
}

/* Especialidades */
.specialties-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specialty-card { background: var(--paper); padding: 34px 28px; transition: background 0.25s ease; }
.specialty-card:hover { background: var(--wash); }
.icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.icon-sun { background: var(--sun); }
.icon-sky { background: var(--sky); }
.specialty-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.specialty-card p { color: var(--ink-soft); font-size: 0.92rem; }

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

/* Servicios — ficha de tarifas */
.services { background: var(--cobalt-deep); }
.services .eyebrow { color: var(--sun); }
.services .eyebrow::before { background: var(--sun); }
.services .section-head h2 { color: var(--paper); }
.services .section-head p { color: rgba(255,255,255,0.65); }

.ledger { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ledger-head {
  display: grid; grid-template-columns: 1fr 110px 130px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--ink);
}
.ledger-row {
  display: grid; grid-template-columns: 1fr 110px 130px;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px dashed var(--line);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row:nth-child(even) { background: var(--wash); }
.ledger-name { font-weight: 600; font-size: 0.98rem; }
.ledger-name em { color: var(--sun-deep); font-style: normal; font-weight: 800; }
.ledger-duration { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.ledger-price { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--cobalt); text-align: right; }

.services-note { margin-top: 24px; font-size: 0.86rem; color: rgba(255,255,255,0.55); text-align: center; line-height: 1.7; }

@media (max-width: 560px) {
  .ledger-head { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .ledger-duration, .ledger-price { text-align: left; }
}

/* Testimonios */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
}
.testimonial-card .quote-icon {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--sun);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.testimonial-card .stars { color: var(--sun-deep); margin-bottom: 12px; font-size: 0.9rem; }
.testimonial-card p { font-size: 0.98rem; color: var(--ink); margin-bottom: 18px; }
.t-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft); }
.t-author .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cobalt); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 0.82rem;
}

.rating-banner {
  margin-top: 44px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--mono);
  font-size: 1.05rem;
  flex-wrap: wrap; text-align: center;
}
.rating-banner strong { color: var(--sun-deep); font-size: 1.3rem; }

.google-cta {
  margin-top: 34px;
  text-align: center;
  background: var(--wash);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.google-cta p { font-size: 0.98rem; margin-bottom: 16px; }
.google-cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.google-link { font-size: 0.9rem; font-weight: 700; color: var(--cobalt); }
.google-link:hover { text-decoration: underline; }

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

/* Agenda */
.agenda { background: var(--ink); color: var(--paper); }
.agenda .eyebrow { color: var(--sun); }
.agenda .eyebrow::before { background: var(--sun); }
.agenda .section-head p { color: rgba(255,255,255,0.68); }
.agenda .section-head h2 { color: var(--paper); }

.agenda-embed-wrap {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 820px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}
#my-cal-inline { width: 100%; height: 820px; }

.agenda-info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.agenda-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 18px;
}
.agenda-info-item .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--sun);
  color: var(--cobalt-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.9rem;
}
.agenda-info-item strong { display: block; font-size: 0.93rem; margin-bottom: 2px; }
.agenda-info-item span { font-size: 0.83rem; color: rgba(255,255,255,0.6); }

.agenda-call { text-align: center; }

@media (max-width: 860px) {
  .agenda-info-row { grid-template-columns: 1fr; }
  .agenda-embed-wrap, #my-cal-inline { min-height: 720px; height: 720px; }
}

/* Contacto / ubicación */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--cobalt); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.05rem;
}
.contact-item strong { display: block; margin-bottom: 3px; font-size: 0.98rem; }
.contact-item span, .contact-item a { font-size: 0.9rem; color: var(--ink-soft); }

.social-row { display: flex; gap: 12px; margin-top: 26px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--wash);
  font-family: var(--mono); font-weight: 700; font-size: 0.72rem;
  color: var(--cobalt);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.social-btn:hover { background: var(--sun); color: var(--cobalt-deep); transform: translateY(-3px); }

.map-frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-note { margin-top: 14px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; }

.internal-map {
  margin-top: 20px;
  background: var(--wash);
  border-radius: var(--radius);
  padding: 18px;
}
.internal-map img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 420px;
  margin: 0 auto;
}
.internal-map .map-note { margin-top: 14px; text-align: center; }

/* Footer */
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 36px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-family: var(--display); font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--cobalt-deep); }
.footer-credit { font-size: 0.84rem; color: var(--ink-soft); }
.footer-credit a { color: var(--cobalt); font-weight: 700; }

/* Burbuja de WhatsApp flotante */
.chat-widget {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chat-bubble {
  position: relative;
  background: var(--paper);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 34px 14px 16px;
  box-shadow: var(--shadow);
  max-width: 230px;
  font-size: 0.86rem;
  color: var(--ink);
  animation: chat-in 0.5s ease 1.1s both;
}
.chat-close {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px;
  border: none; background: var(--wash); border-radius: 50%;
  font-size: 0.6rem; color: var(--ink-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sun);
  border: 3px solid var(--paper);
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.chat-widget.hide-bubble .chat-bubble { display: none; }

@media (max-width: 640px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-bubble { display: none; }
  .chat-avatar { width: 50px; height: 50px; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--paper); z-index: 400;
  display: none; flex-direction: column; padding: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a { font-family: var(--display); font-size: 1.5rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--cobalt-deep); }

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