/* ==========================================================
   Nutrióloga Valeria Mora — hoja de estilos
   Dirección visual: editorial, cálida, con formas orgánicas
   Paleta: verde azulado profundo · crema · terracota · salvia
   ========================================================== */

:root {
  --teal: #0f6a61;
  --teal-deep: #0a3f3a;
  --teal-ink: #072a27;
  --cream: #faf4e8;
  --cream-2: #f2e9d6;
  --sage: #cfdccb;
  --sage-soft: #e6eedf;
  --terra: #b8522b;
  --terra-soft: #f1c9b3;
  --ink: #1d2b29;
  --muted: #55655f;
  --line: rgba(15, 106, 97, 0.18);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: max(22px, calc((100vw - 1180px) / 2));
  --radius: 28px;
  --shadow: 0 24px 60px -28px rgba(7, 42, 39, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--terra); }
p { margin: 0 0 1em; }

.section-pad { padding: clamp(64px, 9vw, 120px) var(--gutter); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.2em;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.centered .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

.tag {
  display: inline-block;
  margin: 0 0 1em;
  padding: .3em .9em;
  border-radius: 99px;
  background: var(--terra-soft);
  color: #7a3416;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95em 1.7em;
  border: 2px solid var(--terra);
  border-radius: 99px;
  background: var(--terra);
  color: #fff;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -14px rgba(184, 82, 43, .8); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--cream); box-shadow: none; }
.btn-small { padding: .6em 1.2em; font-size: .88rem; }

/* ---------- Encabezado y navegación ---------- */
.site-header { position: relative; background:
  radial-gradient(900px 480px at 92% 8%, var(--sage-soft), transparent 70%),
  var(--cream); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(250, 244, 232, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 58px; width: auto; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--teal); line-height: 1; }
.wordmark small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terra); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--terra); transition: width .25s ease; }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .phone-link { font-weight: 700; color: var(--teal); }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--teal); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
}
.hero-logo img { width: 76px; height: auto; margin-bottom: 18px; }
.hero h1 { margin-bottom: .45em; }
.hero-text { font-size: 1.18rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0 2.4em; }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px 36px; padding-top: 1.6em; border-top: 1px solid var(--line); }
.trust-row div { display: flex; flex-direction: column; line-height: 1.2; }
.trust-row strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--teal); }
.trust-row span { font-size: .85rem; color: var(--muted); }

.hero-card { position: relative; padding: 0 0 56px 28px; }
.hero-card::before {
  content: "";
  position: absolute;
  top: -30px; right: -34px;
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terra-soft);
  z-index: 0;
}
.photo-placeholder {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: var(--terra-soft);
  box-shadow: 0 0 0 10px var(--cream), 0 0 0 12px var(--terra-soft), var(--shadow);
}
.photo-placeholder img, .about-image img { width: 100%; height: 100%; object-fit: cover; }

.appointment-card {
  position: absolute;
  z-index: 2;
  left: 0; bottom: 0;
  max-width: 290px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}
.appointment-card p { margin: 0 0 4px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.appointment-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.appointment-card span { font-size: .85rem; color: var(--muted); }
.appointment-card span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2fa66a; }

/* ---------- Cinta ---------- */
.ribbon { overflow: hidden; max-width: 100vw; background: var(--teal); color: var(--cream); border-block: 1px solid var(--teal-deep); transform: rotate(-1deg) scale(1.02); margin: 0; }
.ribbon-track { display: flex; width: max-content; gap: 2.4rem; padding: 14px 0; animation: slide 38s linear infinite; font-family: var(--serif); font-style: italic; font-size: 1.35rem; white-space: nowrap; }
.ribbon-track span::after { content: "✦"; margin-left: 2.4rem; color: var(--terra-soft); font-style: normal; font-size: .9rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.section-heading { max-width: 780px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(40px, 6vw, 72px); }
.feature-card { position: relative; padding: 34px 30px 32px; border-radius: var(--radius); background: var(--sage-soft); transition: transform .3s ease; }
.feature-card:nth-child(2) { background: var(--cream-2); margin-top: 28px; }
.feature-card:nth-child(3) { background: var(--terra-soft); }
.feature-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.feature-card .icon { display: block; margin-bottom: 18px; font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--teal); opacity: .85; }
.feature-card p { margin: 0; color: #3c4d48; }

/* ---------- Servicios ---------- */
.services { background: var(--cream-2); }
.service-list { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; margin-top: 48px; }
.service-card { padding: 28px 26px; border-radius: 24px; background: var(--cream); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 1.2rem; }
.service-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .98rem; }
.service-card.large { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 38px 34px; background: var(--teal); border-color: var(--teal); color: var(--cream); position: relative; overflow: hidden; }
.service-card.large::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
.service-card.large h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.service-card.large p:not(.tag) { color: rgba(250, 244, 232, .85); font-size: 1.05rem; }
.service-card.large .tag { background: var(--cream); color: var(--teal-deep); }
.service-card.large > a { position: relative; z-index: 1; align-self: flex-start; font-weight: 700; text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid var(--terra-soft); color: var(--cream); }
.service-card.large > a:hover { border-color: var(--cream); }

/* ---------- Método ---------- */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 7vw, 100px); background: var(--teal-deep); color: var(--cream); position: relative; overflow: hidden; }
.method::before { content: ""; position: absolute; left: -140px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(15, 106, 97, .45); }
.method > * { position: relative; }
.method .eyebrow { color: var(--terra-soft); }
.method-copy p:not(.eyebrow) { color: rgba(250, 244, 232, .78); font-size: 1.1rem; }
.method h2 em { color: var(--terra-soft); }
.timeline { display: grid; gap: 0; align-self: center; }
.timeline-item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding-bottom: 38px; position: relative; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, rgba(250,244,232,.4) 0 6px, transparent 6px 12px); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--teal-deep); font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.timeline-item:nth-child(2) > span { background: var(--terra-soft); }
.timeline-item:nth-child(3) > span { background: var(--sage); }
.timeline-item h3 { margin: 6px 0 6px; }
.timeline-item p { margin: 0; color: rgba(250, 244, 232, .75); }

/* ---------- Sobre mí ---------- */
.about-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.about-image {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 32px 32px 999px 999px;
  background: linear-gradient(200deg, var(--sage) 0%, var(--teal) 100%);
  box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
}
.check-list { list-style: none; padding: 0; margin: 1.6em 0 2em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 38px; font-weight: 500; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: var(--teal-deep); font-size: .85rem; font-weight: 800; }

/* ---------- Retrato circular y consultorio ---------- */
.about-image.is-circle { aspect-ratio: 1; border-radius: 50%; background: var(--terra-soft); transform: none; box-shadow: 0 0 0 10px var(--cream), 0 0 0 12px var(--terra-soft), var(--shadow); }

.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 84px); align-items: center; background: var(--cream-2); }
.visit-image { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.visit-image img { width: 100%; height: auto; display: block; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }

/* ---------- Recetas y novedades ---------- */
.corner-block { margin-top: clamp(44px, 6vw, 76px); }
.corner-block > h3 { display: flex; align-items: center; gap: 18px; margin: 0; font-size: 1.6rem; }
.corner-block > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 26px; }
.card-grid:empty { display: none; }

.recipe-card, .opinion-card { display: flex; flex-direction: column; border-radius: 24px; background: #fff9ee; border: 1px solid var(--line); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.recipe-card:hover, .opinion-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.recipe-cover { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--teal); color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1.6rem; overflow: hidden; }
.recipe-cover::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .1); }
.recipe-card:nth-child(3n+2) .recipe-cover { background: var(--terra); }
.recipe-card:nth-child(3n) .recipe-cover { background: var(--teal-deep); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card-body h4 { margin: 0 0 .4em; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.card-body p { margin: 0 0 1em; color: var(--muted); font-size: .98rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.mini-tag { display: inline-block; align-self: flex-start; margin-bottom: .9em; padding: .25em .8em; border-radius: 99px; background: var(--sage); color: var(--teal-deep); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mini-tag.opinion { background: var(--terra-soft); color: #7a3416; }
.card-date { margin: -.4em 0 .8em !important; font-size: .82rem !important; }
.opinion-card details { margin-top: auto; }
.opinion-card summary { cursor: pointer; font-weight: 700; color: var(--terra); list-style: none; }
.opinion-card summary::-webkit-details-marker { display: none; }
.opinion-card details[open] summary { margin-bottom: 1em; }
.opinion-card details p { color: var(--ink); }
.empty-card { grid-column: 1 / -1; padding: 28px; border: 2px dashed var(--line); border-radius: 24px; text-align: center; background: transparent; }
.empty-card p { margin: 0 0 1em; color: var(--muted); }
.empty-card strong { display: block; margin-bottom: .3em; font-family: var(--serif); font-size: 1.3rem; color: var(--teal); }

.corner-sub { margin: 34px 0 14px; font-weight: 700; color: var(--teal); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-chip { padding: .7em 1.1em; border: 1.5px solid var(--teal); border-radius: 99px; color: var(--teal); font-size: .95rem; font-weight: 500; text-decoration: none; transition: background .2s ease, color .2s ease; }
.topic-chip:hover { background: var(--teal); color: var(--cream); }

.newsletter { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 7vw, 88px); padding: clamp(30px, 5vw, 56px); border-radius: 36px; background: var(--teal-deep); color: var(--cream); position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; left: -80px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 46px solid rgba(255, 255, 255, .06); pointer-events: none; }
.newsletter > * { position: relative; z-index: 1; }
.newsletter .eyebrow { color: var(--terra-soft); }
.newsletter h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.newsletter-copy p:not(.eyebrow) { margin: 0; color: rgba(250, 244, 232, .8); }
.newsletter-form { display: grid; gap: 14px; }
.newsletter-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.newsletter-form input { width: 100%; padding: .9em 1.1em; border: 2px solid transparent; border-radius: 14px; background: var(--cream); color: var(--ink); font: inherit; font-weight: 400; letter-spacing: 0; }
.newsletter-form input:focus-visible { outline: 3px solid var(--terra-soft); outline-offset: 2px; }
.newsletter-form input[aria-invalid="true"] { border-color: var(--terra); }
.newsletter-form .btn { margin-top: 4px; }
.form-status { min-height: 1.4em; margin: 0; font-size: .92rem; color: var(--terra-soft); }
.disclaimer { margin: 28px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Planes ---------- */
.plans { background: var(--sage-soft); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; align-items: stretch; }
.pricing-card { display: flex; flex-direction: column; padding: 36px 30px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.pricing-card h3 { font-size: 1.4rem; }
.pricing-card .price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--teal); margin: .2em 0 .5em; }
.pricing-card p:not(.price):not(.tag) { color: var(--muted); flex: 1; }
.pricing-card .btn { margin-top: 1em; align-self: flex-start; }
.pricing-card.highlighted { background: var(--teal); border-color: var(--teal); color: var(--cream); transform: translateY(-18px); box-shadow: var(--shadow); }
.pricing-card.highlighted .price { color: #fff; }
.pricing-card.highlighted p:not(.price):not(.tag) { color: rgba(250, 244, 232, .82); }
.pricing-card.highlighted .tag { align-self: flex-start; background: var(--cream); color: var(--teal-deep); }

/* ---------- Cita ---------- */
.testimonial { background: var(--terra-soft); text-align: center; position: relative; overflow: hidden; }
.quote-card { max-width: 900px; margin: 0 auto; position: relative; }
.quote-card::before { content: "“"; display: block; font-family: var(--serif); font-size: 9rem; line-height: .6; color: var(--terra); opacity: .55; }
.quote-card p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.25; color: var(--teal-ink); }
.quote-card span { font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7a3416; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 48px auto 0; display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: 20px; background: #fff9ee; transition: background .2s ease; }
.faq-list details[open] { background: var(--sage-soft); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: var(--cream); font-family: var(--sans); font-size: 1.3rem; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--terra); }
.faq-list details p { margin: 0; padding: 0 26px 24px; color: var(--muted); }

/* ---------- Contacto ---------- */
.cta { margin: 0 var(--gutter) clamp(48px, 7vw, 90px); padding: clamp(40px, 6vw, 72px); border-radius: 40px; background: var(--teal); color: var(--cream); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -90px; top: -90px; width: 320px; height: 320px; border-radius: 50%; border: 56px solid rgba(255,255,255,.07); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta .eyebrow { color: var(--terra-soft); }
.cta h2 { max-width: 15em; }
.cta h2 em { color: var(--terra-soft); }
.cta p:not(.eyebrow) { max-width: 36em; color: rgba(250, 244, 232, .85); }
.cta .contact-phone { margin: 0 0 .4em; }
.cta .contact-phone a { font-weight: 700; color: #fff; text-underline-offset: 4px; }
.cta > .btn { background: var(--cream); border-color: var(--cream); color: var(--teal-deep); font-size: 1.08rem; padding: 1.1em 2.2em; }
.cta > .btn:hover { background: #fff; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }

/* ---------- Pie ---------- */
.footer { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding: 52px var(--gutter); background: var(--teal-ink); color: rgba(250, 244, 232, .8); }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: .92; }
.footer .wordmark { color: var(--cream); margin-bottom: 14px; }
.footer-phone { margin: 0 0 .3em; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; gap: 28px; font-weight: 500; }

/* ---------- Agendar por WhatsApp ---------- */
.hero-note { margin: -1.2em 0 1.8em; font-size: .9rem; color: var(--muted); }
.hero-text strong { color: var(--teal); }
a.appointment-card { display: block; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
a.appointment-card:hover { transform: rotate(-1deg) translateY(-4px); box-shadow: 0 30px 60px -26px rgba(7, 42, 39, .55); }
a.appointment-card span { color: var(--terra); font-weight: 700; }
a.appointment-card span::before { display: none; }

.service-card { display: flex; flex-direction: column; }
.service-card .service-link { margin-top: auto; padding-top: 1em; font-weight: 700; font-size: .95rem; color: var(--terra); text-decoration: none; }
.service-card .service-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-card p:not(.tag):not(:last-child) { margin-bottom: .6em; }

.pricing-card .price-note { margin: .3em 0 .7em; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.25; color: var(--teal); }
.pricing-card.highlighted .price-note { color: var(--terra-soft); }

.steps { list-style: none; counter-reset: paso; display: grid; gap: 14px; padding: 0; margin: 1.6em 0 1.8em; }
.steps li { counter-increment: paso; position: relative; display: flex; flex-direction: column; padding-left: 54px; line-height: 1.35; }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--terra-soft); color: var(--teal-ink); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.steps strong { color: #fff; }
.steps span { color: rgba(250, 244, 232, .75); font-size: .95rem; }

.wa-float { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 99px; background: var(--terra); color: #fff; font-weight: 700; font-size: .98rem; text-decoration: none; box-shadow: 0 18px 34px -12px rgba(184, 82, 43, .75); transition: transform .25s ease, opacity .25s ease; animation: latido 3.2s ease-in-out infinite; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
@keyframes latido { 0%, 100% { box-shadow: 0 18px 34px -12px rgba(184, 82, 43, .75), 0 0 0 0 rgba(184, 82, 43, .45); } 50% { box-shadow: 0 18px 34px -12px rgba(184, 82, 43, .75), 0 0 0 14px rgba(184, 82, 43, 0); } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feature-card.reveal.in:hover { transform: translateY(-6px) rotate(-.6deg); }
.js .pricing-card.highlighted.reveal.in { transform: translateY(-18px); }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .hero, .method, .about-card { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; margin: 0 auto; width: 100%; order: -1; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(2) { margin-top: 0; }
  .pricing-card.highlighted, .js .pricing-card.highlighted.reveal.in { transform: none; }
  .service-list { grid-template-columns: 1fr 1fr; }
  .service-card.large { grid-column: 1 / -1; grid-row: auto; }
  .about-image { max-width: 420px; margin: 0 auto; }
  .visit { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; }
  .nav-links .phone-link { display: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .menu-toggle { display: flex; }
  .brand img { height: 50px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 22px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(7, 42, 39, .4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .phone-link { display: block; }
  .nav-links .btn { margin-top: 16px; padding: 1em; }
  .service-list { grid-template-columns: 1fr; }
  .hero-card { padding-left: 10px; max-width: 320px; }
  .appointment-card { max-width: 262px; padding: 14px 16px; }
  .appointment-card h3 { font-size: 1rem; }
  .timeline-item { grid-template-columns: 52px 1fr; gap: 18px; }
  .timeline-item > span { width: 52px; height: 52px; font-size: 1.4rem; }
  .timeline-item:not(:last-child)::before { left: 25px; top: 52px; }
  .cta { border-radius: 28px; }
  .cta > .btn { width: 100%; }
  .visit-actions .btn { flex: 1 1 100%; }
  .newsletter { border-radius: 28px; }
  .topic-chip { font-size: .9rem; }
  .footer { flex-direction: column; padding-bottom: 96px; }
  .wa-float { left: 18px; right: 18px; justify-content: center; }
  .hero-note { margin-top: -.6em; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track, .wa-float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
