/* ===== Design tokens (from Figma) ===== */
:root {
  --coconut-milk: #f4f2f1;
  --smoked-mocha: #5e4c40;
  --smoked-taupe: #a3948b;
  --taupe-soft: rgba(163, 148, 139, 0.6);
  --taupe-veil: rgba(163, 148, 139, 0.7);

  --font: "DM Sans", "Century Gothic", "Poppins", system-ui, -apple-system, sans-serif;

  /* Figma canvas is 1440px wide; text insets sit ~134-181px from the edge
     (~9.3-12.5%). This scales that inset proportionally at any viewport
     width instead of collapsing everything into a fixed centered column. */
  --inset: clamp(20px, 9.3vw, 80px);
  --gap-md: 40px;
  --gap-lg: 80px;
  --radius-pill: 40px;

  --height-content:calc(100vh - 60px);

  --letter-spacing:0.2rem;
}

.grecaptcha-badge{
	display:none;
}

/* Asta Sans is a licensed font (not bundled here). Drop the woff2 files into
   public/fonts/ and uncomment below to activate; until then the fallback
   stack in --font is used. */
/*
@font-face {
  font-family: "Asta Sans";
  font-weight: 300;
  font-style: normal;
  src: url("/fonts/AstaSans-Light.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Asta Sans";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/AstaSans-Regular.woff2") format("woff2");
  font-display: swap;
}
*/

* {
  box-sizing: border-box;
}

#tecnicas {
  position: relative;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--smoked-mocha);
  background: #fff;
  line-height: 1.4;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Full-width row whose only job is a proportional left/right inset for
   text content — never caps the section's own width. */
.container {
  width: 100%;
  padding: 0 var(--inset);
}

.eyebrow {
  font-weight: 400;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--taupe-soft);
  margin: 0 0 10px;
}

.eyebrow--light {
  color: rgba(244, 242, 241, 0.6);
}

h1, h2, .h1, .h2 {
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: var(--letter-spacing);
}

.hero__caption .h3{
  letter-spacing: var(--letter-spacing);
}

#tecnicas h2{
  max-width: 200px;
}

h3, .h3 {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.hero__caption h3,
.hero__caption .h3{
  font-size: 38px;
  line-height: 2.3rem;
}
.section-heading {
  margin-bottom: 50px;
}

.section-heading--center {
  text-align: center;
  max-width: 456px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 60px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--smoked-taupe);
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  max-width: max-content;
}

.btn--dark {
  color: var(--smoked-mocha);
}

.btn--dark:hover {
  background: var(--smoked-mocha);
  color: var(--coconut-milk);
}

.btn--light {
  color: var(--coconut-milk);
}

.btn--light:hover {
  background: var(--coconut-milk);
  color: var(--smoked-mocha);
}

.btn--fill {
  background: var(--coconut-milk);
  color: var(--smoked-mocha);
}

.btn--fill:hover {
  opacity: 0.85;
}

.text-block p + p {
  margin-top: 14px;
}

.split__content.text-block p + p{
  margin-top: 0px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--inset);
  background: var(--coconut-milk);
}

.site-header .logo img {
  width: clamp(140px, 13vw, 190px);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Language switcher (ES | EN), sat in the header to the left of the burger */
.header-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

.header-lang .lang-link {
  color: var(--taupe-soft);
}

.header-lang .lang-link.is-active {
  color: var(--smoked-mocha);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-lang .lang-sep {
  color: var(--smoked-taupe);
  font-size: 13px;
}

.site-header.is-open .header-lang .lang-link {
  color: rgba(244, 242, 241, 0.45);
}

.site-header.is-open .header-lang .lang-link.is-active {
  color: var(--coconut-milk);
}

.site-header.is-open .header-lang .lang-sep {
  color: rgba(244, 242, 241, 0.3);
}

.burger {
  width: 24px;
  height: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: none;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--smoked-mocha);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.site-header.is-open{
  background-color: var(--smoked-mocha);
}

.site-header.is-open .logo img,
.site-header.is-open #burgerBtn{
  filter: brightness(300%) saturate(0%);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--smoked-mocha);
  color: var(--coconut-milk);
  z-index: 90;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay ul {
  list-style: none;
  text-align: left;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 80px;
  line-height: 1rem;
}

.nav-overlay a {
  font-size: 28px;
  text-transform: uppercase;
  font-weight: 300;
}

.nav-overlay a:hover {
  color: var(--smoked-taupe);
}

/* Bottom info bar in the nav overlay: colegiado number, Doctoralia, email, phone */
.nav-overlay__footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 0 var(--inset) 32px;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(244, 242, 241, 0.55);
}

.nav-overlay__footer a {
  color: inherit;
}

.nav-overlay__footer a:hover {
  color: var(--coconut-milk);
}

/* ===== Generic section spacing (always full width) ===== */
.section {
  width: 100%;
  min-height: var(--height-content);
}

#tarifas.section{
   padding: 100px 0;
   height: auto;
}

/* ===== Legal pages (privacy policy, legal notice) ===== */
.legal-page {
  min-height: 0;
  padding: 60px 0 120px;
}

.legal-page .container {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page__updated {
  color: var(--taupe-soft);
  font-size: 14px;
  margin-bottom: 40px;
}

.legal-page h3 {
  margin-top: 40px;
}

.legal-page p + p {
  margin-top: 14px;
}

.legal-page p + ul,
.legal-page ul + p {
  margin-top: 14px;
}

.legal-page a:not(.btn) {
  text-decoration: underline;
}

.legal-page__back {
  margin-top: 50px;
}

.section--dark {
  background: var(--smoked-mocha);
  color: var(--coconut-milk);
}

.section--light {
  background: var(--coconut-milk);
}

.decor-mark {
  display: block;
  margin: 0 auto 40px;
  width: 22px;
  height: 62px;
}

.wordmark-mark {
  display: block;
  margin: 60px auto 0;
  width: 22px;
  height: auto;
}

/* ===== Hero / Sobre mí — full-bleed 50/50 ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  min-height: var(--height-content);
  height: var(--height-content);
}

.hero__content {
  padding: 70px clamp(24px, 3vw, 60px) 70px var(--inset);
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 714px;
  justify-content: center;
  margin: 0 auto;
}

/* Staggered fade-in for the hero copy on page load */
.hero__content > div:not(.text-block) > *,
.hero__content > .text-block > *,
.hero__content > .btn {
  opacity: 0;
  animation: heroTextReveal 0.9s ease forwards;
}

.hero__content > div:not(.text-block) > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > div:not(.text-block) > *:nth-child(2) { animation-delay: 0.3s; }
.hero__content > div:not(.text-block) > *:nth-child(3) { animation-delay: 0.5s; }
.hero__content > .text-block > *:nth-child(1) { animation-delay: 0.7s; }
.hero__content > .text-block > *:nth-child(2) { animation-delay: 0.9s; }
.hero__content > .text-block > *:nth-child(3) { animation-delay: 1.1s; }
.hero__content > .text-block > *:nth-child(4) { animation-delay: 1.3s; }
.hero__content > .btn { animation-delay: 1.5s; }

@keyframes heroTextReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content > div:not(.text-block) > *,
  .hero__content > .text-block > *,
  .hero__content > .btn {
    animation: none;
    opacity: 1;
  }
}

.hero__figure {
  position: relative;
  min-height: 460px;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__caption {
  position: absolute;
  left: 50%;
  bottom: 40px;
  background: var(--taupe-veil);
  color: var(--coconut-milk);
  padding: clamp(20px, 3vw, 40px) clamp(24px, 5vw, 70px);
  max-width: 90%;
  transform: translate(-50%);
  width: 100%;
}

.hero__caption .eyebrow {
  color: rgba(244, 242, 241, 0.75);
}

/* Staggered fade-in for the hero caption, following the hero copy reveal */
.hero__caption > * {
  opacity: 0;
  animation: heroTextReveal 0.9s ease forwards;
}

.hero__caption > *:nth-child(1) { animation-delay: 1.7s; }
.hero__caption > *:nth-child(2) { animation-delay: 1.9s; }

@media (prefers-reduced-motion: reduce) {
  .hero__caption > * {
    animation: none;
    opacity: 1;
  }
}

/* ===== Full-bleed media split (photo edge-to-edge / text inset) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  min-height: var(--height-content);
}

.split__figure {
  align-self: stretch;
  position: relative;
  max-width: 74%;
}

.split__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.split__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.split--reverse .split__figure {
  order: 2;
  width: 74%;
  margin-left: auto;
}
/*
.split:not(.split--reverse) .split__content {
  padding: 0 var(--inset) 0 clamp(24px, 3vw, 60px);
}*/

/* Técnicas y tratamientos — its own content class, not shared with the
   "Mi consulta" split, since that one has a narrower fixed design. */
.tecnicas__content {
  padding: 70px clamp(24px, 3vw, 60px) 70px clamp(20px, 10.3vw, 200px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Reproduces the zoomed/panned photo crops from the Figma export using
   background-size/position percentages instead of a plain object-fit cover,
   so the same abstract close-up crop shows instead of the whole photo. */
.split__figure--crop img {
  display: none;
}

.split__figure--crop {
  background-repeat: no-repeat;
}

.split__figure--tecnicas {
  background-image: url("/images/foto-dr-hero.jpg");
  background-size: cover;
  background-position: top center;
}

/* ===== Visión / Filosofía — full-bleed 50/50, two text columns ===== */
.vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: var(--height-content);
}

.vision__col {
  padding: 90px var(--inset);
}

.vision__col--light {
  background: var(--coconut-milk);
  justify-content: center;
  align-items: center;
  display: flex;
}

.vision__col--dark {
  background: var(--smoked-mocha);
  color: var(--coconut-milk);
  justify-content: center;
  align-items: center;
  display: flex;
}

.vision__col .text-block {
  max-width: 560px;
  min-height: 377px;
}

/* ===== Servicios / tabs section — right-to-left slider ===== */
.tabs-section {
  width: 100%;
  min-height: 100vh;
  padding-top: 50px;
}

/* ===== Servicios accordion — vertical tabs that curtain-reveal a panel =====
   Each .accordion__item is a 50px sliver by default; the active one
   animates its own max-width open. The reveal works purely through
   overflow:hidden clipping a FIXED-pixel-width .accordion__panel — nothing
   inside is sized with a %, so nothing recalculates (and visibly "zooms")
   while the item's max-width is mid-transition. --panel-w is computed in
   JS from the container's real width so it still adapts across screens. */
.accordion {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 70px;
  min-height: 660px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.accordion__item {
  position: relative;
  flex: none;
  display: flex;
  max-width: 50px;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  transition: max-width 0.6s ease;
}

.accordion__item:first-child {
  border-left: none;
}

.accordion__item.is-active {
  max-width: calc(var(--panel-w, 950px) + 50px);
}

.accordion__tab {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 10px;
  width: 50px;
  flex: none;
  background: none;
  border: none;
  color: var(--coconut-milk);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  cursor: pointer;
}

.accordion__tab .tab-btn__arrow {
  writing-mode: horizontal-tb;
}

.accordion__item.is-active .accordion__tab .tab-btn__arrow {
  transform: rotate(180deg);
  border-color: var(--coconut-milk);
}

.tab-btn__arrow {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--smoked-taupe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tab-btn__arrow img {
  width: 8px;
  height: 16px;
}

/* Fixed px width (never %) — see note above the .accordion block. */
.accordion__panel {
  display: flex;
  width: var(--panel-w, 950px);
  flex: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.15s;
}

.accordion__item.is-active .accordion__panel {
  opacity: 1;
}

.accordion__text {
  width: calc(var(--panel-w, 950px) * 0.44);
  flex: none;
  box-sizing: border-box;
  padding: 40px clamp(24px, 3vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  overflow-y: auto;
}

.accordion__text h3 {
  text-transform: uppercase;
  font-size: 20px;
}

.accordion__image {
  width: calc(var(--panel-w, 950px) * 0.56);
  flex: none;
  position: relative;
  display: flex;
}

.accordion__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Alopecia has two photos (hombre/mujer) shown side by side instead of one. */
.accordion__image--split img {
  position: static;
  width: 50%;
}

/* Below 1400px the fixed 860px block reads as too tall relative to the
   narrower width — shrink it (and the image, which stretches to match via
   align-items:stretch) so the panel reads more compact while the text
   stays fully legible (its own overflow-y:auto still covers overflow).
   Bounded above 900px so it doesn't fight the mobile classic-accordion
   layout, which already sets its own (100vh) image height. */
@media (min-width: 901px) and (max-width: 1400px) {
  .accordion {
    /* A fixed height (not min-height) actually caps it — min-height alone
       is just a floor, so tall panel text was still growing the block past
       it. .accordion__text's own overflow-y:auto handles anything that
       doesn't fit. */
    height: 620px;
    min-height: 0;
  }
}

/* ===== Otros servicios (full-bleed, light panel on the right) ===== */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: var(--height-content);
}

.services-list__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--inset);
}

.services-list__panel {
  background: var(--coconut-milk);
  display: flex;
  align-items: center;
  padding: 40px var(--inset) 40px clamp(24px, 4vw, 70px);
}

.bullet-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6rem;
  max-width: 558px;
}


.bullet-list--sm {
  font-size: 16px;
}

/* ===== Tarifas ===== */
.pricing {
  max-width: 50%;
  margin: 0 auto;
  border-top: 1px solid var(--smoked-taupe);
}

.pricing__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--smoked-taupe);
}

.pricing__row-name {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  text-transform: uppercase;
  font-size: 20px;
}

.pricing__row-note {
  text-transform: none;
  font-size: 14px;
  color: var(--smoked-taupe);
}

.pricing__row-price {
  font-size: 20px;
  white-space: nowrap;
}

.pricing__row-price .price-note {
  color: var(--smoked-taupe);
}

.pricing__footnotes {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 11px;
  color: var(--smoked-taupe);
  max-width: 50%;
  margin: 40px auto;
}

.pricing__footnotes hr {
  border: none;
  border-top: 1px solid var(--smoked-taupe);
  width: 100%;
  margin: 4px 0;
}

/* ===== Contacto — full-bleed photo + inset form ===== */
.contact {
  position: relative;
  background: var(--coconut-milk);
  overflow: hidden;
  width: 100%;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(240px, 33%) 1fr;
  min-height: 714px;
}

.contact__figure {
  position: relative;
}

.contact__figure img {
  display: none;
}

.contact__figure {
  background-image: url("/images/foto-dr-contacto.jpg");
  background-repeat: no-repeat;
  background-size: 222% 100%;
  background-position: 28% 0%;
}

.contact__content {
  padding: 90px clamp(24px, 6vw, 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.contact__content .h2 {
  max-width: 456px;
}

.contact__form {
  width: 100%;
  max-width: 788px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.field {
  /*flex: 1 1 260px;*/
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--smoked-taupe);
  padding-bottom: 10px;
}

.field label {
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 300;
  flex: none;
}

.field input,
.field textarea {
  flex: 1;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 14px;
  color: var(--smoked-mocha);
  outline: none;
  min-width: 120px;
}

.field textarea {
  resize: vertical;
  padding-top: 4px;
}

.field--submit {
  border-bottom: none;
  justify-content: flex-end;
}

.field--submit .tab-btn__arrow {
  border-color: var(--smoked-mocha);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--smoked-taupe);
}

.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--smoked-mocha);
}

.consent u {
  text-decoration: underline;
}

/* ===== Footer ===== */
/* Taupe divider band between the page and the footer, with the C/L mark
   sitting across the color change. */
.footer-divider {
  width: 100%;
  height: 180px;
  background: var(--smoked-taupe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-divider__mark {
  width: 22px;
  height: auto;
}

.site-footer {
  position: relative;
  background: var(--smoked-mocha);
  color: #fff;
  overflow: hidden;
  padding: 50px var(--inset) 30px;
  width: 100%;
}

.site-footer__bg {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("/images/footer-fondo.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left center;
}

/* Nav columns sit in the right half of a 50/50 grid — the left half stays
   empty here so it lines up with the logo, which shares this same grid
   further down in .footer-bottom instead of floating in its own row. */
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.site-footer__inner {
  grid-column: 2;
  display: flex;
  justify-content: flex-start;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.6px;
  min-width: 150px;
}

.footer-col h4 {
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 400;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-transform: uppercase;
}

.footer-col .social {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  text-transform: uppercase;
}

.footer-wordmark {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.footer-colegiado {
  font-size: 12px;
  text-transform: none;
  white-space: nowrap;
}

/* Same grid as .site-footer__grid so this row's right column lines up
   exactly under the nav columns above it. */
.footer-bottom {
  position: relative;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.footer-bottom__left {
  grid-column: 1;
  display: flex;
  align-items: center;
}

.footer-bottom__right {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom__legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 24px;
}

#navOverlay .nav-overlay__footer a,#navOverlay .nav-overlay__footer span {
  font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* These sections are pinned to the viewport height for the desktop
     side-by-side layout. Once their grid collapses to a single column
     below, content stacks (text + photo) instead of sitting side by side,
     so the fixed height no longer fits and everything overflows into the
     next section. Let height follow content instead. */
  .section,
  .hero,
  .split,
  .vision,
  .tabs-section {
    height: auto;
  }

  .hero,
  .split,
  .vision,
  .services-list,
  .contact__grid,
  .site-footer__grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .site-footer__inner,
  .footer-bottom__left,
  .footer-bottom__right {
    grid-column: 1;
    justify-content: flex-start;
  }

  .footer-bottom__left {
    margin-bottom: 24px;
  }

  /* Below the desktop curtain-accordion breakpoint, fall back to a classic
     stacked accordion: full-width rows, no width animation, plain
     show/hide on the expanded panel (image above text, per the mobile
     reference). */
  .accordion {
    flex-direction: column;
  }

  .accordion__item {
    max-width: none;
    width: 100%;
    flex-direction: column;
    border-left: none;
    border-bottom: 1px solid rgba(244, 242, 241, 0.25);
    transition: none;
  }

  .accordion__item.is-active {
    max-width: none;
  }

  .accordion__tab {
    writing-mode: horizontal-tb;
    transform: none;
    width: 100%;
    justify-content: space-between;
    padding: 16px var(--inset) !important;
  }

  .accordion__tab .tab-btn__arrow {
    /* Base icon points left ("<"); rotate to a down-chevron when collapsed. */
    transform: rotate(-90deg);
  }

  .accordion__item.is-active .accordion__tab .tab-btn__arrow {
    /* ...and to an up-chevron for the expanded/active row. */
    transform: rotate(90deg);
  }

  .accordion__panel {
    display: none;
    width: 100% !important;
    flex-direction: column;
    opacity: 1;
  }

  .accordion__item.is-active .accordion__panel {
    display: flex;
  }

  .accordion__text,
  .accordion__image {
    width: 100% !important;
  }

  .accordion__text {
    order: 2;
    padding: 24px var(--inset) 32px;
  }

  .accordion__image {
    order: 1;
    height: 67vh;
  }

  .hero__content,
  .split:not(.split--reverse) .split__content,
  .tecnicas__content {
    margin-left: 0;
    padding: 0 var(--inset);
    max-width: none;
  }

  /* The image now sits directly above this text (no absolute positioning,
     no section top padding) — give the text its own breathing room instead
     of touching the photo. */
  .split:not(.split--reverse) .split__content {
    padding-top: 40px;
  }

  .hero__content {
    padding-top: 60px;
    padding-bottom: 60px;
    order: 2;
  }

  .hero__figure {
    order: 1;
  }

  #consulta.section {
    padding-top: 0;
  }

  .pricing,
  .pricing__footnotes {
    max-width: none;
  }

  .bullet-list {
    margin: 0 auto;
  }

  .split--reverse .split__figure,
  .tecnicas__content {
    order: 0;
  }

  #tecnicas{
    padding-top: 0;
  }

  .split__figure,
  .split__figure--crop,
  .split--reverse .split__figure {
    min-height: 520px;
    width: 100%;
    max-width: none;
    margin-left: 0;
    background-size: cover;
    background-position: center;
  }

  /* Mi consulta's photo is a plain <img> (unlike Técnicas, which paints its
     crop via background-image) — let it size itself naturally instead of
     filling a fixed-height absolutely-positioned box. */
  #consulta .split__figure {
    min-height: 0;
  }

  #consulta .split__figure img {
    position: static;
    height: auto;
  }

  .vision__col .text-block {
    margin-left: 0;
    max-width: none;
  }

  .section {
    padding: 70px 0;
  }

  .section{
    padding-bottom: 0;
  }

  .services-list__panel {
    padding: 40px 0 80px 0;
  }

  .footer-wordmark {
    width: 70vw;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .tecnicas__content{
    padding: 80px 60px;
  }

  #consulta .split__content.text-block,
  .accordion__text {
    padding: 40px 60px;
  }

  .section-heading {
    text-align: center;
  }

  #tecnicas .tecnicas__content .h2{
    max-width: 100%;
  }

  .btn{
    margin: 0 auto;
    display: block;
  }

  .contact__content {
    padding: 60px 60px;
  }

  .contact__figure {
    min-height: 260px;
    background-size: cover;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 18px var(--inset);
  }

  .form-row {
    flex-direction: column;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
  .nav-overlay ul{
	  padding: 80px 60px;
	  line-height: 1.5rem;
  }
  
  .pricing__row-name{
	 font-size: 15px;
  }

  .field label,
  .bullet-list{
    font-size: 16px;
  }

  #consulta .split__content.text-block,
  .accordion__text {
    padding: 40px 37px;
  }
}
