/* ==========================================================================
   Sonia Sánchez — Psicóloga · Maqueta Home
   ========================================================================== */

/* ---- Fuentes locales ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/lora-latin-italic.woff2") format("woff2");
}

/* ---- Variables de diseño ---- */
:root {
  /* Colores */
  --color-accent-green: #BBB791;
  --color-accent-green-dark: #94957A;
  --color-bg-beige: #F4EDE5;
  --color-bg-white: #FFFFFF;
  --color-border-soft: #E7DFD5;
  --color-footer-bg: #282828;
  --color-footer-text: #F5F3EF;
  --color-footer-text-muted: #ABA9A2;
  --color-text-primary: #282828;
  --color-text-secondary: #6B6B63;

  /* Tipografía */
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Lora", Georgia, serif;

  /* Layout */
  --content-max-width: 1240px;
  --radius-button: 100px;
  --radius-card: 24px;
  --section-padding-y: 100px;
  --section-padding-x: 100px;
  --header-padding-y: 24px;

  /* Sombras */
  --shadow-card: 0 20px 45px rgba(40, 40, 40, 0.07);
}

@media (max-width: 1023px) {
  :root {
    --section-padding-y: 72px;
    --section-padding-x: 48px;
  }
}

@media (max-width: 599px) {
  :root {
    --section-padding-y: 56px;
    --section-padding-x: 24px;
    --header-padding-y: 18px;
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
fieldset { border: none; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Footer siempre al fondo del viewport, aunque el contenido sea corto (p. ej. 404). */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

.container {
  max-width: var(--content-max-width);
  margin-inline: auto;
}

.section {
  width: 100%;
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.section--beige { background: var(--color-bg-beige); }
.section--white { background: var(--color-bg-white); }
.section--green { background: var(--color-accent-green); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  color: var(--color-accent-green-dark);
  text-transform: uppercase;
}

.text-secondary { color: var(--color-text-secondary); }

/* ---- Accesibilidad ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  background: var(--color-text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}
:focus-visible {
  outline: 2px solid var(--color-accent-green-dark);
  outline-offset: 2px;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  background: var(--color-accent-green);
  color: var(--color-text-primary);
}
.btn--primary:hover { background: var(--color-accent-green-dark); color: #fff; }

.btn--secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid var(--color-text-primary);
}
.btn--secondary:hover { background: var(--color-text-primary); color: #fff; }

.btn--outline-dark {
  background: transparent;
  color: var(--color-footer-text);
  border: 1.5px solid var(--color-footer-text);
}
.btn--outline-dark:hover { background: var(--color-footer-text); color: var(--color-footer-bg); }

.btn--dark-on-green {
  background: var(--color-text-primary);
  color: #fff;
}
.btn--dark-on-green:hover { background: #000; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border-soft);
  padding: 0 var(--section-padding-x);
}
/* El desenfoque vive en un pseudo-elemento: así .header no genera un
   containing block para el panel móvil en position:fixed (backdrop-filter
   lo haría, rompiendo su altura). */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.header__inner {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: var(--header-padding-y) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; min-width: 0; }
.brand__logo { height: 44px; width: auto; max-width: 100%; display: block; }

/* Navegación principal */
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--color-accent-green-dark); }
.nav__link.is-active { color: var(--color-text-primary); font-weight: 600; }

.nav__item--dropdown { position: relative; }

.nav__chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav__item--dropdown.is-open .nav__chevron,
.nav__item--dropdown:hover .nav__chevron { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
/* Puente invisible entre el trigger y el desplegable: sin él, el hueco de
   12px rompe el :hover al bajar el ratón hacia los sub-items. */
.nav__dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__dropdown-link {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
}
.nav__dropdown-link:hover { background: var(--color-bg-beige); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav__toggle-bar {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  transition: background-color 0.2s ease;
}
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav__toggle-bar::before { top: -7px; }
.nav__toggle-bar::after { top: 7px; }
.header.is-open .nav__toggle-bar { background: transparent; }
.header.is-open .nav__toggle-bar::before { top: 0; transform: rotate(45deg); }
.header.is-open .nav__toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1199px) {
  .nav__toggle { display: flex; }

  .nav { gap: 0; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--header-height, 73px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-white);
    padding: 8px 24px 24px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }
  .header.is-open .nav__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__item + .nav__item:not(.nav__cta) { border-top: 1px solid var(--color-border-soft); }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 1rem;
  }

  .nav__item--dropdown.is-open .nav__chevron { transform: rotate(180deg); }

  .nav__dropdown,
  .nav__item--dropdown:hover .nav__dropdown,
  .nav__item--dropdown.is-open .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    display: none;
  }
  .nav__dropdown::before { content: none; }
  .nav__dropdown-link {
    padding: 14px 4px 14px 16px;
    color: var(--color-text-secondary);
  }
  .nav__item--dropdown.is-open .nav__dropdown { display: block; }
  .nav__item--dropdown:hover .nav__dropdown { display: none; }
  .nav__item--dropdown.is-open:hover .nav__dropdown { display: block; }

  .nav__cta { margin-top: 20px; }
  .nav__cta .btn { width: 100%; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__wrap {
  display: flex;
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: var(--content-max-width);
}
.hero__left { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.hero__right { flex: 1 1 0; display: flex; justify-content: center; }

.hero__headline {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.08;
}
.hero__intro { font-size: 1.0625rem; max-width: 480px; line-height: 1.5; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__note { font-size: 0.8125rem; color: var(--color-text-secondary); }
.hero__illustration { width: 100%; max-width: 460px; height: 485px; }

@media (max-width: 900px) {
  .hero__wrap { flex-direction: column-reverse; gap: 40px; }
  .hero__intro { max-width: 100%; }
  .hero__illustration { max-width: 300px; height: 317px; }
}
@media (max-width: 599px) {
  .hero__illustration { max-width: 220px; height: 232px; }
}

/* ---- Section header (reutilizable) ---- */
.section-head {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 56px;
}
.section-head__title { font-size: clamp(1.6rem, 3vw, 2.125rem); }
.section-head__subtitle { font-size: 1rem; line-height: 1.5; }

/* ---- Servicios ---- */
.servicios__wrap { width: 100%; max-width: var(--content-max-width); display: flex; flex-direction: column; align-items: center; }
.cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  border: 2px solid transparent;
  border-radius: var(--radius-card);
  background:
    linear-gradient(var(--color-bg-white), var(--color-bg-white)) padding-box,
    linear-gradient(180deg, var(--color-bg-beige), var(--color-bg-white)) border-box;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  background:
    linear-gradient(var(--color-bg-white), var(--color-bg-white)) padding-box,
    linear-gradient(180deg, var(--color-bg-beige), var(--color-bg-beige)) border-box;
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}
.card__top { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.card__icon { width: 150px; height: 150px; }
.card__title { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; }
.card__divider { width: 32px; height: 2px; margin: 0; border: none; background: var(--color-accent-green-dark); }
.card__desc { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.5; }
.card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  margin-inline: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-green);
  color: var(--color-text-primary);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.card__link:hover,
.card:hover .card__link { background: var(--color-accent-green-dark); color: #fff; }
.card__link svg { width: 16px; height: 16px; }

@media (max-width: 1200px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
}

/* ---- Como trabajo ---- */
.como-trabajo__wrap {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  align-items: center;
  gap: 64px;
}
.como-trabajo__visual { flex: 1 1 0; display: flex; justify-content: center; }
.como-trabajo__visual img { width: 100%; max-width: 443px; height: 467px; }
.como-trabajo__content { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.como-trabajo__title { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.como-trabajo__paragraph { font-size: 1rem; line-height: 1.55; }

.principles { display: flex; flex-direction: column; gap: 16px; }
.principle__title { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.principle__desc { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.5; }

@media (max-width: 900px) {
  .como-trabajo__wrap { flex-direction: column; gap: 40px; }
  .como-trabajo__visual img { max-width: 280px; height: 295px; }
}
@media (max-width: 599px) {
  .como-trabajo__visual img { max-width: 200px; height: 211px; }
}

/* ---- Método ICE ---- */
.ice__wrap { width: 100%; max-width: var(--content-max-width); display: flex; flex-direction: column; align-items: center; gap: 56px; }
.ice__steps {
  display: flex;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
}
.step {
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.step__icon-wrap {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__icon-wrap img { width: 150px; height: 150px; }
.step__word-row { display: inline-flex; }
.step__word {
  font-family: var(--font-heading);
  font-size: 1.25rem;
}
.step__first-letter { position: relative; font-weight: 700; }
.step__first-letter::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
}
.step__desc { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.5; }

@media (max-width: 780px) {
  .ice__steps { gap: 40px; }
}

/* ---- Sobre mí ---- */
.sobre-mi__content { width: 100%; max-width: var(--content-max-width); display: flex; align-items: center; gap: 64px; }
.sobre-mi__photo-wrap {
  position: relative;
  flex: 1 1 0;
  max-width: 460px;
  height: 560px;
  display: flex;
  align-items: center;
}
.sobre-mi__blob {
  position: absolute;
  left: 0;
  top: 80px;
  width: 340px;
  height: 340px;
  border-radius: 46% 54% 55% 45% / 45% 45% 55% 55%;
  background: var(--color-bg-white);
  transform: rotate(8deg);
}
.sobre-mi__photo {
  position: relative;
  margin-left: 90px;
  width: 370px;
  height: 500px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.sobre-mi__photo img { width: 100%; height: 100%; object-fit: cover; }

.sobre-mi__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 20px; }
.sobre-mi__title { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.sobre-mi__paragraph { font-size: 1rem; line-height: 1.5; }
.sobre-mi__note { font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.5; }

.quote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--color-accent-green);
}
.quote__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .sobre-mi__content { flex-direction: column; gap: 48px; }
  .sobre-mi__photo-wrap { max-width: 100%; width: 100%; height: auto; justify-content: center; }
  .sobre-mi__blob { left: 50%; margin-left: -170px; }
  .sobre-mi__photo { margin-left: 0; width: min(370px, 80vw); height: auto; aspect-ratio: 370 / 500; }
}

/* ---- Proceso ---- */
.proceso__title { font-size: clamp(1.6rem, 3vw, 2.125rem); text-align: center; }
.proceso__steps {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding-top: 48px;
}
.proceso-step {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.proceso-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent-green);
  background: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--color-accent-green-dark);
}
.proceso-step__title { font-size: 1.0625rem; font-weight: 600; }
.proceso-step__desc { font-size: 0.875rem; color: var(--color-text-secondary); max-width: 230px; }

/* ---- Empresas ---- */
.empresas__wrap {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}
.empresas__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; }
.empresas__title { font-size: clamp(1.375rem, 3vw, 1.75rem); line-height: 1.25; }
.empresas__paragraph { font-size: 0.9375rem; line-height: 1.5; }
.empresas__visual { flex: 1 1 0; display: flex; justify-content: center; }
.empresas__visual img { width: 100%; max-width: 449px; height: 456px; }

@media (max-width: 900px) {
  .empresas__wrap { flex-direction: column-reverse; gap: 40px; }
  .empresas__visual img { max-width: 300px; height: 305px; }
}
@media (max-width: 599px) {
  .empresas__visual img { max-width: 220px; height: 224px; }
}

/* ---- CTA final ---- */
.cta-final { color: var(--color-text-primary); text-align: center; gap: 0; }
.cta-final__title { font-size: clamp(1.75rem, 4vw, 2.375rem); max-width: 700px; }
.cta-final__paragraph { font-size: 1rem; line-height: 1.5; max-width: 600px; margin-top: 20px; }
.cta-final__buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 32px 0 24px; }
.cta-final__footnote { display: flex; flex-direction: column; gap: 4px; }
.cta-final__footnote p { font-size: 0.875rem; opacity: 0.75; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 72px var(--section-padding-x) 32px;
}
.footer__inner { max-width: var(--content-max-width); margin-inline: auto; display: flex; flex-direction: column; gap: 48px; }

.footer__columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand-name { font-family: var(--font-heading); font-size: 1.25rem; }
.footer__brand-logo { height: 40px; width: auto; max-width: 100%; display: block; }
.footer__brand-role { font-size: 0.8125rem; color: var(--color-footer-text-muted); margin-top: 6px; }
.footer__brand-desc { font-size: 0.8125rem; color: var(--color-footer-text-muted); line-height: 1.5; max-width: 220px; margin-top: 10px; }

.footer__heading { font-size: 0.875rem; font-weight: 600; margin-bottom: 10px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a,
.footer__list span { font-size: 0.8125rem; color: var(--color-footer-text-muted); }
.footer__list a:hover { color: var(--color-footer-text); }
.footer__address { font-style: normal; }
.footer__contact-item { display: flex; align-items: center; gap: 10px; }
.footer__contact-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-accent-green); }

.footer__divider { border: none; border-top: 1px solid var(--color-footer-text-muted); opacity: 0.2; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { font-size: 0.8125rem; color: var(--color-footer-text-muted); }
.footer__legal a:hover { color: var(--color-footer-text); }
.footer__copyright { font-size: 0.8125rem; color: var(--color-footer-text-muted); }

@media (max-width: 900px) {
  .footer__columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__columns { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Animación fade-up al hacer scroll
   ========================================================================== */
[data-reveal] {
  transition: opacity 0.7s cubic-bezier(0.25, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.25, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}
.js-reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none !important; }
  .js-reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Componentes reutilizables (páginas interiores)
   ========================================================================== */

/* Insignia circular con icono — usada en tarjetas de contacto, resúmenes, etc. */
.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-green);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle svg { width: 20px; height: 20px; }
.icon-circle--sm { width: 42px; height: 42px; }
.icon-circle--sm svg { width: 18px; height: 18px; }

/* Tarjeta icono + etiqueta + valor (teléfono, correo, resumen de modalidad...) */
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-bg-white);
  border-radius: 18px;
  padding: 18px 20px;
}
.info-card__body { display: flex; flex-direction: column; gap: 3px; }
.info-card__label { font-size: 0.8125rem; color: var(--color-text-secondary); }
.info-card__value { font-size: 1rem; font-weight: 600; }
.info-card__title { font-size: 1.0625rem; font-weight: 700; }
.info-card__desc { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.45; }

.momento-quote {
  max-width: 680px;
  margin: 56px auto 0;
  text-align: center;
}
.momento-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--color-accent-green-dark);
}
.momento-quote__text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-top: -8px;
}

/* Chip / pastilla informativa */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--color-bg-beige);
  font-size: 0.875rem;
}

/* Cabecera de página interior (eyebrow + título + intro), reutiliza .hero__* */
.page-hero { padding-top: 100px; padding-bottom: 100px; }

/* ---- Sobre mí: hero con foto a sangre ---- */
.sobremi-hero {
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  /* 105px = altura del header sticky: el hero no debe superar la pantalla visible restante */
  max-height: calc(100dvh - 105px);
  min-height: 380px;
}
.sobremi-hero__text {
  flex: 0 1 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px var(--section-padding-x);
  /* alinea con el wrapper centrado (.container/.header__inner) en vez de solo el padding del borde;
     usa % (no vw) para no desajustarse por el ancho de la scrollbar */
  padding-left: max(var(--section-padding-x), calc((100% - var(--content-max-width)) / 2));
  overflow: auto;
}
.sobremi-hero__title { font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 1.08; }
.sobremi-hero__intro { font-size: 1.0625rem; line-height: 1.58; }
.sobremi-hero__photo { flex: 0 1 50%; min-width: 280px; overflow: hidden; }
.sobremi-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .sobremi-hero { flex-direction: column-reverse; max-height: none; min-height: 0; }
  .sobremi-hero__photo { height: 320px; }
  .sobremi-hero__text { padding: 48px var(--section-padding-x) 40px; overflow: visible; }
}

/* ---- Home: hero con foto a sangre (mismo patrón que .sobremi-hero) ---- */
.home-hero {
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  max-height: calc(100dvh - 105px);
  min-height: 380px;
}
.home-hero__text {
  flex: 0 1 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px var(--section-padding-x);
  padding-left: max(var(--section-padding-x), calc((100% - var(--content-max-width)) / 2));
  overflow: auto;
}
.home-hero__photo { flex: 0 1 50%; min-width: 280px; overflow: hidden; }
.home-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .home-hero { flex-direction: column-reverse; max-height: none; min-height: 0; }
  .home-hero__photo { height: 320px; }
  .home-hero__text { padding: 48px var(--section-padding-x) 40px; overflow: visible; }
}

/* ---- Servicios: hero con foto a sangre (mismo patrón que .sobremi-hero) ---- */
.servicio-hero {
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  max-height: calc(100dvh - 105px);
  min-height: 380px;
}
.servicio-hero__text {
  flex: 0 1 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 40px var(--section-padding-x);
  padding-left: max(var(--section-padding-x), calc((100% - var(--content-max-width)) / 2));
  overflow: auto;
}
.servicio-hero__photo { flex: 0 1 50%; min-width: 280px; overflow: hidden; }
.servicio-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .servicio-hero { flex-direction: column-reverse; max-height: none; min-height: 0; }
  .servicio-hero__photo { height: 320px; }
  .servicio-hero__text { padding: 48px var(--section-padding-x) 40px; overflow: visible; }
}

/* ---- Sobre mí: trayectoria ---- */
.trayectoria__row {
  width: 100%;
  max-width: var(--content-max-width);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .trayectoria__row { grid-template-columns: 1fr; }
}

/* ---- Sobre mí: enfoque terapéutico ---- */
.enfoque__wrap {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  gap: 64px;
  align-items: center;
}
.enfoque__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 22px; }
.enfoque__title { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; }
.enfoque__paragraph { font-size: 1.0625rem; color: var(--color-text-secondary); line-height: 1.58; }
.enfoque__methods { flex: 1 1 0; display: flex; flex-direction: column; gap: 16px; min-width: 280px; }
.method-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-bg-white);
  border-radius: 22px;
  padding: 24px;
}
.method-card__icon-wrap {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-card__icon-wrap img { width: 62px; height: 62px; }

@media (max-width: 900px) {
  .enfoque__wrap { flex-direction: column; }
}

/* ---- Sobre mí: gratitud (cierre) ---- */
.gratitud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
/* ---- Servicio: listado de situaciones ---- */
.checklist-grid {
  width: 100%;
  max-width: var(--content-max-width);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.checklist-col { display: flex; flex-direction: column; gap: 14px; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-bg-beige);
  border-radius: 18px;
  padding: 16px 18px;
}
.checklist-item__text { font-size: 1rem; font-weight: 600; }

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

/* ---- Método ICE: tres momentos ---- */
.momentos {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  justify-content: center;
  gap: 54px;
  flex-wrap: wrap;
}
.momento-card {
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.momento-card__icon-wrap {
  width: 154px;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.momento-card__icon-wrap img { width: 154px; height: 154px; }
.momento-card__phrase { font-size: 1.5625rem; line-height: 1.25; }
.momento-card__desc { font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.55; }

@media (max-width: 780px) {
  .momentos { gap: 40px; }
}

/* ---- Contacto ---- */
.contacto__wrap {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.contacto__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 28px; min-width: 300px; }
.contacto__title { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.08; }
.contacto__intro { font-size: 1.125rem; line-height: 1.55; }
.contacto__cards { display: flex; flex-direction: column; gap: 14px; }
.contacto__note { font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.45; }

.contacto__visual { flex: 1 1 0; min-width: 300px; display: flex; justify-content: center; }
.contacto__visual img { width: 100%; max-width: 420px; height: 424px; }

@media (max-width: 900px) {
  .contacto__wrap { flex-direction: column; }
  .contacto__visual { display: none; }
}

/* ---- Contacto: visitas presenciales ---- */
.city-cards {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.city-card {
  width: 390px;
  max-width: 100%;
  background: var(--color-bg-beige);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.city-card__title { font-size: 1.75rem; }
.city-card__desc { font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.5; }

/* ---- Página legal ---- */
.legal {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal h1.section-head__title { margin: 10px 0 4px; text-align: left; }
.legal__updated { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 24px; }
.legal__toc {
  background: var(--color-bg-beige);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.legal__toc p { font-weight: 600; margin-bottom: 10px; }
.legal__toc ol { display: flex; flex-direction: column; gap: 6px; list-style: decimal; padding-left: 1.2em; }
.legal__toc li { font-size: 0.9375rem; }
.legal__toc a:hover { color: var(--color-accent-green-dark); }

.legal-section { padding: 40px 0; border-top: 1px solid var(--color-border-soft); }
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-section h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: 18px; }
.legal-section h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin: 24px 0 10px; }
.legal-section p { font-size: 0.9375rem; line-height: 1.65; color: var(--color-text-secondary); margin-bottom: 14px; }
.legal-section p strong, .legal-section li strong { color: var(--color-text-primary); font-weight: 700; }
.legal-section ul, .legal-section ol { margin: 0 0 16px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li { font-size: 0.9375rem; line-height: 1.6; color: var(--color-text-secondary); }

.legal-table-wrap { width: 100%; overflow-x: auto; margin-bottom: 20px; border: 1px solid var(--color-border-soft); border-radius: 14px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 560px; }
.legal-table caption { text-align: left; font-size: 0.8125rem; color: var(--color-text-secondary); padding: 10px 16px 0; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border-soft); }
.legal-table thead th { background: var(--color-bg-beige); font-weight: 700; color: var(--color-text-primary); }
.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table tbody th { font-weight: 600; white-space: nowrap; }
