/* ==========================================================================
   Dra. Fanny Sañay Goyes — drafannysanay.com
   Paleta: rosa (marca personal) + verde azulado (prevención) + neutros cálidos
   ========================================================================== */

:root {
  --rose: #c4577e;          /* rosa principal (marca) */
  --rose-dark: #a03d63;
  --rose-soft: #fbf0f4;     /* fondo rosado suave */
  --teal: #2e8b8b;          /* acento prevención / salud */
  --teal-soft: #eaf5f5;
  --ink: #3a2e33;           /* texto principal */
  --ink-soft: #6f6068;      /* texto secundario */
  --cream: #fdfaf7;         /* fondo general */
  --white: #ffffff;
  --gold: #c9a227;
  --whatsapp: #25d366;
  --shadow: 0 10px 30px rgba(58, 46, 51, .08);
  --radius: 14px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--rose-dark); text-decoration: none; }
a:hover { color: var(--rose); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: .8rem;
}

section { padding: 72px 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--ink-soft); margin-top: .8rem; }

/* --------------------------------- Header -------------------------------- */

.topbar {
  background: var(--rose-dark);
  color: #fff;
  font-size: .85rem;
  padding: 6px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span { opacity: .92; }

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(58, 46, 51, .07);
}

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

.brand { line-height: 1.15; }
.brand .name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--rose-dark);
  display: block;
}
.brand .tag {
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--rose); }

.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: .7em; color: var(--ink-soft); }
.dropdown-menu {
  position: absolute; top: 100%; left: -12px;
  background: var(--white);
  min-width: 260px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  padding: 10px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: 8px 18px; font-size: .9rem; }
.dropdown-menu a:hover { background: var(--rose-soft); }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--rose); color: #fff !important; }
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--rose); color: var(--rose-dark) !important; background: transparent; }
.btn-outline:hover { background: var(--rose-soft); }
.btn-whatsapp { background: var(--whatsapp); color: #fff !important; }
.btn-whatsapp:hover { filter: brightness(.93); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff !important; }
.btn-teal:hover { filter: brightness(.9); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--rose-dark); cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
    gap: 14px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; padding: 4px 0 0 14px; display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-cta { display: none; }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--cream) 55%, var(--teal-soft) 100%);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: end;
}
.hero-copy { padding-bottom: 64px; }
.hero-copy h1 { margin: 0 0 1rem; }
.hero-copy h1 em { font-style: italic; color: var(--rose-dark); }
.hero-copy .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.8rem; }
.badge {
  background: var(--white);
  border: 1px solid rgba(196, 87, 126, .25);
  color: var(--rose-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-photo img {
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  max-height: 560px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-height: 420px; object-position: top; }
  .hero-copy { padding-bottom: 48px; }
}

/* ------------------------------ Differentiator ---------------------------- */

.diff { background: var(--white); }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.diff-card {
  background: var(--cream);
  border-top: 4px solid var(--rose);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.diff-card:nth-child(2) { border-top-color: var(--teal); }
.diff-card:nth-child(3) { border-top-color: var(--gold); }
.diff-card .icon { font-size: 2rem; margin-bottom: .8rem; }
.diff-card h3 { margin-bottom: .5rem; }
.diff-card p { color: var(--ink-soft); font-size: .95rem; }
.diff-note {
  margin-top: 40px;
  text-align: center;
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 26px 30px;
  font-size: 1.02rem;
}
.diff-note strong { color: var(--teal); }

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

/* -------------------------------- Services -------------------------------- */

.services { background: var(--rose-soft); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
  display: block;
  color: var(--ink);
}
.service-card:hover { transform: translateY(-4px); color: var(--ink); }
.service-card .icon { font-size: 1.7rem; margin-bottom: .6rem; }
.service-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.service-card p { font-size: .86rem; color: var(--ink-soft); }
.service-card .more { display: inline-block; margin-top: .7rem; font-size: .84rem; font-weight: 600; color: var(--rose); }

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* --------------------------------- About ---------------------------------- */

.about .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo .accent {
  position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--rose);
  border-radius: var(--radius);
  z-index: -1;
}
.about-copy h2 { margin-bottom: 1rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1rem; }
.cred-list { list-style: none; margin: 1.2rem 0 1.6rem; }
.cred-list li { padding: 7px 0 7px 30px; position: relative; font-size: .96rem; }
.cred-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 820px) {
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
}

/* ------------------------------- Why choose ------------------------------- */

.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { text-align: center; padding: 10px; }
.why-item .num {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.why-item p { font-size: .88rem; color: var(--ink-soft); }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ------------------------------- Authority -------------------------------- */

.authority { background: linear-gradient(120deg, var(--ink) 0%, #52333f 100%); color: #fff; }
.authority .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.authority h2, .authority h3 { color: #fff; }
.authority .eyebrow { color: #f4c6d8; }
.authority p { color: rgba(255, 255, 255, .82); margin-bottom: 1rem; }
.authority img { border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }

@media (max-width: 820px) { .authority .container { grid-template-columns: 1fr; } }

/* ------------------------------- Blog cards ------------------------------- */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  color: var(--ink);
  transition: transform .2s ease;
}
.post-card:hover { transform: translateY(-4px); color: var(--ink); }
.post-card .thumb { height: 190px; overflow: hidden; background: var(--rose-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: .5rem; }
.post-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.post-card p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.post-card .more { margin-top: .9rem; font-weight: 600; font-size: .88rem; color: var(--rose); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* --------------------------------- CTA band ------------------------------- */

.cta-band {
  background: linear-gradient(120deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 560px; margin: 0 auto 1.6rem; }

/* ------------------------------ Page hero (interior) ---------------------- */

.page-hero {
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--teal-soft) 100%);
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--teal); }

/* ------------------------------ Service layout ---------------------------- */

.service-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.service-body h2 { margin: 2rem 0 .8rem; font-size: 1.5rem; }
.service-body h2:first-child { margin-top: 0; }
.service-body p, .service-body li { color: var(--ink-soft); }
.service-body ul { padding-left: 22px; margin: .6rem 0 1rem; }
.service-body li { margin-bottom: .4rem; }

.aside-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 22px;
  position: sticky;
  top: 96px;
}
.aside-card h3 { margin-bottom: .8rem; }
.aside-card ul { list-style: none; }
.aside-card li { padding: 6px 0; border-bottom: 1px solid rgba(58, 46, 51, .07); font-size: .92rem; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card .btn { width: 100%; text-align: center; margin-top: 14px; }

@media (max-width: 820px) {
  .service-layout { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

/* ----------------------------------- FAQ ---------------------------------- */

.faq details {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--rose);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--ink-soft); }

/* --------------------------------- Contact -------------------------------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
}
.contact-card .icon { font-size: 2rem; margin-bottom: .8rem; }
.contact-card h3 { margin-bottom: .6rem; }
.contact-card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: .4rem; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ------------------------------ Blog article ------------------------------ */

.article { max-width: 760px; margin: 0 auto; }
.article .meta { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: .8rem; }
.article h1 { margin-bottom: 1rem; }
.article h2 { margin: 2rem 0 .8rem; font-size: 1.45rem; }
.article p, .article li { color: var(--ink-soft); margin-bottom: 1rem; }
.article ul { padding-left: 24px; }
.article .author-box {
  margin-top: 3rem;
  background: var(--rose-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; gap: 20px; align-items: center;
}
.article .author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; }
.article .author-box p { margin: 0; font-size: .9rem; }
.article .author-box strong { color: var(--ink); }

/* ---------------------------------- Footer -------------------------------- */

footer.site {
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  padding: 56px 0 24px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer.site h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
footer.site a { color: rgba(255, 255, 255, .8); }
footer.site a:hover { color: #f4c6d8; }
footer.site ul { list-style: none; }
footer.site li { padding: 4px 0; }
.footer-brand .name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; display: block; margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}

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

/* ---------------------------- WhatsApp floating --------------------------- */

.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 200;
  background: var(--whatsapp);
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Disclaimer */
.disclaimer { font-size: .8rem; color: var(--ink-soft); font-style: italic; }
