/* ===== VARIABLES (paleta original doctorabobbio.com) ===== */
:root {
  --orange:     #ff5911;   /* acento principal / botones */
  --orange-dk:  #cb4003;   /* hover */
  --red:        #ff3c3c;   /* títulos / detalles */
  --coral:      #e18258;   /* coral suave */
  --coral-dk:   #d6634a;
  --peach:      #ffc6ad;   /* peach claro */
  --cream:      #fffaf8;   /* fondo crema */
  --pink:       #ffeded;   /* rosa claro */
  --ink:        #252525;   /* texto */
  --muted:      #7f7f7f;   /* texto secundario */
  --white:      #ffffff;
  --shadow:     0 18px 40px rgba(255, 89, 17, .12);
  --shadow-sm:  0 8px 20px rgba(37, 37, 37, .07);
  --radius:     20px;
  --wa:         #25d366;
}

/* ===== RESET / BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Poppins', Helvetica, Arial, sans-serif; line-height: 1.2; color: var(--ink); font-weight: 700; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1140px, 92%); margin-inline: auto; }
section { position: relative; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 50px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255,89,17,.32); }
.btn-primary:hover { background: var(--orange-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(37,37,37,.18); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-outline { background: #fff; color: var(--orange-dk); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-white { background: #fff; color: var(--orange-dk); box-shadow: var(--shadow-sm); }
.btn-white:hover { background: var(--pink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.section-tag {
  display: inline-block; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--orange); margin-bottom: .7rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,250,248,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(37,37,37,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand i { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-weight: 500; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { background: var(--orange); color: #fff !important; padding: .6rem 1.3rem; border-radius: 50px; font-weight: 600; }
.nav-cta:hover { background: var(--orange-dk); }

/* ===== HERO ===== */
.hero { padding: 4rem 0 4.5rem; overflow: hidden; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--pink); color: var(--orange-dk);
  padding: .45rem 1rem; border-radius: 50px; font-weight: 600; font-size: .9rem; margin-bottom: 1.3rem;
}
.eyebrow i { color: var(--red); }
.hero-text h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 700; margin-bottom: 1.2rem; }
.hero-text h1 .accent { color: var(--orange); }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats { list-style: none; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; font-weight: 700; color: var(--orange); }
.hero-stats span { font-size: .86rem; color: var(--muted); }

.hero-photo { position: relative; display: flex; justify-content: center; }
.hero-photo > img { width: 100%; max-width: 480px; height: auto; }
.hero-badge {
  position: absolute; bottom: .5rem; left: 0;
  background: #fff; padding: .85rem 1.2rem; border-radius: 16px;
  display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow);
}
.hero-badge i { font-size: 1.5rem; color: var(--orange); background: var(--pink); padding: .65rem; border-radius: 12px; }
.hero-badge strong { display: block; color: var(--ink); font-weight: 700; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

/* ===== ABOUT ===== */
.about { padding: 5rem 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: center; }
.about-photo { display: flex; justify-content: center; }
.about-photo img { width: 100%; max-width: 420px; height: auto; }
.about-text h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); margin-bottom: 1.2rem; }
.about-text > p { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.about-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .8rem; }
.about-list li { display: flex; align-items: center; gap: .8rem; font-weight: 500; color: var(--ink); }
.about-list i { color: var(--orange); width: 1.4rem; text-align: center; font-size: 1.1rem; }

/* ===== BANNER SALUD INFANTIL ===== */
.banner { padding: 5rem 0; background: var(--pink); }
.banner-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.banner-photo { display: flex; justify-content: center; }
.banner-photo img { width: 100%; max-width: 400px; height: auto; }
.banner-icon { font-size: 2.4rem; color: var(--orange); margin-bottom: 1rem; }
.banner-text h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1.2rem; }
.banner-quote {
  color: var(--ink); font-size: 1.08rem; font-style: italic;
  border-left: 4px solid var(--orange); padding-left: 1.2rem; margin-bottom: 1.2rem;
}
.banner-sign { font-weight: 700; color: var(--orange-dk); }

/* ===== SERVICES ===== */
.services { padding: 5rem 0; background: var(--cream); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .7rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: #fff; padding: 2.1rem 1.8rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(37,37,37,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card i {
  font-size: 1.6rem; color: var(--orange); background: var(--pink);
  width: 3.4rem; height: 3.4rem; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: .96rem; }

/* ===== INFO / HORARIOS ===== */
.info { padding: 5rem 0; background: var(--white); }
.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: stretch; }
.info-card { display: flex; flex-direction: column; }
.info-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.info-card > p { color: var(--muted); margin-bottom: 1.6rem; }
.info-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.info-row i { font-size: 1.3rem; color: #fff; background: var(--orange); width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 14px; flex-shrink: 0; }
.info-row strong { display: block; color: var(--ink); font-size: 1.08rem; }
.info-row span { color: var(--muted); }
.info-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

.info-hours { background: var(--pink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.info-hours h3 { font-size: 1.25rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.info-hours h3 i { color: var(--orange); }
.info-hours ul { list-style: none; }
.info-hours li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed rgba(37,37,37,.14); }
.info-hours li:last-child { border-bottom: none; }
.info-hours li span { color: var(--muted); font-weight: 500; }
.info-hours li strong { color: var(--orange-dk); }
.info-hours li.closed strong { color: var(--red); }

/* ===== CTA FINAL ===== */
.cta-final { padding: 5rem 0; background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dk) 100%); text-align: center; }
.cta-content { max-width: 44rem; margin-inline: auto; }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 1rem; }
.cta-final p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 3rem 0 1.5rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand span { font-size: 1.3rem; font-weight: 700; color: #fff; margin-left: .5rem; }
.footer-brand i { color: var(--orange); }
.footer-brand p { margin-top: .5rem; font-size: .95rem; color: rgba(255,255,255,.7); }
.footer-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.85); transition: color .15s; }
.footer-contact a:hover { color: var(--orange); }
.footer-contact i { color: var(--orange); width: 1.2rem; }
.footer-bottom { text-align: center; padding-top: 1.5rem; font-size: .88rem; color: rgba(255,255,255,.6); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 60px; height: 60px; background: var(--wa); color: #fff;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s;
  animation: pulse 2.2s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0%   { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  70%  { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .banner-grid, .info-grid { grid-template-columns: 1fr; }
  .hero-photo, .about-photo, .banner-photo { max-width: 420px; margin-inline: auto; order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .hero-actions .btn, .info-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { flex-direction: column; }
  .brand span { font-size: 1.05rem; }
}
