/*
Theme Name: ARUNA V3 — Diseño aprobado
Theme URI: https://arunamujer.14soles.com
Author: 14 Soles
Description: Tema editorial a medida basado en la HOME completa V3 aprobada.
Version: 1.2.0
Text Domain: aruna-v3
*/

:root {
  --papyrus: #f8f2dc;
  --pecan: #7c5849;
  --baby-spread: #ebe1cf;
  --line: rgba(124, 88, 73, .34);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Helvetica, Arial, sans-serif;
  --shell: min(1504px, calc(100vw - 168px));
  --header-h: 126px;
  --footer-h: 24svh;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--papyrus);
  color: var(--pecan);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.site-shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  margin: 0 0 24px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.038em;
  line-height: .94;
}
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 1px solid var(--pecan);
  border-radius: 999px;
  background: var(--pecan);
  color: var(--papyrus);
  font-size: .88rem;
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.button:hover { transform: translateY(-2px); background: transparent; color: var(--pecan); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: .9rem;
  transition: gap .35s var(--ease), opacity .35s var(--ease);
}
.text-link:hover { gap: 30px; opacity: .72; }
.arrow { font-size: 1.25em; line-height: 1; }

/* Header: forma parte de la primera pantalla */
.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  background: transparent;
}
.header-inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { width: 154px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }
.primary-nav { display: flex; align-items: center; gap: 46px; }
.primary-nav a { position: relative; font-size: .84rem; }
.primary-nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transition: right .3s var(--ease);
}
.primary-nav a:not(.button):hover::after { right: 0; }
.primary-nav .button { min-height: 44px; padding-inline: 25px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--pecan); }

/* 01 · Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  min-height: 0;
  align-items: center;
}
.hero-copy { grid-column: 1 / span 7; padding-left: 38px; }
.hero-title { max-width: 790px; font-size: clamp(4rem, 6.15vw, 6.8rem); }
.hero-lead { max-width: 570px; margin: 30px 0 0; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 44px; margin-top: 38px; }
.orientation-link {
  display: inline-block;
  margin-top: 34px;
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-visual {
  position: relative;
  grid-column: 8 / -1;
  justify-self: end;
  width: min(100%, 548px);
  max-height: calc(100svh - var(--header-h) - 118px - 38px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -110px;
  top: 38%;
  width: 235px;
  height: 57%;
  border: 1px solid rgba(124, 88, 73, .62);
  border-radius: 50%;
  pointer-events: none;
}
.hero-visual img { width: 100%; max-height: inherit; aspect-ratio: 548 / 658; object-fit: cover; }
.brand-knot {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: -45px;
  width: 24px;
  height: 38px;
}
.brand-knot::before,
.brand-knot::after {
  content: "";
  position: absolute;
  inset: 0 8px;
  border: 1px solid var(--pecan);
  border-radius: 50%;
  transform: rotate(24deg);
}
.brand-knot::after { transform: rotate(-24deg); }
.life-stages {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  min-height: 118px;
  align-items: center;
  padding-inline: 5%;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--serif);
  font-size: 1.18rem;
}
.life-stages a { position: relative; padding: 28px 0 20px; }
.life-stages a:first-child::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--pecan);
}

/* 02 · Pausa fotográfica */
.quality-chapter {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  background-position: center;
  background-size: cover;
  color: var(--papyrus);
}
.quality-copy {
  width: min(640px, 45vw);
  margin-left: max(8vw, calc((100vw - var(--shell)) / 2 + 52px));
}
.quality-title { font-size: clamp(3.7rem, 4.7vw, 5.8rem); }
.quality-copy .text-link { margin-top: 38px; }

/* 03 · Manifiesto */
.manifesto {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: 84px 0 58px;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.manifesto-copy { grid-column: 1 / span 6; padding-left: 38px; }
.manifesto-title { max-width: 680px; font-size: clamp(4rem, 5.45vw, 6.4rem); }
.manifesto-copy p:last-child { max-width: 520px; margin: 34px 0 0; line-height: 1.7; }
.manifesto-mark { grid-column: 7 / span 2; align-self: end; opacity: .08; transform: translateY(28px); }
.manifesto-image {
  position: relative;
  grid-column: 9 / -1;
  width: 100%;
  max-width: 475px;
  justify-self: end;
}
.manifesto-image::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -26px -25px 28%;
  height: 62%;
  border: 1px solid var(--line);
}
.manifesto-image img { width: 100%; aspect-ratio: 475 / 531; object-fit: cover; }
.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--line);
}
.principle { min-height: 138px; padding: 28px 38px 0; }
.principle-number { display: block; margin-bottom: 5px; font-family: var(--serif); }
.principle h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.principle p { max-width: 255px; margin: 11px 0 0; font-size: .8rem; }

/* 04 · Servicios */
.services {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 72px 0;
  background: var(--pecan);
  color: var(--papyrus);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-content: center;
}
.services-heading { grid-column: 1 / span 8; padding-left: 38px; }
.services-title { max-width: 760px; font-size: clamp(4rem, 5.15vw, 6.25rem); }
.services-lead { margin: 20px 0 18px; }
.services-index {
  grid-column: 1 / span 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 105px;
  padding: 42px 0 0 38px;
}
.service-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: baseline;
  padding: 10px 0 8px;
  border-bottom: 1px solid rgba(248, 242, 220, .42);
}
.service-row span:first-child { font-family: var(--serif); font-size: .92rem; }
.service-row span:last-child { font-family: var(--serif); font-size: clamp(1.05rem, 1.33vw, 1.42rem); }
.services-image { grid-column: 10 / -1; grid-row: 1 / span 2; align-self: stretch; padding-left: 28px; }
.services-image img { width: 100%; height: 100%; max-height: calc(100svh - 144px); object-fit: cover; }

/* 05 · Clínica y equipo */
.clinic-team {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 88px 0 74px;
}
.clinic-team-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.clinic-block { grid-column: 1 / span 8; padding-left: 38px; }
.team-block { grid-column: 9 / -1; padding-left: 30px; scroll-margin-top: 88px; }
.clinic-title { font-size: clamp(3.7rem, 4.8vw, 5.7rem); }
.team-title { max-width: 430px; font-size: clamp(3rem, 3.55vw, 4.25rem); }
.clinic-copy, .team-copy { max-width: 480px; margin: 20px 0; }
.clinic-image-wrap { position: relative; margin-top: 32px; }
.clinic-image-wrap::before {
  content: "";
  position: absolute;
  left: -46px;
  bottom: -34px;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.clinic-image-wrap img { width: 100%; max-height: 382px; aspect-ratio: 878 / 378; object-fit: cover; }
.team-portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.team-portrait { margin: 0; }
.team-portrait img { width: 100%; max-height: 315px; aspect-ratio: 229 / 315; object-fit: cover; }
.team-portrait figcaption { margin-top: 11px; font-size: .74rem; }

/* 06 · Testimonios */
.testimonials {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 88px 0;
  background: var(--pecan);
  color: var(--papyrus);
}
.testimonials-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.testimonials-heading { position: relative; z-index: 2; grid-column: 1 / span 5; padding-left: 38px; }
.testimonials-title { max-width: 650px; font-size: clamp(3.7rem, 4.7vw, 5.65rem); }
.testimonials-intro { max-width: 430px; margin: 30px 0 0; line-height: 1.75; }
.testimonials-stage {
  position: relative;
  z-index: 2;
  grid-column: 7 / -1;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(248, 242, 220, .48);
  border-bottom: 1px solid rgba(248, 242, 220, .48);
}
.testimonial-slides { display: grid; flex: 1; align-items: center; }
.testimonial-slide { grid-area: 1 / 1; }
.testimonial-slide[hidden] { display: none; }
.testimonial-scope {
  margin: 0 0 54px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.testimonial-quote {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.85rem, 3.6vw, 4.45rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.testimonial-attribution { margin: 36px 0 0; font-size: .82rem; }
.testimonial-disclaimer { margin: 13px 0 0; font-size: .7rem; opacity: .68; }
.testimonial-controls { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 50px; }
.testimonial-index { display: flex; gap: 28px; }
.testimonial-dot,
.testimonial-arrows button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.testimonial-dot {
  position: relative;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 1rem;
  opacity: .5;
  transition: opacity .3s var(--ease);
}
.testimonial-dot::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.testimonial-dot.is-active { opacity: 1; }
.testimonial-dot.is-active::after { right: 0; }
.testimonial-arrows { display: flex; gap: 12px; }
.testimonial-arrows button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(248, 242, 220, .48);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.testimonial-arrows button:hover { background: var(--papyrus); color: var(--pecan); transform: translateY(-2px); }
.testimonials-mark {
  position: absolute;
  z-index: 1;
  right: -6vw;
  bottom: -30vh;
  width: min(49vw, 760px);
  opacity: .035;
  pointer-events: none;
  transform: rotate(7deg);
}
.testimonials-mark img { width: 100%; filter: brightness(0) invert(1); }
.testimonials-thread {
  position: absolute;
  z-index: 1;
  left: calc((100vw - var(--shell)) / -2);
  bottom: 4%;
  width: 46%;
  height: 1px;
  background: rgba(248, 242, 220, .42);
  transform: rotate(-2deg);
  transform-origin: right center;
}
.testimonials-thread::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -34px;
  width: 86px;
  height: 125px;
  border: 1px solid rgba(248, 242, 220, .42);
  border-radius: 50%;
  transform: rotate(-24deg);
}

@media (prefers-reduced-motion: no-preference) {
  .testimonial-slide.is-active { animation: testimonial-in .55s var(--ease) both; }
  @keyframes testimonial-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

/* 07 · Contacto y footer */
.contact {
  display: flex;
  min-height: calc(100svh - var(--footer-h));
  align-items: center;
  padding: 66px 0 54px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}
.contact-copy { grid-column: 1 / span 6; padding-left: 38px; }
.contact-title { max-width: 760px; font-size: clamp(3.7rem, 4.75vw, 5.7rem); }
.contact-copy > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 0; }
.contact-actions { display: flex; align-items: center; gap: 46px; margin-top: 30px; }
.contact-orient { display: inline-block; margin-top: 24px; font-size: .82rem; text-decoration: underline; text-underline-offset: 4px; }
.contact-facts { grid-column: 7 / span 3; padding: 42px 38px; background: var(--baby-spread); font-size: .8rem; }
.contact-facts strong { display: block; margin-bottom: 23px; font-weight: 500; letter-spacing: .08em; }
.contact-facts p { margin: 0 0 14px; }
.contact-image { grid-column: 10 / -1; justify-self: end; }
.contact-image img { width: 100%; max-height: 408px; aspect-ratio: 349 / 408; object-fit: cover; }
.site-footer {
  display: flex;
  min-height: var(--footer-h);
  align-items: center;
  padding: 38px 0;
  background: var(--pecan);
  color: var(--papyrus);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.35fr 1fr 2fr;
  gap: 42px;
  align-items: start;
}
.footer-brand { width: 154px; filter: brightness(0) invert(1); opacity: .9; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .78rem; }
.footer-note { padding-left: 10px; }
.footer-note p:first-child { margin: 0 0 22px; font-family: var(--serif); font-size: 1.2rem; }
.footer-rule { position: relative; width: 100%; height: 1px; background: rgba(248, 242, 220, .55); }
.footer-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -8px;
  width: 12px;
  height: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.copyright { margin: 22px 0 0; font-size: .68rem; }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

@media (max-width: 1200px) {
  :root { --shell: min(100% - 64px, 1080px); }
  .primary-nav { gap: 28px; }
  .hero-copy, .manifesto-copy, .services-heading, .services-index, .clinic-block, .testimonials-heading, .contact-copy { padding-left: 0; }
  .services-index { column-gap: 52px; }
  .services-image, .team-block { padding-left: 0; }
}

@media (max-width: 820px) {
  :root { --shell: calc(100% - 36px); --header-h: 94px; --footer-h: auto; }
  .header-inner { min-height: var(--header-h); }
  .brand { width: 126px; }
  .menu-toggle { display: block; position: relative; z-index: 31; cursor: pointer; }
  .primary-nav {
    position: fixed;
    z-index: 30;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--papyrus);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity .35s, visibility .35s, transform .35s;
  }
  .menu-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .hero { min-height: auto; padding-top: var(--header-h); }
  .hero-grid { display: block; }
  .hero-copy { padding: 82px 0 48px; }
  .hero-title { font-size: clamp(3.45rem, 15vw, 5rem); }
  .hero-actions { flex-wrap: wrap; gap: 26px; }
  .hero-visual { width: 92%; max-height: none; margin: 12px 0 0 auto; }
  .hero-visual img { max-height: none; }
  .brand-knot { top: -32px; left: -18px; }
  .life-stages { grid-template-columns: repeat(3, 1fr); min-height: auto; padding: 26px 0; font-size: 1.04rem; }
  .quality-chapter { min-height: 78svh; background-position: 68% center; }
  .quality-copy { width: auto; max-width: 430px; margin: auto 24px 66px; align-self: end; }
  .quality-title { font-size: clamp(3rem, 12.5vw, 4.5rem); }
  .manifesto, .services, .clinic-team, .testimonials, .contact { min-height: auto; }
  .manifesto { padding: 102px 0 68px; }
  .manifesto-copy { grid-column: 1 / -1; }
  .manifesto-title { font-size: clamp(3.45rem, 13.5vw, 5rem); }
  .manifesto-mark { display: none; }
  .manifesto-image { grid-column: 3 / -1; margin-top: 58px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle { padding-inline: 0 24px; }
  .services { padding: 88px 0 76px; }
  .services-heading, .services-index, .services-image { grid-column: 1 / -1; }
  .services-title { font-size: clamp(3.3rem, 12.5vw, 5rem); }
  .services-index { grid-template-columns: 1fr; padding-top: 48px; }
  .services-image { grid-row: auto; margin-top: 52px; }
  .services-image img { max-height: 72svh; min-height: 520px; }
  .clinic-team { padding: 102px 0 88px; }
  .clinic-block, .team-block { grid-column: 1 / -1; }
  .team-block { margin-top: 96px; }
  .testimonials { padding: 100px 0 88px; }
  .testimonials-heading, .testimonials-stage { grid-column: 1 / -1; }
  .testimonials-title { max-width: 680px; font-size: clamp(3.3rem, 12.5vw, 5rem); }
  .testimonials-stage { min-height: 470px; margin-top: 70px; }
  .testimonials-mark { right: -22vw; bottom: -12vh; width: 82vw; }
  .testimonials-thread { display: none; }
  .contact { padding: 94px 0 80px; }
  .contact-copy { grid-column: 1 / -1; }
  .contact-facts { grid-column: 1 / span 7; margin-top: 62px; }
  .contact-image { grid-column: 8 / -1; margin-top: 62px; }
  .site-footer { min-height: 0; padding: 64px 0 44px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; }
  .footer-brand { grid-row: span 2; }
  .footer-note { grid-column: 2 / -1; }
}

@media (max-width: 520px) {
  .eyebrow { margin-bottom: 18px; font-size: .64rem; }
  .hero-copy { min-width: 0; padding-top: 70px; }
  .hero-title, .manifesto-title, .services-title, .testimonials-title, .contact-title { line-height: .98; overflow-wrap: anywhere; }
  .hero-lead, .manifesto-copy p, .contact-copy p { max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions, .contact-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .life-stages { grid-template-columns: repeat(2, 1fr); }
  .manifesto-image { grid-column: 2 / -1; }
  .principles { grid-template-columns: 1fr; }
  .principle { min-height: 0; padding: 25px 0; border-bottom: 1px solid var(--line); }
  .service-row { grid-template-columns: 38px 1fr; }
  .clinic-title { font-size: 3.35rem; }
  .team-title { font-size: 3.25rem; }
  .team-portraits { gap: 12px; }
  .team-portrait figcaption { font-size: .66rem; }
  .testimonials-stage { min-height: 430px; padding-top: 34px; }
  .testimonial-scope { margin-bottom: 40px; }
  .testimonial-quote { font-size: 2.55rem; }
  .testimonial-controls { margin-top: 42px; }
  .testimonial-index { gap: 20px; }
  .contact-facts, .contact-image { grid-column: 1 / -1; }
  .contact-image { margin-top: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; margin-bottom: 25px; }
  .footer-note { grid-column: 1 / -1; margin-top: 24px; padding-left: 0; }
}
