/* ==========================================================================
   CENPIC — Salud Pélvica & Sexualidad
   Landing hecha a mano, responsive y accesible. Sin build step.
   ========================================================================== */

:root {
  /* Paleta de marca (tomada del logo) */
  --navy:        #17395c;
  --navy-deep:   #102b46;
  --teal:        #1c8a80;
  --teal-dark:   #16695f;
  --teal-soft:   #e4f2ee;
  --copper:      #e0995c;
  --copper-dark: #c97f42;

  --bg:      #f6faf9;
  --surface: #ffffff;
  --ink:     #2b3f52;   /* cuerpo — contraste ~8:1 sobre bg */
  --ink-soft:#4d6172;   /* secundario — contraste ~5:1 */
  --line:    #e0ebe7;
  --white:   #ffffff;

  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:24px;

  --shadow-sm: 0 1px 2px rgba(16,43,70,.06), 0 2px 8px rgba(16,43,70,.05);
  --shadow-md: 0 6px 24px rgba(16,43,70,.09);
  --shadow-lg: 0 18px 48px rgba(16,43,70,.16);

  --container: 1180px;
  --pad: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,.61,.36,1);

  --z-header: 100;
  --z-menu:   200;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--navy); margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.font-display { font-family: 'Marcellus', Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: .01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(52px, 8vw, 96px); }
.section--tint { background: var(--surface); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-dark);
}
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.4rem); color: var(--teal-dark); }
.section-title.on-navy { color: var(--navy); }
.rule { width: 64px; height: 3px; border-radius: 2px; background: var(--copper); margin: 16px 0 0; }
.center .rule { margin-inline: auto; }
.lead { color: var(--ink-soft); font-size: 1.075rem; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--wa { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn--wa:hover { background: var(--teal-soft); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--block { width: 100%; }
.wa-dot { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: #25d366; color: #fff; align-items: center; justify-content: center; }
.wa-dot svg { width: 12px; height: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: clamp(52px, 4.6vw, 74px); width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--navy); font-weight: 600; font-size: .95rem; position: relative; padding-block: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); transition: width .25s var(--ease); }
.nav a:hover { color: var(--teal-dark); }
.nav a:hover::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 16px; font-size: .875rem; }

/* Hamburger */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--navy);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(120% 120% at 85% 0%, var(--teal-soft) 0%, var(--bg) 55%);
  padding-block: clamp(40px, 6vw, 76px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-kicker { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem);
  color: var(--navy); letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--teal-dark); }
.hero-sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--ink-soft); margin: 20px 0 8px; max-width: 34ch; }
.hero-trust { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); margin: 22px 0 28px; }
.hero-trust .ic { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); align-items: center; justify-content: center; flex: none; }
.hero-trust .ic svg { width: 19px; height: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; background: var(--teal-soft);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .badge {
  position: absolute; left: -14px; bottom: 22px; background: #fff;
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.hero-media .badge .ic { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; align-items: center; justify-content: center; flex: none; }
.hero-media .badge .ic svg { width: 22px; height: 22px; }
.hero-media .badge b { color: var(--navy); font-size: .9rem; display: block; }
.hero-media .badge span { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-mark { display: flex; justify-content: center; }
.about-mark img { width: min(240px, 70%); filter: drop-shadow(0 12px 24px rgba(28,138,128,.18)); }
.about-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--teal-soft); border-radius: var(--radius); padding: 18px 22px; margin-top: 24px;
}
.about-note .ic { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #fff; align-items: center; justify-content: center; flex: none; }
.about-note .ic svg { width: 19px; height: 19px; }
.about-note p { margin: 0; font-size: .97rem; color: #2c4a5e; }

/* ---------- Servicios ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3e4df; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-dark); align-items: center; justify-content: center; flex: none; }
.card-ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; color: var(--navy); }
.card .destacado { color: var(--teal-dark); font-weight: 600; font-size: .95rem; margin: -8px 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li {
  font-size: .875rem; color: var(--ink); background: #f3f8f6;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px;
}

/* Panel tecnologías + nutrición */
.tech-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; }
.tech-panel {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 130%);
  color: #eaf4f1; border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.tech-panel::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(224,153,92,.16); }
.tech-panel .card-head h3 { color: #fff; }
.tech-panel .card-ic { background: rgba(255,255,255,.14); color: #fff; }
.tech-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; position: relative; }
.tech-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.tech-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); flex: none; }
.tech-note { font-size: .875rem; color: #bfe0da; font-style: italic; margin: 0; position: relative; }
.nutri-card { display: flex; flex-direction: column; }
.nutri-card .media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 3/2; margin-bottom: 16px; background: var(--teal-soft); }
.nutri-card .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: none; }
.step { position: relative; text-align: center; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -6px; width: 12px; height: 12px;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg);
}
.step-n { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.step-ic { display: inline-flex; width: 72px; height: 72px; border-radius: 20px; background: var(--teal-soft); color: var(--teal-dark); align-items: center; justify-content: center; }
.step-ic svg { width: 34px; height: 34px; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .9rem; color: var(--ink-soft); margin: 0; max-width: 220px; }

/* ---------- Por qué + FAQ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.reasons { display: grid; gap: 12px; margin-top: 8px; }
.reason { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #2c4a5e; }
.reason .ic { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; align-items: center; justify-content: center; flex: none; }
.reason .ic svg { width: 15px; height: 15px; }

.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #d3e4df; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 22px; height: 22px; color: var(--teal); transition: transform .3s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-soft); font-size: .95rem; }
.faq .answer p { margin: 0; }

/* ---------- CTA ---------- */
.cta-panel {
  display: grid; grid-template-columns: 300px 1fr auto; gap: clamp(24px, 4vw, 44px); align-items: center;
  background: linear-gradient(120deg, var(--teal) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-body h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.cta-body p { color: #dcefeb; margin: 8px 0 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn.insta { color: #b5348a; }
.cta-actions .btn.insta:hover { color: #92206e; }
.cta-mark { justify-self: center; }
.cta-mark img { width: 130px; opacity: .96; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); border-radius: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9cdd9; padding-block: clamp(44px, 6vw, 64px) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(28px, 4vw, 48px); }
.footer-brand .lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .lockup .mark { width: 66px; height: 66px; border-radius: 16px; background: #fff; padding: 7px; flex: none; }
.footer-brand .lockup .mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand .name { font-size: 1.5rem; color: #fff; line-height: 1.1; }
.footer-brand .tag { font-size: .78rem; color: #8fb3ad; letter-spacing: .02em; }
.footer-brand p { font-size: .9rem; line-height: 1.6; color: #a7c0cd; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-info span, .footer-info a { color: #b9cdd9; font-size: .9rem; }
.footer-links a:hover, .footer-info a:hover { color: #fff; }
.footer-info { display: grid; gap: 12px; }
.footer-info .row { display: flex; gap: 10px; align-items: flex-start; }
.footer-info .row svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: #1c4460; color: #fff; align-items: center; justify-content: center; transition: background .2s, transform .2s var(--ease); }
.footer-socials a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  border-top: 1px solid #1c4460; margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #7d99a8;
}
.footer-bottom a { color: #7d99a8; }
.footer-bottom a:hover { color: #b9cdd9; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-header);
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip:focus { left: 12px; }

/* ---------- Scroll reveal (progresivo, no bloquea contenido) ---------- */
[data-reveal] { opacity: 1; }
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal][data-delay="1"] { transition-delay: .08s; }
html.js [data-reveal][data-delay="2"] { transition-delay: .16s; }
html.js [data-reveal][data-delay="3"] { transition-delay: .24s; }

/* anchors bajo header sticky */
[id] { scroll-margin-top: 90px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-sub { max-width: none; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-mark img { width: 180px; }
  .about-note { text-align: left; }
  .tech-grid { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-mark { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .serv-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 4px; }
  .step { flex-direction: row; text-align: left; gap: 16px; align-items: flex-start; padding: 14px 4px; }
  .step-inner { display: flex; flex-direction: column; gap: 6px; }
  .step p { max-width: none; }
  .step:not(:last-child)::after { display: none; }
  .step-media { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; position: relative; }
  .step:not(:last-child) .step-media::after {
    content: ""; position: absolute; left: 50%; top: 118px; width: 2px; height: 26px;
    background: linear-gradient(var(--teal), transparent); transform: translateX(-50%);
  }
  .step-ic { width: 56px; height: 56px; }
  .step-ic svg { width: 28px; height: 28px; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-media .badge { left: 0; }
}

/* ---------- Mobile menu (off-canvas) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(16,43,70,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu .panel {
  position: absolute; right: 0; top: 0; height: 100%; width: min(320px, 84vw);
  background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-menu.open .panel { transform: none; }
.mobile-menu .panel .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mobile-menu .panel .top img { height: 56px; }
.mobile-menu .close { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu .close svg { width: 22px; height: 22px; }
.mobile-menu nav { display: grid; gap: 2px; }
.mobile-menu nav a { padding: 13px 12px; border-radius: 10px; color: var(--navy); font-weight: 600; }
.mobile-menu nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.mobile-menu .menu-actions { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
