/* ===========================================================
   Dra. Rosa Parrales — Cardióloga · Guayaquil
   Palette: "Corazón Cercano"
   =========================================================== */

:root{
  --red:        #96121A;
  --red-dark:   #5C0C12;
  --red-soft:   #C93B3F;
  --coral:      #F4868C;
  --coral-soft: #FDEBEC;
  --cream:      #FFF8F6;
  --white:      #FFFFFF;
  --ink:        #2A2222;
  --ink-soft:   #6E5E5E;
  --line:       #F0DEDC;
  --shadow:     0 10px 30px rgba(92,12,18,.12);
  --shadow-sm:  0 4px 14px rgba(92,12,18,.10);
  --radius:     18px;
  --radius-sm:  10px;
  --maxw:       1180px;
  --font-head:  "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:  "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-x:hidden; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  max-width:100vw;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-head); margin:0 0 .5em; line-height:1.2; font-weight:600; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
section{ padding:72px 0; }
.section-cream{ background:var(--cream); }
.section-white{ background:var(--white); }
.section-red{ background:linear-gradient(155deg, var(--red) 0%, var(--red-dark) 100%); color:var(--white); }

/* ---------- Eyebrow / kicker ---------- */
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-head); font-weight:600; font-size:.78rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--red);
  margin-bottom:14px;
}
.kicker svg{ width:16px; height:16px; flex:none; }
.section-red .kicker{ color:var(--coral); }

.section-head{ max-width:680px; margin:0 auto 44px; text-align:center; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); color:var(--ink); }
.section-red .section-head h2{ color:var(--white); }
.section-head p{ color:var(--ink-soft); font-size:1.05rem; }
.section-red .section-head p{ color:#F6DCDD; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-head); font-weight:600; font-size:.95rem;
  padding:14px 26px; border-radius:999px; border:2px solid transparent;
  cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn svg{ width:19px; height:19px; flex:none; }
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--red); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--red-dark); box-shadow:var(--shadow); }
.btn-coral{ background:var(--coral); color:var(--red-dark); box-shadow:var(--shadow-sm); }
.btn-coral:hover{ background:#f4747b; }
.btn-outline{ background:transparent; border-color:var(--white); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-outline-red{ background:transparent; border-color:var(--red); color:var(--red); }
.btn-outline-red:hover{ background:var(--coral-soft); }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Topbar ---------- */
.topbar{
  position:sticky; top:0; z-index:100;
  background:rgba(255,248,246,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); }
.brand svg{ width:38px; height:38px; flex:none; }
.brand-text{ line-height:1.15; }
.brand-text strong{ display:block; font-size:1.05rem; color:var(--red); }
.brand-text span{ display:block; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); }

.nav-links{ display:flex; align-items:center; gap:28px; font-weight:500; font-size:.95rem; }
.nav-links a{ color:var(--ink); position:relative; padding:4px 0; }
.nav-links a:hover, .nav-links a.active{ color:var(--red); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:var(--red); border-radius:2px; }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(150deg, var(--red) 0%, var(--red-dark) 68%);
  color:var(--white);
  padding:0;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; align-items:end;
  min-height:640px; gap:20px;
}
.hero-copy{ padding:100px 0 60px; position:relative; z-index:2; }
.hero-copy .kicker{ color:var(--coral); }
.hero-copy h1{ font-size:clamp(2.1rem,4.4vw,3.4rem); margin-bottom:20px; }
.hero-copy h1 em{ font-style:normal; color:var(--coral); }
.hero-copy p.lead{ font-size:1.15rem; color:#F6DCDD; max-width:520px; margin-bottom:32px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:16px; margin-bottom:36px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:18px 26px; }
.hero-badge{ display:flex; align-items:flex-start; gap:10px; font-size:.88rem; color:#F6DCDD; text-align:left; max-width:260px; }
.hero-badge svg{ width:22px; height:22px; flex:none; color:var(--coral); margin-top:1px; }
.hero-photo-wrap{ position:relative; height:100%; display:flex; align-items:flex-end; justify-content:center; z-index:1; }
.hero-photo-wrap img{ max-height:640px; max-width:100%; width:auto; object-fit:contain; filter:drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hero-blob{ position:absolute; inset:auto -10% -20% auto; width:520px; height:520px; background:radial-gradient(circle, rgba(244,134,140,.35), transparent 70%); border-radius:50%; z-index:0; }

/* ---------- Trust strip ---------- */
.trust-strip{ background:var(--white); border-bottom:1px solid var(--line); padding:22px 0; }
.trust-strip ul{ display:flex; flex-wrap:wrap; justify-content:center; gap:34px; }
.trust-strip li{ display:flex; align-items:center; gap:10px; font-size:.88rem; font-weight:500; color:var(--ink-soft); }
.trust-strip svg{ width:20px; height:20px; color:var(--red); flex:none; }

/* ---------- Cards grid (services) ---------- */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--white); border-radius:var(--radius); padding:32px 28px;
  border:1px solid var(--line); box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column; height:100%;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.card-icon{
  width:56px; height:56px; border-radius:16px; background:var(--coral-soft);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px; flex:none;
}
.card-icon svg{ width:28px; height:28px; color:var(--red); }
.card h3{ font-size:1.15rem; margin-bottom:8px; }
.card p{ color:var(--ink-soft); font-size:.95rem; flex:1; margin-bottom:14px; }
.card-link{ font-family:var(--font-head); font-weight:600; font-size:.88rem; color:var(--red); display:inline-flex; align-items:center; gap:6px; }
.card-link svg{ width:16px; height:16px; transition:transform .15s ease; }
.card:hover .card-link svg{ transform:translateX(3px); }

/* ---------- Why choose / differentiators ---------- */
.why-list{ display:grid; gap:22px; }
.why-item{ display:flex; gap:18px; align-items:flex-start; }
.why-icon{
  width:48px; height:48px; border-radius:14px; background:var(--red); flex:none;
  display:flex; align-items:center; justify-content:center;
}
.why-icon svg{ width:24px; height:24px; color:var(--white); }
.why-item h4{ font-size:1.05rem; margin-bottom:4px; }
.why-item p{ color:var(--ink-soft); font-size:.94rem; margin:0; }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split img{ border-radius:var(--radius); box-shadow:var(--shadow); width:100%; height:100%; object-fit:cover; aspect-ratio:4/5; object-position:center 18%; }

/* ---------- Blog / info cards ---------- */
.post-card{ background:var(--white); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-sm); display:flex; flex-direction:column; height:100%; transition:transform .18s ease, box-shadow .18s ease; }
.post-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.post-card img{ aspect-ratio:16/10; object-fit:cover; object-position:center 15%; }
.post-card .post-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.post-tag{ font-family:var(--font-head); font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--red); margin-bottom:10px; }
.post-card h3{ font-size:1.1rem; margin-bottom:10px; }
.post-card p{ color:var(--ink-soft); font-size:.92rem; flex:1; }
.post-card .card-link{ margin-top:10px; }

/* ---------- Video / reels section ---------- */
/* Flexbox + natural sizing (not a fixed aspect-ratio grid): Instagram's embed.js
   sets each blockquote's real height once it loads. Forcing a fixed-height box
   fights that and causes a visible jump/reflow as each video loads on scroll. */
.video-grid{ display:flex; flex-wrap:wrap; gap:24px; justify-content:center; align-items:flex-start; }
.video-grid .instagram-media{
  margin:0 !important; flex:0 1 320px; width:100% !important; min-width:0 !important;
  max-width:340px !important; box-shadow:var(--shadow) !important; border-radius:var(--radius) !important;
}

/* ---------- Testimonials / stats ---------- */
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stat h3{ font-family:var(--font-head); font-size:2.1rem; color:var(--coral); margin-bottom:4px; }
.stat p{ margin:0; font-size:.88rem; color:#F6DCDD; }

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius:24px; padding:48px 40px; color:var(--white);
  display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h3{ font-size:1.5rem; margin-bottom:6px; }
.cta-band p{ color:#F6DCDD; margin:0; }
.cta-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- Footer ---------- */
footer{ background:var(--red-dark); color:#F3D9DA; padding:60px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer-brand .brand-text strong{ color:var(--white); }
.footer-brand .brand-text span{ color:#F3D9DA; }
.footer-brand p{ color:#E6BEC0; font-size:.9rem; margin-top:14px; max-width:320px; }
footer h5{ font-family:var(--font-head); color:var(--white); font-size:.9rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:16px; }
footer ul li{ margin-bottom:10px; }
footer ul a{ color:#E6BEC0; font-size:.92rem; }
footer ul a:hover{ color:var(--white); }
.footer-social{ display:flex; gap:12px; margin-top:16px; }
.footer-social a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; transition:background .15s ease; }
.footer-social a:hover{ background:var(--coral); }
.footer-social svg{ width:18px; height:18px; color:var(--white); }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; padding:24px 0; flex-wrap:wrap; gap:12px; font-size:.85rem; color:#D9A6A8; }
.footer-bottom a{ color:var(--coral); font-weight:600; }
.footer-bottom a:hover{ text-decoration:underline; }

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position:fixed; bottom:24px; right:24px; z-index:200;
  width:60px; height:60px; border-radius:50%; background:#25D366;
  display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.28);
  transition:transform .15s ease;
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:30px; height:30px; color:#fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ background:linear-gradient(150deg, var(--red) 0%, var(--red-dark) 100%); color:var(--white); padding:70px 0 60px; }
.page-hero .kicker{ color:var(--coral); }
.page-hero h1{ font-size:clamp(1.9rem,3.6vw,2.7rem); max-width:760px; }
.page-hero p{ color:#F6DCDD; max-width:640px; font-size:1.05rem; }
.breadcrumb{ font-size:.85rem; color:#F6DCDD; margin-bottom:18px; }
.breadcrumb a{ color:var(--coral); }

/* ---------- Pending badge ---------- */
.pending{ display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:600; color:#8A5A00; background:#FFF1CC; border:1px solid #F0D48A; padding:4px 10px; border-radius:999px; }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--line); padding:20px 0; }
.faq-item h4{ font-size:1.02rem; margin-bottom:8px; color:var(--red); }
.faq-item p{ color:var(--ink-soft); margin:0; font-size:.95rem; }

/* ---------- Timeline (sobre-mi) ---------- */
.timeline{ display:grid; gap:20px; }
.tl-item{ display:flex; gap:18px; }
.tl-dot{ width:14px; height:14px; border-radius:50%; background:var(--red); margin-top:6px; flex:none; box-shadow:0 0 0 4px var(--coral-soft); }
.tl-line{ width:2px; background:var(--line); flex:1; margin:6px 0 -20px; }
.tl-content h4{ font-size:1rem; margin-bottom:4px; }
.tl-content p{ color:var(--ink-soft); font-size:.92rem; margin:0; }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
.contact-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow-sm); }
.contact-row{ display:flex; gap:16px; align-items:flex-start; padding:16px 0; border-bottom:1px solid var(--line); }
.contact-row:last-child{ border-bottom:none; }
.contact-row .card-icon{ margin-bottom:0; }
.contact-row h4{ font-size:.95rem; margin-bottom:4px; }
.contact-row p{ margin:0; color:var(--ink-soft); font-size:.92rem; }
.map-embed{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.map-embed iframe{ width:100%; height:340px; border:0; display:block; }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; min-height:auto; }
  .hero-photo-wrap{ order:-1; padding-top:28px; justify-content:flex-end; }
  .hero-photo-wrap img{ max-height:480px; margin-right:-6%; }
  .hero-copy{ padding:32px 0 50px; text-align:center; }
  .hero-copy p.lead{ margin-left:auto; margin-right:auto; }
  .hero-cta{ justify-content:center; }
  /* Stack badges as one centered block with every icon flush to a shared left
     edge, instead of each badge being centered as its own independent row
     (which staggered the icons at different x-positions per row). */
  .hero-badges{ flex-direction:column; align-items:flex-start; width:fit-content; margin:0 auto; gap:14px; }
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
  .split{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .stats-row{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width:720px){
  .nav-links, .nav-cta .btn-outline-red-desktop{ display:none; }
  /* Topbar WhatsApp pill dropped on small screens — brand + WhatsApp pill + hamburger
     don't fit one row without wrapping, which was overflowing the viewport and clipping
     the hamburger. The floating WhatsApp button (.wa-float) already covers this CTA. */
  .nav-cta .btn-primary{ display:none; }
  .topbar-inner{ padding:14px 16px; }
  .nav-toggle{ display:flex; flex:none; }
  .brand-text strong{ font-size:.98rem; }
  .brand-text span{ font-size:.64rem; }
  .nav-links.is-open{
    display:flex; position:absolute; top:100%; left:0; right:0; background:var(--white);
    flex-direction:column; padding:20px 24px; gap:16px; border-bottom:1px solid var(--line); box-shadow:var(--shadow-sm);
  }
  .grid-3, .grid-4, .grid-2{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .stats-row{ grid-template-columns:1fr 1fr; }
  .cta-band{ flex-direction:column; text-align:center; justify-content:center; }
  section{ padding:52px 0; }
}
