/* ==========================================================================
   Consultorio — Lic. Ana Paola Rubio Barrera
   Paleta "Lino y marfil", acomodada como en el esquema:
   barra rosa, lienzo marfil, bloques de lino y tarjetas rosa palo.
   #F6EFDA marfil · #F8E6D6 lino · #EFCFCA · #E3BEC3 · #E2BDC0
   ========================================================================== */

:root {
  --bg: #f6efda;
  --surface: #f8e6d6;
  --rose-1: #f6efda;
  --rose-2: #f8e6d6;
  --rose-3: #efcfca;
  --rose-4: #e3bec3;
  --rose-5: #e2bdcd;
  --sage: #7a4e68;
  --sage-deep: #5c3d52;
  --sage-soft: #efcfca;
  --terracotta: #e3bec3;
  --terracotta-hover: #e2bdcd;
  --sand: #efcfca;
  --ink: #5c3d52;
  --muted: #7a5a6c;
  --line: rgba(92, 61, 82, 0.14);
  --shadow: 0 12px 32px rgba(92, 61, 82, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 4.5rem;
  --nav-break: 1100px;
  --serif: "Lora", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --wa: #128c7e;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(880px 420px at 100% -8%, rgba(226, 189, 205, 0.38), transparent 58%),
    radial-gradient(720px 460px at -12% 8%, rgba(248, 230, 214, 0.9), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--sage-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sage);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--rose-5);
  color: var(--ink);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding-block: 4.5rem;
}

section[id],
#privacidad {
  scroll-margin-top: 6rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 1px;
  background: var(--terracotta);
  flex: none;
}

h1,
h2,
.logo-name,
.step-index,
.quote p {
  font-family: var(--serif);
}

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
}

h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lede,
.muted {
  color: var(--muted);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

.section-head .lede {
  margin-top: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(226, 189, 205, 0.45);
}

.btn-primary:hover {
  background: var(--terracotta-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--sage-deep);
  border-color: rgba(122, 78, 104, 0.4);
  background: rgba(255, 248, 246, 0.8);
}

.btn-secondary:hover {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* --------------------------------------------------------------------------
   Encabezado fijo
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rose-5);
  box-shadow: none;
}

.site-header.is-scrolled {
  background: var(--rose-5);
  box-shadow: 0 10px 28px rgba(92, 61, 82, 0.1);
}

.header-cta {
  background: var(--rose-1);
  box-shadow: none;
}

.header-cta:hover {
  background: #fffdf6;
  color: var(--ink);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: var(--header-h);
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-check:focus {
  outline: none;
}

.nav-check:focus-visible + .logo + .nav-toggle,
.nav-check:focus-visible ~ .nav-toggle {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.logo-name {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.logo-role {
  display: block;
  margin-top: 0.12rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--sage);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-toggle .icon-close,
.nav-check:checked ~ .nav-toggle .icon-menu {
  display: none;
}

.nav-check:checked ~ .nav-toggle .icon-close {
  display: block;
}

.nav-check:checked ~ .nav-toggle .label-open {
  display: none;
}

.nav-toggle .label-close {
  display: none;
}

.nav-check:checked ~ .nav-toggle .label-close {
  display: inline;
}

.nav-panel {
  position: fixed;
  z-index: 35;
  inset: var(--header-h) 0 0;
  padding: 0.4rem 1rem 2rem;
  background: var(--bg);
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.nav-check:checked ~ .nav-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav-links a {
  display: block;
  padding: 0.9rem 0.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav-links a[aria-current="true"] {
  color: var(--ink);
}

.menu-cta {
  width: 100%;
  margin-top: 1.1rem;
}

.header-cta {
  display: none;
  min-height: 2.75rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.cta-full {
  display: none;
}

body:has(.nav-check:checked) {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 2.4rem 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.7vw, 3.85rem);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
}

.hero .lede {
  margin-top: 1.15rem;
  font-size: 1.08rem;
  max-width: 38rem;
}

.credential-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  align-items: center;
  margin-top: 1.15rem;
  color: var(--sage-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.credential-line span + span::before {
  content: "·";
  margin-right: 0.7rem;
  color: var(--terracotta);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.hero-note {
  margin-top: 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-row li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero-visual {
  position: relative;
  padding: 0 0.2rem 1.15rem 1rem;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 7.5rem 1.6rem 5rem 1.6rem;
  background: var(--sage-soft);
  box-shadow: 0 18px 40px rgba(92, 61, 82, 0.12);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1.05rem 0 0 0;
  border: 1.5px solid var(--terracotta);
  border-radius: 5rem 1.6rem 7.5rem 1.6rem;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: 1.45rem;
  bottom: 1.85rem;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(246, 239, 218, 0.96);
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Áreas
   -------------------------------------------------------------------------- */

.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.area-card {
  flex: 1 1 100%;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid rgba(92, 61, 82, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.area-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--sage-soft);
  color: var(--sage);
}

.area-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 1.6;
}

.area-card h3 {
  margin-bottom: 0.45rem;
}

.area-card p {
  color: var(--ink);
  font-size: 0.98rem;
}

.area-card .area-icon {
  background: var(--rose-1);
}

.area-card:nth-child(3n + 1) {
  background: var(--rose-3);
}

.area-card:nth-child(3n + 2) {
  background: var(--rose-4);
}

.area-card:nth-child(3n + 3) {
  background: var(--rose-5);
}

/* --------------------------------------------------------------------------
   Sobre mí
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 8%;
  bottom: -0.75rem;
  left: -0.7rem;
  height: 42%;
  border-radius: var(--radius);
  background: var(--sage-soft);
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4.4;
  object-fit: cover;
  border-radius: 16px 16px 88px 16px;
  background: var(--sage-soft);
}

.bio p + p {
  margin-top: 0.95rem;
}

.credentials {
  margin-top: 1.5rem;
  padding: 0.4rem 1.15rem 0.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.credentials li {
  position: relative;
  padding: 0.78rem 0 0.78rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.credentials li:last-child {
  border-bottom: 0;
}

.credentials li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--terracotta);
}

.cedula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-weight: 600;
}

.cedula span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Enfoque — banda lavanda
   -------------------------------------------------------------------------- */

.band {
  background: var(--rose-5);
  color: var(--ink);
}

.band .eyebrow {
  color: var(--sage-deep);
}

.band .eyebrow::before {
  background: var(--sage);
}

.band h2,
.band h3 {
  color: var(--ink);
}

.band .lede,
.band .principle p,
.approach-note {
  color: var(--sage-deep);
}

.band :focus-visible {
  outline-color: var(--sage-deep);
}

.principles {
  display: grid;
  gap: 1rem;
}

.principle {
  padding: 1.3rem 1.2rem 1.35rem;
  border: 1px solid rgba(92, 61, 82, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 248, 246, 0.72);
}

.principle .area-icon {
  background: var(--rose-2);
  color: var(--sage);
}

.principle h3 {
  margin-bottom: 0.45rem;
}

.approach-note {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.quote {
  max-width: 40rem;
  margin-top: 1.8rem;
  padding-left: 1rem;
  border-left: 2px solid var(--terracotta-hover);
}

.quote p {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Proceso
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 0.2rem;
}

.step {
  position: relative;
  padding: 0 0 1.6rem 4.6rem;
}

.step-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3.25rem;
}

.step-index {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  background: var(--bg);
  color: var(--sage);
  font-size: 1.25rem;
}

.step:not(:last-child) .step-rail::after {
  content: "";
  position: absolute;
  top: 3.25rem;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rose-4);
  transform: translateX(-50%);
}

.step h3 {
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Preguntas frecuentes
   -------------------------------------------------------------------------- */

.faq-layout {
  max-width: 760px;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(92, 61, 82, 0.08);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(92, 61, 82, 0.05);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.faq-icon {
  flex: none;
  color: var(--sage);
  transition: transform 0.28s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--sage);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 1.15rem;
  align-items: start;
}

.contact-form,
.contact-aside {
  padding: 1.35rem 1.2rem 1.4rem;
  border: 1px solid rgba(92, 61, 82, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form {
  border-top: 3px solid var(--terracotta);
}

.contact-aside {
  border-top: 3px solid var(--rose-5);
  background: var(--rose-3);
}

.panel-title {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
}

.panel-intro {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.field {
  margin-bottom: 1rem;
}

.field label,
.field legend,
.choice-legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
}

fieldset {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

input[type="text"],
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(92, 61, 82, 0.16);
  border-radius: 12px;
  background: #fff;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[type="text"]:focus-visible,
textarea:focus-visible {
  border-color: var(--sage);
}

input[type="text"]:user-invalid,
textarea:user-invalid {
  border-color: #8d4d62;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid rgba(92, 61, 82, 0.16);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}

.choice input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--sage);
}

.choice input:focus {
  outline: none;
}

.choice:focus-within,
.choice:has(input:checked) {
  border-color: var(--sage);
}

.choice:has(input:checked) {
  background: var(--sage-soft);
}

.form-note,
.form-status {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status:empty {
  display: none;
}

.form-actions .btn {
  width: 100%;
}

.meta-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.15rem;
}

.meta-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.7rem;
  align-items: start;
}

.meta-list svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  color: var(--sage);
  stroke-width: 1.7;
}

.meta-list strong {
  display: block;
  font-size: 0.92rem;
}

.meta-list p,
.meta-list a {
  font-size: 0.95rem;
}

.aside-btn {
  width: 100%;
  margin-top: 0.4rem;
  white-space: normal;
}

.map-frame {
  margin-top: 1.1rem;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sage-soft);
}

.map-frame iframe {
  width: 100%;
  height: 210px;
  border: 0;
  filter: grayscale(0.35) contrast(1.04);
}

.map-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pie y WhatsApp flotante
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--rose-4);
  color: var(--ink);
  padding-block: 3.2rem 1.5rem;
}

.site-footer a {
  color: var(--sage-deep);
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

.footer-grid h2 {
  margin-bottom: 0.7rem;
  color: var(--sage);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.privacy p + p {
  margin-top: 0.7rem;
}

.privacy p,
.footer-bottom {
  color: var(--sage-deep);
  font-size: 0.92rem;
}

.footer-bottom {
  display: grid;
  gap: 0.35rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(92, 61, 82, 0.16);
}

.wa-float {
  position: fixed;
  z-index: 45;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.32);
}

.wa-float:hover {
  color: #fff;
  background: #0f7a6e;
}

.wa-float svg {
  width: 1.7rem;
  height: 1.7rem;
}

.wa-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  width: max-content;
  max-width: 12.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float:hover .wa-tip,
.wa-float:focus-visible .wa-tip {
  opacity: 1;
  transform: none;
}

/* Aparición al desplazar. Sin la clase .js el contenido permanece visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.areas-grid .area-card:nth-child(2) { --d: 70ms; }
.areas-grid .area-card:nth-child(3) { --d: 140ms; }
.areas-grid .area-card:nth-child(4) { --d: 210ms; }
.areas-grid .area-card:nth-child(5) { --d: 280ms; }
.principles .principle:nth-child(2) { --d: 80ms; }
.principles .principle:nth-child(3) { --d: 160ms; }
.steps .step:nth-child(2) { --d: 80ms; }
.steps .step:nth-child(3) { --d: 160ms; }

/* --------------------------------------------------------------------------
   Desde tablet
   -------------------------------------------------------------------------- */

@media (min-width: 520px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 700px) {
  .container {
    width: min(1120px, calc(100% - 3rem));
  }

  .area-card {
    flex-basis: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }

.form-actions .btn {
  width: auto;
}
}

@media (min-width: 800px) {
  .principles,
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .step {
    padding: 0;
  }

  .step-rail {
    position: relative;
    width: 100%;
    height: 3.25rem;
    margin-bottom: 1rem;
  }

  .step:not(:last-child) .step-rail::after {
    top: 50%;
    bottom: auto;
    left: 3.25rem;
    width: auto;
    height: 1px;
    right: -1.15rem;
    transform: none;
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 6.25rem;
  }

  .hero {
    padding-block: 2.2rem 2.4rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 3.1vw, 3.25rem);
  }

  .hero-photo {
    width: 100%;
    height: min(32rem, calc(100vh - var(--header-h) - 7rem));
    aspect-ratio: auto;
    object-fit: cover;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 0.86fr 1.14fr;
  }

  .about-photo {
    aspect-ratio: 5 / 5.6;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.4rem;
  }
}

@media (min-width: 1040px) {
  .areas-grid {
    justify-content: center;
  }

  .area-card {
    flex-basis: calc((100% - 2rem) / 3);
    max-width: calc((100% - 2rem) / 3);
  }
}

@media (min-width: 1100px) {
  .nav-toggle,
  .nav-check,
  .menu-cta {
    display: none;
  }

  .cta-short {
    display: none;
  }

  .cta-full {
    display: inline;
  }

  .nav-panel,
  .nav-check:checked ~ .nav-panel {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
  }

  .nav-links a {
    position: relative;
    padding: 0.3rem 0;
    border-bottom: 0;
    font-size: 0.94rem;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
  }

  .nav-links a:hover::after,
  .nav-links a[aria-current="true"]::after {
    transform: scaleX(1);
  }

  body:has(.nav-check:checked) {
    overflow: auto;
  }
}

@media (min-width: 768px) {
  .wa-tip {
    max-width: none;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .trust-row {
    max-width: calc(100% - 4.25rem);
  }

  .credential-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .credential-line span + span::before {
    content: none;
  }
}

@media (max-width: 400px) {
  .logo-name .lic {
    display: none;
  }

  .logo-name {
    font-size: 0.9rem;
  }
}

@media (hover: hover) {
  .area-card:hover {
    transform: translateY(-3px);
    border-color: rgba(220, 186, 217, 0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .faq-panel,
  .btn,
  .area-card,
  .nav-panel,
  .wa-tip,
  .faq-icon {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .wa-float,
  .nav-toggle,
  .nav-check,
  .skip {
    display: none !important;
  }

  .nav-panel {
    position: static;
    visibility: visible;
    opacity: 1;
    display: block;
  }

  .site-header {
    position: static;
  }

  body {
    background: #fff;
  }
}
