/* ==========================================================
   Lidia Díaz · Nutrición clínica — hoja de estilos
   Paleta: crema #FCF5EC · melocotón #FAD7C5 · salvia #A3B7AF · terracota #C57F71
   ========================================================== */

:root {
  --cream: #FCF5EC;
  --peach: #FAD7C5;
  --sage: #A3B7AF;
  --terracotta: #C57F71;
  --terracotta-text: #B06A5C;
  --green: #0D4643;
  --ink: #2F3533;
  --muted: #5C6461;
  --white: #FFFFFF;
  --page: #FFFDFB;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 5.5vw, 4.2rem); color: var(--green); }
h2 { font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 2.15rem); }
h3 { font-weight: 500; font-size: 1.15rem; margin-bottom: .4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
body { overflow-x: clip; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
/* Secciones a ancho completo, alternando crema y blanco */
#familiar, #metodo, #preguntas, #contacto { background: var(--cream); }
/* Si la sección termina con una franja salvia, la franja llega hasta el borde inferior */
.section:has(.panel > .band:last-child:not(.band-inline)) { padding-bottom: 0; }.center { text-align: center; }
.intro { max-width: 760px; margin: 0 auto 2rem; text-align: center; color: var(--muted); }
.intro p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block; font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--terracotta-text); margin-bottom: .7rem;
}

/* Panel crema que envuelve cada bloque (como en el documento) */
.panel { background: none; }
/* En las secciones blancas, las tarjetas van en crema para que se distingan */
#ayuda .card-photo, #sobre-mi .training { background: var(--cream); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 30px; border-radius: 10px; border: 0;
  background: var(--terracotta); color: var(--white);
  font: 500 .95rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s, transform .2s;
}
.btn:hover { background: #B46E60; transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: .82rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 251, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 53, 51, .07);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font-family: var(--serif); font-size: 2rem; color: var(--green); line-height: 1; font-weight: 500; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--terracotta); padding-left: 12px; }
.brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--green); letter-spacing: .08em; }
.brand-text span { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--terracotta-text); }
.brand-logo { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .92rem; color: var(--ink); }
.nav-links a:not(.btn):hover { color: var(--terracotta-text); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--page); padding: 8px var(--gutter) 24px; border-bottom: 1px solid rgba(47,53,51,.08);
    transform: translateY(-130%); transition: transform .3s ease; z-index: -1;
  }
  .nav-links a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid rgba(47,53,51,.07); }
  .nav-links .btn { margin-top: 16px; width: 100%; }
  body.nav-open .nav-links { transform: translateY(0); }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Huecos para fotos ---------- */
.photo {
  background: linear-gradient(150deg, var(--peach) 0%, #EFE6DC 55%, #DDE6E2 100%);
  display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-label {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green);
  padding: 7px 14px; border: 1px dashed rgba(13,70,67,.4); border-radius: 999px; background: rgba(252,245,236,.75);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); }
.hero .btn { margin-top: .8rem; }
/* Foto de portada sin forma: rectangular, con su proporción original */
.hero-photo { background: none; max-width: 420px; margin-left: auto; width: 100%; }
.hero-photo img { height: auto; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { margin: 0 auto; max-width: 340px; }
}

/* ---------- Tarjetas blancas ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 20px 22px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .icon { color: var(--terracotta); margin-bottom: 10px; display: block; }

/* Tarjetas con foto */
.card-photo { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-photo .photo { aspect-ratio: 16 / 10; }
.card-photo .body { padding: 18px 22px 22px; }
.card-photo p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Franja salvia */
.band {
  background: var(--sage); color: #1F2A27; border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 32px); text-align: center; margin-top: 12px;
}
.panel > .band:last-child:not(.band-inline) {
  margin: clamp(40px, 6vw, 64px) calc(50% - 50vw) 0; border-radius: 0;
  padding: clamp(40px, 6vw, 64px) var(--gutter);
}
/* "¿Tienes alguna otra duda?": va justo antes de "Trabaja conmigo" (verde),
   así que aquí es una tarjeta melocotón para que no se junten dos bloques verdes */
.band-inline { background: var(--peach); margin-top: 24px; }
.panel > .band:last-child:not(.band-inline) > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.band h2, .band h3 { color: #1F2A27; margin-bottom: .3em; }
.band h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
.band p { margin: 0; font-size: .95rem; }
.band .icon { margin: 0 auto 8px; display: block; }

/* ---------- Método ---------- */
.method-photo { border-radius: var(--radius); aspect-ratio: 16 / 9; margin: 2rem 0 2.6rem; }
/* Carátula del programa: se muestra entera, sin recortar el título */
.method-photo.cover { aspect-ratio: auto; background: none; }
.method-photo.cover img { height: auto; }
.phases { display: grid; gap: 10px; margin-bottom: 2.6rem; }
.phase { background: var(--white); border-radius: var(--radius); padding: 16px 20px; display: flex; gap: 18px; align-items: center; }
.phase-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--sage);
  display: grid; place-items: center; font-weight: 500; color: #1F2A27;
}
.phase h3 { text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; margin-bottom: .15em; }
.phase p { margin: 0; color: var(--muted); font-size: .95rem; }
.closing { text-align: center; max-width: 760px; margin: 2.4rem auto 0; }
.closing p { color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.about .photo { border-radius: var(--radius); aspect-ratio: 4 / 5; }
/* Foto de "Sobre mí": fondo crema-melocotón dentro de la propia foto, sin marco ni forma */
.about .about-photo { background: none; border-radius: 0; aspect-ratio: auto; }
.about .about-photo img { height: auto; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.about p { color: var(--muted); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about .photo { max-width: 380px; width: 100%; margin: 0 auto; } }
.commitment { text-align: center; max-width: 820px; margin: 2.4rem auto 2rem; }
.commitment p { color: var(--muted); }
.training { background: var(--white); border-radius: var(--radius); padding: 22px 24px; }
.training .eyebrow { text-align: center; margin-bottom: 1rem; }
.training-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
@media (max-width: 620px) { .training-grid { grid-template-columns: 1fr; } }
.training-grid h3 { font-size: 1rem; margin: 6px 0 2px; }
.training-grid p { margin: 0; font-size: .85rem; color: var(--muted); }
.training-grid .icon { color: var(--terracotta); }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--radius); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 28px 18px 0; position: relative;
  font-weight: 500; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--terracotta); font-size: 1.4rem; font-weight: 300;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; font-size: .97rem; }

/* ---------- Trabaja conmigo ---------- */
#reservar { padding: 0; background: var(--sage); }
.work { background: var(--sage); padding: clamp(56px, 8vw, 96px) 0; text-align: center; color: #1F2A27; }
.work .eyebrow { color: #34433F; }
.work h2 { color: #1F2A27; font-size: clamp(1.9rem, 3.6vw, 2.4rem); margin-bottom: .3em; }
.work h3 { color: #1F2A27; font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin-bottom: 1em; }
.work p { max-width: 720px; margin-left: auto; margin-right: auto; }
.work .btn { margin: .8rem 0 1rem; }
.work small { display: block; font-size: .82rem; color: #34433F; }

/* ---------- Formulario ---------- */
.form { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); max-width: 760px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field > label, .field legend { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: var(--ink); padding: 0; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; padding: 12px 18px; border: 1px solid #D9D6D2; border-radius: 999px;
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--white);
}
.field textarea { border-radius: 10px; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
fieldset.field { border: 0; margin: 0 0 16px; padding: 0; }
.radio { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; }
.radio input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--muted); margin: 6px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--green); }
.form .btn { width: 100%; }
.form .btn:disabled { background: #EEEAE6; color: #8E8A86; cursor: not-allowed; transform: none; }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Aval DAO ---------- */
.endorsement { background: var(--white); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid rgba(47,53,51,.06); }
.endorsement-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 36px; text-align: center; }
.endorsement img { width: 200px; height: auto; }
.endorsement p { margin: 0; font-size: 1.05rem; color: var(--muted); max-width: 420px; }
.endorsement strong { color: var(--ink); font-weight: 500; }
.endorsement a { text-decoration: none; }
.endorsement p a:hover strong { color: #0090B5; }
.endorsement a img { transition: opacity .2s; }
.endorsement a:hover img { opacity: .8; }

/* ---------- Pie ---------- */
.site-footer { background: var(--green); color: #C9D6D1; padding: 54px 0 26px; font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-footer .brand-mark, .site-footer .brand-text strong { color: var(--cream); }
.site-footer .brand-text span { color: var(--peach); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: #E3EBE8; text-decoration: none; }
.site-footer a:hover { color: var(--peach); }
.social { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(250,215,197,.45); }
.footer-bottom { border-top: 1px solid rgba(250,215,197,.18); margin-top: 32px; padding-top: 20px; font-size: .8rem; }

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.07); }
@media (max-width: 560px) { .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; } }

/* ---------- Aparición suave ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
