/* =========================================================
   AviFran Pharma — Sistema visual corporativo
   Paleta: #28746E · #C8A44A · #FFFFFF · fondos claros
   ========================================================= */

:root {
  --teal: #28746E;
  --teal-dark: #1B5B56;
  --teal-deep: #0B2B29;
  --teal-soft: #E8F1EF;
  --gold: #C8A44A;
  --gold-light: #E7D6A8;
  --gold-ink: #745A1C;
  --cream: #F7F3EA;
  --cream-2: #FCFAF4;
  --white: #FFFFFF;
  --ink: #12211F;
  --muted: #5B6A67;
  --line: rgba(18, 33, 31, 0.12);
  --line-soft: rgba(18, 33, 31, 0.07);
  --shadow-sm: 0 10px 30px -18px rgba(11, 43, 41, 0.35);
  --shadow-md: 0 24px 60px -34px rgba(11, 43, 41, 0.45);
  --shadow-lg: 0 40px 100px -50px rgba(11, 43, 41, 0.55);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1200px;
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open,
body.nav-open { overflow: hidden; }

img,
picture,
svg { display: block; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--gold-light); color: var(--teal-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--teal-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------
   Tipografía de sección
   --------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.eyebrow__num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 2px 7px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--gold-light); }
.eyebrow--light .eyebrow__num { color: var(--gold-light); }

.section {
  position: relative;
  padding: clamp(72px, 8.5vw, 118px) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section--cream { background: var(--cream); }

.section-head { max-width: 760px; }
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .section-lead { margin-inline: auto; text-align: center; }

.section-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--ink);
}
.section-title--light { color: var(--white); }

.section-lead {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* Texto corrido justificado (se conservan títulos, etiquetas y controles) */
.hero-lead,
.section-lead,
.about-text,
.about-story p,
.mv-card__text,
.purpose-lead,
.portfolio-note,
.contact-note {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* ---------------------------------------------------------
   Botones y chips
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 30px -18px rgba(40, 116, 110, 0.9);
}
.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -20px rgba(40, 116, 110, 0.95);
}

.btn--gold {
  background: var(--gold);
  color: #241B06;
}
.btn--gold:hover {
  background: #B8933D;
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 14px 30px -16px rgba(37, 211, 102, 0.9);
}
.btn--whatsapp:hover {
  background: #20BA5A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -18px rgba(37, 211, 102, 0.95);
}

.btn--outline {
  border-color: rgba(18, 33, 31, 0.22);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: rgba(40, 116, 110, 0.05);
  transform: translateY(-2px);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--teal-deep);
  border-color: var(--white);
}

.btn--sm { padding: 11px 19px; font-size: 12.5px; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 244, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 250, 244, 0.95);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 10px 30px -24px rgba(11, 43, 41, 0.6);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img {
  height: 44px;
  width: auto;
  transition: opacity 0.25s var(--ease);
}
.brand:hover img { opacity: 0.82; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Selector de idioma */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 43, 41, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  transition: all 0.25s var(--ease);
}

.site-header.is-scrolled .lang-switcher {
  background: rgba(11, 43, 41, 0.035);
  border-color: var(--line-soft);
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
}

.lang-btn:hover {
  color: var(--teal-dark);
}

.lang-btn.is-active {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(40, 116, 110, 0.28);
}

.lang-divider {
  display: none;
}

.nav-list { display: flex; align-items: center; gap: 28px; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-link:hover { color: var(--teal-dark); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--teal-dark); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  place-items: center;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 76px) 0 0;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(200, 164, 74, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(40, 116, 110, 0.07), transparent 60%),
    linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(18, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 33, 31, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(720px 520px at 62% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(720px 520px at 62% 30%, #000 0%, transparent 80%);
}
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -160px;
  top: 8%;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 74, 0.32);
  pointer-events: none;
}
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  border: 1px solid rgba(40, 116, 110, 0.16);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 76px);
}

.hero-copy { max-width: 620px; }

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.3vw, 3.85rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--ink);
}
.hero-title__accent { color: var(--teal); }
.hero-title__word {
  background: linear-gradient(transparent 82%, rgba(200, 164, 74, 0.45) 82%);
}

.hero-lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 36px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--teal-dark);
  letter-spacing: -0.02em;
}
.hero-facts span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid rgba(200, 164, 74, 0.55);
  border-radius: 190px 190px 30px 30px;
  pointer-events: none;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.45;
  border-radius: 190px 190px 30px 30px;
  background: var(--teal-soft);
  box-shadow: var(--shadow-lg);
}
.hero-photo picture,
.hero-photo img { width: 100%; height: 100%; }
.hero-photo img {
  object-fit: cover;
  object-position: 45% 50%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  top: 22px;
  right: -12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  color: var(--teal-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.hero-tag .icon { width: 15px; height: 15px; color: var(--gold); }

.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 300px;
  padding: 14px 18px 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.hero-badge__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--cream);
  color: var(--teal);
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.hero-badge span:not(.hero-badge__icon) {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.concept-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--teal);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.concept-strip__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 44s linear infinite;
  will-change: transform;
}
.concept-strip span {
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.concept-strip .sep { color: var(--gold); letter-spacing: 0; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ---------------------------------------------------------
   Nosotros
   --------------------------------------------------------- */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-claim {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.about-claim span {
  color: var(--gold-ink);
  border-bottom: 3px solid var(--gold);
  padding-bottom: 2px;
}

.about-intro .section-lead { margin-top: 24px; max-width: 48ch; }

.about-text {
  margin-top: 16px;
  max-width: 54ch;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.about-stats li { display: flex; flex-direction: column; }
.about-stats span {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.about-stats small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Quiénes somos */
.about-story {
  margin-top: clamp(48px, 5.5vw, 76px);
  padding-top: clamp(32px, 3.6vw, 44px);
  border-top: 1px solid var(--line);
}
.about-story__title {
  margin: 14px 0 18px;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}
.about-story p {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.about-story p + p { margin-top: 12px; }

.mv-stack { display: grid; gap: 18px; }

.mv-card {
  position: relative;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--cream);
  border: 1px solid rgba(18, 33, 31, 0.06);
  overflow: hidden;
}
.mv-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}
.mv-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--white);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.mv-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.mv-card__text {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
}

.mv-card--dark {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.mv-card--dark::after { background: var(--gold); }
.mv-card--dark .mv-card__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  box-shadow: none;
}
.mv-card--dark .mv-card__label { color: var(--gold-light); }
.mv-card--dark .mv-card__text { color: rgba(255, 255, 255, 0.82); }

.mv-card--dark::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 74, 0.22);
}

/* ---------------------------------------------------------
   Pilares operativos — cuatro bloques
   --------------------------------------------------------- */
.ops {
  margin-top: clamp(46px, 5vw, 64px);
  padding-top: clamp(34px, 4vw, 46px);
  border-top: 1px solid var(--line);
}

.ops-head {
  max-width: 72ch;
}
.ops-head .eyebrow { margin-bottom: 12px; }
.ops-title {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(22px, 2.6vw, 30px);
}

.ops-card {
  --accent: var(--teal);
  --accent-ink: var(--teal-dark);
  --accent-soft: var(--teal-soft);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 22px;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), var(--white) 44%);
  box-shadow: 0 14px 34px -30px rgba(11, 43, 41, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ops-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -34px rgba(11, 43, 41, 0.45);
}
.ops-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--white);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.ops-card__icon .icon { width: 20px; height: 20px; }
.ops-card h4 {
  margin: 15px 0 9px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ops-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.ops-card--teal {
  --accent: var(--teal);
  --accent-ink: var(--teal-dark);
  --accent-soft: #E8F1EF;
}
.ops-card--gold {
  --accent: var(--gold);
  --accent-ink: var(--gold-ink);
  --accent-soft: #F6EEDC;
}
.ops-card--deep {
  --accent: var(--teal-deep);
  --accent-ink: var(--teal-deep);
  --accent-soft: #E4ECEA;
}
.ops-card--mid {
  --accent: var(--teal-dark);
  --accent-ink: var(--teal-dark);
  --accent-soft: #E1EDEB;
}

/* ---------------------------------------------------------
   Valores
   --------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.value-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 12px 30px -26px rgba(11, 43, 41, 0.4);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.value-card:hover {
  transform: translateY(-5px);
  border-color: rgba(200, 164, 74, 0.55);
  box-shadow: 0 24px 44px -30px rgba(11, 43, 41, 0.45);
}
.value-card__num {
  position: absolute;
  top: 22px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(18, 33, 31, 0.45);
}
.value-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal);
  border: 1px solid rgba(200, 164, 74, 0.28);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.value-card:hover .value-card__icon {
  background: var(--teal);
  color: var(--gold-light);
}
.value-card h3 {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.value-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Portafolio — líneas terapéuticas
   --------------------------------------------------------- */
.portfolio { background: var(--white); }

.lines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 42px);
}

.line-card {
  --accent: var(--teal);
  --accent-ink: var(--teal-dark);
  --accent-soft: #E8F1EF;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), var(--white) 48%);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.line-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.line-card__num {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}

.line-card__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
}
.line-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Lista de líneas debajo de las imágenes */
.lines-list {
  max-width: 860px;
  margin: clamp(24px, 2.6vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.line-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.line-item:hover {
  background: rgba(40, 116, 110, 0.045);
  padding-left: 12px;
}

.line-item__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.line-item__name {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.line-item--gold .line-item__num { color: var(--gold-ink); }
.line-item--mid .line-item__num { color: var(--teal-dark); }
.line-item--deep .line-item__num { color: var(--teal-deep); }
.line-item--gold-ink .line-item__num { color: var(--gold-ink); }

.line-card--teal {
  --accent: var(--teal);
  --accent-ink: var(--teal-dark);
  --accent-soft: #E8F1EF;
}
.line-card--gold {
  --accent: var(--gold);
  --accent-ink: var(--gold-ink);
  --accent-soft: #F6EEDC;
}
.line-card--mid {
  --accent: var(--teal-dark);
  --accent-ink: var(--teal-dark);
  --accent-soft: #E1EDEB;
}
.line-card--deep {
  --accent: var(--teal-deep);
  --accent-ink: var(--teal-deep);
  --accent-soft: #E4ECEA;
}
.line-card--gold-ink {
  --accent: var(--gold-ink);
  --accent-ink: var(--gold-ink);
  --accent-soft: #F3EBD9;
}

.portfolio-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}
.portfolio-note .icon { width: 17px; height: 17px; flex: none; color: var(--gold-ink); margin-top: 1px; }

/* ---------------------------------------------------------
   Propósito
   --------------------------------------------------------- */
.purpose {
  overflow: hidden;
  background:
    radial-gradient(800px 460px at 82% 0%, rgba(200, 164, 74, 0.17), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(40, 116, 110, 0.4), transparent 60%),
    var(--teal-deep);
  color: var(--white);
}
.purpose-glow {
  position: absolute;
  right: -180px;
  top: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 74, 0.22);
  pointer-events: none;
}
.purpose-glow::after {
  content: "";
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.purpose-head {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 52px;
}
.purpose-lead {
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  justify-self: end;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.pillar {
  position: relative;
  padding: 36px 30px 8px;
}
.pillar + .pillar { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.pillar__letter {
  display: block;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  line-height: 0.9;
  color: rgba(200, 164, 74, 0.3);
  letter-spacing: -0.05em;
}
.pillar__icon {
  display: block;
  margin-top: 18px;
  color: var(--gold);
}
.pillar__icon .icon { width: 30px; height: 30px; stroke-width: 1.4; }
.pillar h3 {
  margin: 16px 0 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pillar p {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.pillar__tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 5px 11px;
  border: 1px solid rgba(200, 164, 74, 0.5);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.purpose-quote {
  margin-top: 58px;
  padding-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.purpose-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--white);
}
.purpose-quote cite {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ---------------------------------------------------------
   Contacto
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.contact-info .section-lead { max-width: 44ch; }

.channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.channel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
}
.channel__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-soft);
  color: var(--teal);
}
.channel__icon .icon { width: 18px; height: 18px; }
.channel__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.channel__value {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.channel__value.is-pending {
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
}
.channel__value a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }

.contact-note {
  margin-top: 18px;
  max-width: 50ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.contact-map {
  margin-top: 24px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.contact-map__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--line-soft);
}
.contact-map__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.contact-map__badge .icon {
  width: 14px;
  height: 14px;
  color: var(--teal);
}
.contact-map__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.contact-map__link .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s var(--ease);
}
.contact-map__link:hover {
  color: var(--teal);
  text-decoration: underline;
}
.contact-map__link:hover .icon {
  transform: translateX(2px);
}
.contact-map__frame-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--teal-soft);
}
.contact-map__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Redes Sociales y WhatsApp en Contacto */
.contact-social {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-social__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.contact-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-social__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(11, 43, 41, 0.08);
  transition: all 0.25s var(--ease);
}
.contact-social__pill .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.contact-social__pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.contact-social__pill:hover .icon {
  transform: scale(1.1);
}
.contact-social__pill--wa {
  color: #128C7E;
}
.contact-social__pill--wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
}
.contact-social__pill--fb {
  color: #1877F2;
}
.contact-social__pill--fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
}
.contact-social__pill--ig {
  color: #C13584;
}
.contact-social__pill--ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #FFFFFF;
}

.contact-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.contact-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.contact-card__sub {
  margin: 5px 0 22px;
  font-size: 11.5px;
  color: var(--muted);
}
.contact-card__sub span { color: var(--gold-ink); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.field--full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #9AA5A2; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(40, 116, 110, 0.35); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(40, 116, 110, 0.13);
}
.field textarea { min-height: 118px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6A67' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 16px 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--teal);
}

.form-status {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.form-status.is-success { color: #1D6B45; font-weight: 600; }
.form-status.is-error { color: #A23B2E; font-weight: 600; }

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 62px 0 26px;
  border-top: 1px solid rgba(200, 164, 74, 0.35);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 38px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-logo {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--white);
}
.footer-logo img { height: 32px; width: auto; }
.footer-slogan {
  margin-top: 18px;
  max-width: 27ch;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
}
.footer-coverage {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-coverage .icon { width: 14px; height: 14px; }

/* Redes en Footer */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.footer-social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.footer-social__link .icon {
  width: 17px;
  height: 17px;
}
.footer-social__link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-deep);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px -2px rgba(200, 164, 74, 0.4);
}
.footer-social__link--wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 6px 16px -2px rgba(37, 211, 102, 0.5);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-nav ul { display: grid; gap: 7px; }
.footer-nav a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--white); }
.footer-note {
  max-width: 26ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.68);
}
.footer-brand--right .btn { margin-top: 18px; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 22px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}
.footer-legal { max-width: 62ch; text-align: right; }

/* ---------------------------------------------------------
   Botón flotante WhatsApp
   --------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.whatsapp-float__btn {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(11, 43, 41, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
}
.whatsapp-float:hover .whatsapp-float__btn {
  background: #20BA5A;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.7), 0 6px 18px rgba(11, 43, 41, 0.3);
}
.whatsapp-float__icon {
  width: 32px;
  height: 32px;
  display: block;
}
.whatsapp-float__tooltip {
  display: none;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  pointer-events: none;
  position: relative;
}
.whatsapp-float__tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--ink);
}
@media (min-width: 769px) {
  .whatsapp-float:hover .whatsapp-float__tooltip {
    display: block;
    animation: waTooltipIn 0.2s var(--ease);
  }
}
@keyframes waTooltipIn {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------------------------------------------------------
   Animaciones de entrada
   --------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1120px) {
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-badge { left: -12px; }
  .about-grid { gap: 44px; }
}

@media (max-width: 980px) {
  :root { --header-h: 76px; }

  .brand img { height: 38px; }
  .menu-toggle { display: grid; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    max-height: calc(100vh - var(--header-h));
    padding: 20px 24px 26px;
    background: var(--cream-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(11, 43, 41, 0.4);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link {
    display: block;
    padding: 13px 2px;
    font-size: 15.5px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--teal); }
  .nav-cta { width: 100%; }

  .hero { padding-top: 34px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-bottom: 54px;
  }
  .hero-copy { max-width: 660px; }
  .hero-title { font-size: clamp(2.5rem, 7vw, 3.6rem); }
  .hero-visual { justify-self: center; max-width: 540px; }
  .hero-photo { aspect-ratio: 4 / 3.9; }
  .hero-tag { right: 10px; }
  .hero-badge { left: 12px; bottom: -22px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-intro { max-width: 700px; }
  .about-intro .section-lead { max-width: 62ch; }

  .purpose-head { grid-template-columns: 1fr; gap: 16px; }
  .purpose-lead { justify-self: start; max-width: 58ch; }

  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lines-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { max-width: 680px; }

  .footer-grid { grid-template-columns: 1.3fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-legal { text-align: left; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 36px); }

  .section { padding: 64px 0; }
  .section-lead { font-size: 15px; }

  /* En medidas cortas el texto justificado abre huecos: se alinea a la izquierda */
  .hero-lead,
  .section-lead,
  .about-text,
  .about-story p,
  .mv-card__text,
  .purpose-lead,
  .portfolio-note,
  .contact-note {
    text-align: left;
  }

  .hero-facts { gap: 18px 26px; }
  .hero-facts strong { font-size: 20px; }
  .hero-tag { font-size: 9.5px; padding: 8px 11px; }
  .hero-badge { max-width: 260px; padding: 12px 14px 12px 12px; }
  .hero-badge strong { font-size: 12.5px; }
  .hero-badge span:not(.hero-badge__icon) { font-size: 10.5px; }

  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-card { padding: 22px 18px; }

  .lines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .line-item { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 13px 2px; }
  .line-item__name { font-size: 14.5px; }

  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 30px 0 6px; }
  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .pillar__letter { font-size: 44px; }
  .pillar p { max-width: 46ch; }

  .purpose-quote { margin-top: 42px; }

  .channels { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand img { height: 34px; }
  .header-controls { gap: 8px; }
  .lang-btn { font-size: 11px; padding: 4px 8px; }
  .hero-title { font-size: clamp(2.2rem, 10.5vw, 2.9rem); }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 100%; }
  .hero-photo { aspect-ratio: 4 / 4.4; border-radius: 130px 130px 24px 24px; }
  .hero-visual::before { border-radius: 130px 130px 24px 24px; inset: 12px -10px -12px 12px; }
  .hero-tag { display: none; }
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -26px auto 0; width: calc(100% - 28px); }

  .values-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; }
  .lines-grid { gap: 10px; }
  .line-card { padding: 12px; }
  .line-card__num { top: 18px; right: 16px; }
  .line-item:hover { padding-left: 8px; }

  .form-grid { grid-template-columns: 1fr; }
  .contact-card { border-radius: var(--radius); }
  .contact-map__frame-wrap { height: 230px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand--right .btn { width: 100%; }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float__btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__icon {
    width: 28px;
    height: 28px;
  }
}

/* ---------------------------------------------------------
   Preferencias de movimiento
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .concept-strip__track { animation: none; }
}
