/*
Theme Name: AdryLove Original Completa
Theme URI: https://adrylove.com/
Author: AdryLove
Description: Tema personalizado para AdryLove, con portada, mentorías, cursos y formulario de contacto.
Version: 1.5.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: adrylove
*/

/* =========================================================
   AdryLove — Adry: Tu marca tiene una historia.
   Editorial cream, warm rose accent. Cormorant Garamond + Inter.
   A book, not a landing page: huge space, slow reveals, one idea per screen.
   ========================================================= */

:root{
  --cream:       #F7F3EE;
  --cream-2:     #EFE6D9;
  --paper:       #FFFEFB;
  --ink:         #1F1E1E;
  --ink-soft:    #4A4744;
  --ink-mute:    #8A857D;
  --rose:        #D8A5AF;
  --rose-deep:   #C0808D;
  --rose-text:   #9C5A6E;
  --rose-tint:   #F3E3E5;
  --rose-intense:#B85C74;
  --brown-1:     #A9836A;
  --brown-2:     #6B4F3E;
  --gold:        #C9A45B;
  --glow-gold:   0 0 0 1px rgba(201,164,91,.4), 0 16px 34px -10px rgba(201,164,91,.6);
  --line:        rgba(31,30,30,0.12);
  --line-soft:   rgba(31,30,30,0.08);
  --line-on-dark: rgba(247,243,238,0.16);

  --cream-on-dark: #F7F3EE;
  --cream-on-dark-soft: rgba(247,243,238,0.72);
  --cream-on-dark-mute: rgba(247,243,238,0.48);

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-accent: "DM Sans", "Inter", -apple-system, sans-serif;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);

  --nav-h: 84px;
  --container: 1220px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
p{ margin: 0; }
h1,h2,h3,h4{ margin: 0; font-family: var(--font-display); font-weight: 500; }
/* h2 section titles + the hero title: bold sans (same voice as .split-bold)
   instead of the thin serif, which read as script/italic and got lost. */
h2,
.hero-title{
  font-family: var(--font-accent);
  font-weight: 700;
  font-style: normal;
}
em{ font-style: italic; }
button{ font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
::selection{ background: var(--rose); color: var(--ink); }

.container{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.bg-2{ background: var(--cream-2); }
.bg-dark{ background: var(--ink); color: var(--cream-on-dark); }
.bg-dark .chapter-title,
.bg-dark .chapter-emphasis,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4{
  color: #fff;
}

/* ---------- Chapter rhythm — generous space, one idea per screen ---------- */
.chapter{ position: relative; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.chapter-tight{ padding-block: clamp(3rem, 6vw, 5rem); }
.chapter-title{
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.chapter-title-center{
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.chapter-emphasis{
  position: relative;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 34ch;
}
.chapter-emphasis-center{ text-align: center; margin-inline: auto; }
.chapter-emphasis-center::before{
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 130%;
  height: 170%;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(201,164,91,0.1), rgba(184,92,116,0.06) 55%, transparent 76%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

/* ---------- Buttons — premium: glass, elevation, tactile ---------- */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), background-color .45s var(--ease-soft), color .45s var(--ease-soft), border-color .45s var(--ease-soft);
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.btn::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 45%);
  opacity: .7;
  pointer-events: none;
}
.btn:hover{ transform: translateY(-3px); }
.btn:active{ transform: translateY(-1px) scale(.97); transition-duration: .15s; }

.btn-primary{
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 24px -14px rgba(31,30,30,0.4);
}
.btn-primary:hover{
  background: var(--rose-deep);
  color: var(--ink);
  box-shadow: 0 22px 40px -16px rgba(192,128,141,0.5);
}
.bg-dark .btn-primary{ background: var(--rose); color: var(--ink); }
.bg-dark .btn-primary:hover{ background: var(--rose-deep); color: var(--ink); box-shadow: var(--glow-gold); }

.btn-ghost{
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ border-color: var(--ink); background: rgba(255,255,255,0.75); box-shadow: 0 18px 34px -18px rgba(31,30,30,0.28); }
.bg-dark .btn-ghost{ color: var(--cream-on-dark); border-color: var(--line-on-dark); background: rgba(247,243,238,0.05); }
.bg-dark .btn-ghost:hover{ border-color: var(--cream-on-dark); background: rgba(247,243,238,0.1); }
@supports not (backdrop-filter: blur(1px)){
  .btn-ghost{ background: var(--paper); }
}

.btn-lg{ padding: 1.25rem 2.8rem; font-size: 1.05rem; }
.btn-sm{ padding: .7rem 1.4rem; font-size: .82rem; }
.btn-block{ display: flex; width: 100%; justify-content: center; }

@media (max-width: 560px){
  .btn{ padding: .85rem 1.25rem; font-size: .82rem; }
  .btn-lg{ padding: 1rem 1.5rem; font-size: .95rem; }
  .btn-sm{ padding: .72rem .85rem; font-size: .76rem; }
  .plan-card .btn{ min-height: 2.9rem; width: 100%; }
}

.btn-arrow{ display: inline-block; transition: transform .5s var(--ease-out); }
.btn:hover .btn-arrow-down{ transform: translateY(4px); }
.btn:hover .btn-arrow-right{ transform: translateX(5px); }
.btn-sparkle{ display: inline-block; transition: transform .6s var(--ease-out); }
.btn:hover .btn-sparkle{ transform: rotate(18deg) scale(1.15); }

/* ---------- Nav — logo left, links + CTA grouped right ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--brown-2);
  color: var(--cream-on-dark);
  transition: background-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.nav.is-solid{
  background: var(--brown-2);
  box-shadow: 0 4px 20px -10px rgba(0,0,0,0.35);
}
@supports not (backdrop-filter: blur(1px)){
  .nav.is-solid{ background: var(--brown-2); }
}
.nav-inner{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo{ display: flex; align-items: center; }
.nav-logo img{ height: 44px; width: auto; }
.nav-right{
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 3rem);
  margin-left: auto;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.8rem);
}
.nav-links a{
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
  color: #fff;
}
.nav-links a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--cream-on-dark);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after{ right: 0; }
.nav-cta{ flex-shrink: 0; }
.nav-cta,
.mobile-menu .btn-primary,
.hero-actions .btn-primary{
  background: var(--rose);
  color: var(--ink);
}
.nav-cta:hover,
.mobile-menu .btn-primary:hover,
.hero-actions .btn-primary:hover{
  background: var(--rose-deep);
  color: var(--ink);
  box-shadow: var(--glow-gold);
}
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.nav-toggle span{
  display: block;
  width: 22px; height: 1px;
  background: var(--cream-on-dark);
  transition: transform .35s var(--ease-out), opacity .2s;
  margin-inline: auto;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px){
  .nav-right{ display: none; }
  .nav-toggle{ display: flex; }
  .mobile-menu{
    position: fixed; inset: 0;
    background: var(--cream);
    z-index: 490;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform .5s var(--ease-out);
  }
  .mobile-menu.is-open{ transform: translateY(0); }
  .mobile-menu a{ font-family: var(--font-display); font-size: 1.9rem; }
  .mobile-menu .btn{ margin-top: 1rem; }
}
@media (min-width: 1081px){ .mobile-menu{ display: none; } }

/* ---------- Reveal — slow, cinematic ---------- */
.reveal{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible{ opacity: 1; transform: none; }
.reveal[data-split]{ opacity: 1; transform: none; }

.reveal-scale{
  opacity: 0;
  transform: scale(.97) translateY(16px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal-scale.is-visible{ opacity: 1; transform: none; }

/* ---------- Mouse-tilt on photo figures ---------- */
.tilt-figure{ transition: transform .4s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: clip;
}
.hero-inner{
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-title{
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 14ch;
}
.hero-title em{ font-style: normal; color: var(--rose-text); }
.hero-title-main,
.hero-title-promise{ display: block; }
.hero-title-promise{
  margin-top: .25em;
  font-size: .52em;
  line-height: 1.22;
  letter-spacing: -.025em;
  color: var(--rose-text);
  max-width: 19ch;
}
.hero-sub{
  margin-top: 1.6rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.65;
}
.hero-actions{
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-figure{ position: relative; }
.hero-block{
  position: absolute;
  top: -22px; right: -22px;
  width: 72%;
  height: 55%;
  background: var(--brown-1);
  z-index: -1;
}
.hero-figure-frame{
  position: relative;
  border-radius: 6px 6px 120px 6px;
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  box-shadow: 0 40px 70px -30px rgba(31,30,30,0.28);
}
.hero-figure-frame img{
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 10%;
  transition: transform 1.2s var(--ease-out);
}
.hero-figure:hover .hero-figure-frame img{ transform: scale(1.04); }
.hero-sparkle{
  position: absolute;
  bottom: -18px; left: -18px;
  font-size: 2.6rem;
  color: var(--rose);
  animation: sparklePulse 3.4s ease-in-out infinite;
}
@keyframes sparklePulse{
  0%, 100%{ transform: scale(1) rotate(0deg); opacity: .85; }
  50%{ transform: scale(1.15) rotate(8deg); opacity: 1; }
}

@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-figure{ order: -1; max-width: 22rem; margin-inline: auto; }
  .hero-title{ max-width: none; }
}

/* ---------- Chapter 2 — split figure/copy ---------- */
.chapter-split{
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.chapter-figure{
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.6;
  border-radius: 4px 4px 100px 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(31,30,30,0.25);
}
.chapter-figure img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.chapter-figure img[data-parallax]{ object-position: 50% 10%; }
.chapter-figure-mentoria img{
  object-position: 50% 8%;
  transform: none;
}

/* Oversized + absolutely positioned so JS parallax has room to shift without exposing gaps */
img[data-parallax]{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 130%;
  top: -15%;
  object-fit: cover;
}
.chapter-copy p{ font-size: 1.1rem; color: var(--ink-soft); line-height: 1.7; }
.chapter-copy p + p{ margin-top: 1.3rem; }
.chapter-copy .chapter-title{ margin-bottom: 1.6rem; max-width: none; }
.chapter-copy .chapter-emphasis{ margin-block: 1.5rem; }

@media (max-width: 860px){
  .chapter-split{ grid-template-columns: 1fr; }
  .chapter-figure{ max-width: 22rem; margin-inline: auto; }
}

/* ---------- Momento editorial — pausa sin vender ---------- */
.quote-moment{
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  text-align: center;
}
.quote-moment::before{
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(60rem, 140%);
  height: 68%;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(184,92,116,0.09), rgba(169,131,106,0.05) 60%, transparent 78%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.quote-moment-text{
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.3;
  max-width: 26ch;
  margin-inline: auto;
  color: var(--ink);
}
@media (min-width: 640px){
  /* Each line reads as a single, unbroken sentence rather than wrapping. */
  .quote-moment-text{ max-width: none; font-size: clamp(1rem, 2.3vw, 1.9rem); }
}

/* ---------- Split-weight editorial phrases (DM Sans regular → bold) ---------- */
.split-regular, .split-bold{
  display: block;
  font-family: var(--font-accent);
  font-style: normal;
}
.split-regular{ font-weight: 400; }
.split-bold{ font-weight: 700; margin-top: .25em; }
@media (min-width: 640px){
  .split-regular, .split-bold{ white-space: nowrap; }
}
.quote-moment-sign{
  display: block;
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  width: 40px;
  height: auto;
  opacity: .82;
}

/* ---------- Chapter 3 — Todo me trajo hasta aquí ---------- */
.chapter-subtitle{
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 1.2rem auto 0;
  text-align: center;
  line-height: 1.6;
}
.chapter-subtitle-dark{ color: var(--cream-on-dark-soft); }
.section-head .chapter-title-center{ margin-bottom: 0; }

/* ---------- Currency toggle (CLP / USD) ---------- */
.currency-toggle{
  display: flex;
  justify-content: center;
  gap: .75rem;
  width: fit-content;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  background: transparent;
  padding: 0;
}
.currency-btn{
  min-width: 6rem;
  border: 1px solid rgba(255,255,255,.48);
  background: rgba(255,255,255,.04);
  padding: .65rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-accent);
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  color: var(--cream-on-dark-soft);
  transition: transform .25s var(--ease-out), background-color .25s var(--ease-soft), color .25s var(--ease-soft), border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.currency-btn:hover{ transform: translateY(-2px); border-color: #fff; color: #fff; }
.currency-btn.is-active{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 24px -14px rgba(201,164,91,.9);
}
.currency-note{
  text-align: center;
  font-size: .78rem;
  color: var(--cream-on-dark-mute);
  margin: .6rem 0 clamp(2rem, 4vw, 3rem);
}
.js-price{ display: inline-block; min-width: 11ch; }
/* Light-background variant (e.g. Cursos page) — same active/inactive
   differentiation, adapted so it reads on cream instead of dark. */
.bg-2 .currency-toggle{ background: transparent; }
.bg-2 .currency-btn{ color: var(--ink-soft); border-color: rgba(31,30,30,.28); background: rgba(255,255,255,.28); }
.bg-2 .currency-btn:hover{ color: var(--ink); border-color: var(--ink); background: rgba(255,255,255,.72); }
.bg-2 .currency-btn.is-active{ background: var(--gold); color: var(--ink); }
.bg-2 .currency-note{ color: var(--ink-mute); }
.stages-hint{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 1.4rem 0 0;
  font-size: .84rem;
  font-weight: 500;
  color: var(--rose-text);
  letter-spacing: .01em;
}
.stages-hint-icon{ font-size: .7rem; }

.stages-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.stage-card{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  filter: saturate(.85) brightness(.94);
  transition: filter .5s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.stage-card img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform .8s var(--ease-out); }
/* IMG_5776 has a lot of sky/building above the subject; anchor the crop to
   the bottom so her full body stays in frame instead of being cut off. */
.stage-card-arquitectura img{ object-position: 50% 100%; }
.stage-card-maquillaje img{
  object-position: 50% 18%;
  transform: scale(1.3);
  transform-origin: 50% 18%;
}
.stage-card:hover, .stage-card[aria-expanded="true"]{
  filter: saturate(1.1) brightness(1.02);
  transform: translateY(-6px);
  box-shadow: 0 26px 45px -24px rgba(31,30,30,0.35);
}
.stage-card:hover img{ transform: scale(1.06); }
.stage-card-maquillaje:hover img{ transform: scale(1.36); }
.stage-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(31,30,30,0.78) 0%, rgba(31,30,30,0.05) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .4s var(--ease-soft);
}
.stage-card:hover .stage-overlay, .stage-card[aria-expanded="true"] .stage-overlay{ opacity: 1; }
.stage-name{
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  line-height: 1.25;
  text-align: left;
}
.stage-arrow{
  margin-top: .5rem;
  color: var(--rose);
  font-size: .95rem;
  transition: transform .4s var(--ease-out);
}
.stage-card[aria-expanded="true"] .stage-arrow{ transform: rotate(180deg); }

.stage-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease-out);
}
.stage-panel.is-open{ grid-template-rows: 1fr; }
.stage-panel-inner{ overflow: hidden; }
.stage-panel-inner p{
  padding-top: clamp(2rem, 4vw, 3rem);
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 900px){
  .stages-row{
    grid-template-columns: repeat(5, 62vw);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: .5rem;
    margin-inline: calc(clamp(1.25rem, 5vw, 3rem) * -1);
    padding-inline: clamp(1.25rem, 5vw, 3rem);
  }
  .stage-card{ scroll-snap-align: start; }
  .stage-overlay{ opacity: 1; background: linear-gradient(0deg, rgba(31,30,30,0.82) 0%, rgba(31,30,30,0.1) 60%, transparent 100%); }
}

/* ---------- Chapter 4 — media (client video loop + text overlay) ---------- */
/* video-clientes.mp4 is landscape (16:9): the box matches that ratio so the
   clip fits edge to edge with no cropping. */
.media-carousel{
  position: relative;
  width: 100%;
  max-width: 56rem;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(31,30,30,0.35);
}
.media-carousel-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-carousel-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,30,30,.32) 0%, rgba(31,30,30,.5) 50%, rgba(31,30,30,.32) 100%);
}
.media-carousel-copy{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.media-carousel-copy .chapter-emphasis{ color: var(--cream-on-dark); max-width: 34ch; text-align: center; }
.media-carousel-copy .chapter-emphasis-center::before{ display: none; }

/* ---------- Chapter 5 — help list (editorial rows, not cards) ---------- */
.help-list{ display: flex; flex-direction: column; }
.help-row{
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.help-list a.help-row:last-child{ border-bottom: 1px solid var(--line); }
.help-row-figure{
  display: block;
  width: 6.5rem;
  aspect-ratio: 4 / 4.6;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.help-row-figure img{ width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.help-row:hover .help-row-figure img{ transform: scale(1.08); }
.help-row-text{ display: block; }
.help-row-question{
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--ink);
  line-height: 1.3;
  transition: color .4s var(--ease-soft), transform .4s var(--ease-out);
}
.help-row:hover .help-row-question{ color: var(--rose-text); transform: translateX(6px); }
.help-row-answer{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .6rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: .01em;
}
.help-row-answer .btn-arrow{ transition: transform .5s var(--ease-out); }
.help-row:hover .help-row-answer .btn-arrow{ transform: translateX(5px); }
@media (max-width: 640px){
  .help-row{ grid-template-columns: 1fr; }
  .help-row-figure{ width: 4.5rem; margin-bottom: .5rem; }
}

/* ---------- Planes — dark, gold accent ---------- */
.planes-section .section-head{ margin-bottom: clamp(3rem, 6vw, 5rem); }
.plan-group{ margin-bottom: clamp(3rem, 6vw, 5rem); }
.plan-group:last-child{ margin-bottom: 0; }
.plan-group-head{
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.plan-group-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  flex-shrink: 0;
}
.plan-group-icon svg{ width: 20px; height: 20px; }
.plan-group-head h3{ font-size: 1.5rem; color: var(--cream-on-dark); }
.plans-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
/* 5 cards in the Gestión de Redes group: 4-col auto-fit stranded the 5th
   (Todo Incluido) alone on row 2 with empty space beside it. Flex-wrap +
   center keeps price order (ascending) but lets the last row center itself. */
#planes-redes .plans-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#planes-redes .plan-card{
  flex: 1 1 300px;
  max-width: 340px;
}
.plan-card{
  position: relative;
  background: rgba(247,243,238,0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: 16px;
  padding: clamp(1.6rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s var(--ease-soft);
}
.plan-card:hover{ transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 50px -30px rgba(0,0,0,0.55); }
.plan-card.is-featured{ border-color: var(--gold); background: rgba(201,164,91,0.07); }
.plan-badge{
  position: absolute; top: -13px; left: 1.6rem;
  background: var(--gold);
  color: var(--ink);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name{
  font-family: var(--font-accent);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .3rem;
}
.plan-name a:hover{ text-decoration: underline; text-underline-offset: 3px; }
.plan-price{
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: .15rem;
}
.plan-price .plan-suffix{ font-family: var(--font-body); font-size: .85rem; color: var(--cream-on-dark-mute); font-weight: 500; }
.plan-note{ font-size: .84rem; color: var(--cream-on-dark-mute); margin-bottom: 1.2rem; min-height: 2.4em; }
.plan-features{ margin-bottom: 1.6rem; flex-grow: 1; }
.plan-features li{
  position: relative;
  padding-left: 1.2rem;
  font-size: .88rem;
  color: var(--cream-on-dark-soft);
  margin-bottom: .55rem;
}
.plan-features li::before{
  content: "✦";
  position: absolute; left: 0; top: 1px;
  font-size: .68rem;
  color: var(--gold);
}
.planes-section .btn-ghost{ color: var(--cream-on-dark); border-color: var(--line-on-dark); }
.planes-section .btn-ghost:hover{ border-color: var(--gold); background: rgba(201,164,91,0.08); }
.planes-section .btn-primary{ background: var(--gold); color: var(--ink); }
.planes-section .btn-primary:hover{ background: var(--cream); }
.packs-desc{ font-size: .95rem; color: var(--cream-on-dark-soft); max-width: 42ch; margin-bottom: 1.4rem; line-height: 1.6; }
.packs-row{ display: flex; flex-wrap: wrap; gap: 1rem; }
.packs-row .pill{
  border: 1px solid var(--line-on-dark);
  color: var(--cream-on-dark);
  border-radius: 999px;
  padding: .8rem 1.5rem;
  font-size: .92rem;
  font-weight: 500;
  transition: border-color .3s, background-color .3s;
}
.packs-row .pill:hover{ border-color: var(--gold); background: rgba(201,164,91,0.08); }
.packs-note{ margin-top: 1.2rem; font-size: .88rem; color: var(--cream-on-dark-mute); }

/* ---------- Service architecture 2026 ---------- */
.work-models{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:-1rem 0 clamp(3rem,6vw,5rem); }
.work-models p,.work-models>a{ border:1px solid var(--line-on-dark); border-radius:14px; padding:1.25rem; display:flex; flex-direction:column; transition:border-color .25s,transform .25s,background-color .25s; }
.work-models>a:hover{ border-color:var(--gold); transform:translateY(-2px); background:rgba(201,164,91,.06); }
.work-models strong{ color:var(--cream-on-dark); font-family:var(--font-accent); }
.work-models span,.plan-group-eyebrow{ color:var(--gold); font-size:.78rem; letter-spacing:.04em; text-transform:uppercase; }
.plan-group-eyebrow{ margin-bottom:.15rem; }
#mentoria-origen .plans-grid{ display:flex; justify-content:center; }
.plan-card-wide{ width:min(100%,720px); }
.plan-card-ads{ border-color:var(--rose); background:linear-gradient(145deg,rgba(216,165,175,.16),rgba(201,164,91,.08)); }
.packs-row-detailed{ display:grid; grid-template-columns:repeat(3,1fr); }
.packs-row-detailed .pill{ border-radius:16px; display:flex; flex-direction:column; gap:.6rem; }
.packs-row-detailed .pill strong{ color:var(--gold); font-family:var(--font-accent); }
.packs-row-detailed .pill span{ font-size:.8rem; line-height:1.55; color:var(--cream-on-dark-soft); }

.services-early .section-head{ margin-bottom:2.5rem; }
.services-early .chapter-title-center{ margin-bottom:1rem; }
.service-paths{ display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; max-width:960px; margin:auto; }
.service-path{ display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:1rem; min-height:112px; padding:1.25rem 1.5rem; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.42); transition:transform .35s var(--ease-out),border-color .35s; }
.service-path:hover{ transform:translateY(-3px); border-color:var(--rose-deep); }
.service-path-number{ color:var(--rose-text); font-size:.75rem; }
.service-path strong,.service-path small{ display:block; }
.service-path strong{ font-family:var(--font-accent); line-height:1.3; }
.service-path small{ color:var(--ink-mute); margin-top:.2rem; }

@media (max-width:767px){
  :root{ --nav-h:68px; }
  .hero{ min-height:auto; padding-top:calc(var(--nav-h) + 1.4rem); }
  .hero-inner{ display:flex; flex-direction:column; gap:1.25rem; }
  .hero-copy{ order:1; padding-top:0; }
  .hero-figure{ order:2; max-height:300px; overflow:hidden; }
  .hero-figure-frame,.hero-figure-frame img{ height:300px; }
  .hero-figure-frame img{ object-fit:cover; object-position:center 25%; }
  .hero-title{ font-size:clamp(2.15rem,10vw,3rem); }
  .hero-kicker{ font-size:.73rem; line-height:1.45; max-width:42ch; text-transform:uppercase; letter-spacing:.06em; color:var(--rose-text); margin-bottom:.65rem; }
  .hero-actions{ display:grid; grid-template-columns:1fr 1fr; gap:.65rem; }
  .hero-actions .btn{ width:100%; }
  .services-early{ padding-block:3.25rem; }
  .service-paths{ grid-template-columns:1fr; gap:.65rem; }
  .service-path{ min-height:82px; padding:.9rem 1rem; }
  .help-detail{ display:none; }
  .work-models{ grid-template-columns:1fr; gap:.65rem; }
  .work-models p,.work-models>a{ padding:1rem; }
  .plans-grid,#planes-redes .plans-grid{ display:grid; grid-template-columns:1fr; }
  .plan-card,#planes-redes .plan-card{ max-width:none; width:100%; }
  .packs-row-detailed{ grid-template-columns:1fr; }
  .plan-badge{ white-space:normal; max-width:calc(100% - 3.2rem); }
  .wa-float-text{ display:none; }
  .wa-float-btn{ width:52px; height:52px; padding:0; justify-content:center; border-radius:50%; }
}

/* ---------- Dark canvas contrast lock ----------
   Kept at the end because WordPress/page-builder rules can otherwise recolor
   headings and paragraphs after the theme stylesheet at some breakpoints. */
.bg-dark,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark .plan-name,
.bg-dark .plan-group-head h3,
.bg-dark .work-models strong,
.bg-dark .contact-card-eyebrow,
.bg-dark .contact-card-text,
.bg-dark .cta-lead,
.bg-dark .contact-field label,
.bg-dark .footer-cta-text,
.bg-dark .footer-tagline,
.bg-dark .footer-col h4,
.bg-dark .footer-col a,
.bg-dark .footer-legal{
  color:#F7F3EE !important;
}
.bg-dark .chapter-subtitle,
.bg-dark .plan-note,
.bg-dark .plan-features li,
.bg-dark .packs-desc,
.bg-dark .packs-note,
.bg-dark .packs-row .pill span{
  color:rgba(247,243,238,.78) !important;
}
.bg-dark .plan-price,
.bg-dark .plan-group-eyebrow,
.bg-dark .work-models span,
.bg-dark .packs-row .pill strong,
.bg-dark .plan-details-toggle{
  color:#D8B96F !important;
}
.bg-dark .btn-primary{
  color:#1F1E1E !important;
}
.bg-dark .btn-ghost{
  color:#F7F3EE !important;
}

@media (max-width:1080px){
  .bg-dark .plan-card,
  .bg-dark .work-models p,
  .bg-dark .work-models>a,
  .bg-dark .packs-row .pill{
    color:#F7F3EE;
  }
}

/* ---------- Chapter 6 — trabajo flow + Instagram feed ---------- */
.trabajo-split{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.trabajo-copy .chapter-title{ text-align: left; margin-inline: 0; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); max-width: none; }
.trabajo-copy .trabajo-flow{ text-align: left; margin-inline: 0; }
.ig-feed-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: 0 24px 50px -30px rgba(31,30,30,0.22);
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.ig-feed-head{ display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.ig-feed-icon{ width: 22px; height: 22px; color: var(--rose-text); flex-shrink: 0; }
.ig-feed-handle{ font-weight: 600; font-size: .95rem; }
.ig-feed-embed{
  min-height: 22rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream-2);
}
.ig-feed-embed .lightwidget-widget{ display: block; min-height: 22rem; }
.ig-feed-fallback{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--rose-text);
  text-align: center;
  padding: 2rem;
}
.ig-feed-fallback-icon{ font-size: 1.8rem; }
@media (max-width: 900px){
  .trabajo-split{ grid-template-columns: 1fr; }
  .trabajo-copy .chapter-title,
  .trabajo-copy .trabajo-flow{ text-align: center; margin-inline: auto; }
  .ig-feed-card{ position: static; max-width: 30rem; margin-inline: auto; }
}

.trabajo-flow{
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.trabajo-flow p{ font-size: 1.08rem; color: var(--ink-soft); line-height: 1.7; }
.trabajo-flow p + p{ margin-top: 1.6rem; }
.trabajo-beat{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem !important;
  color: var(--ink) !important;
}
.trabajo-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.2rem;
}
.trabajo-actions .btn{ padding: .8rem 1.15rem; font-size: .84rem; }
.trabajo-actions .btn,
.trabajo-actions .btn:hover{
  background: var(--rose);
  border-color: transparent;
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(192,128,141,.8);
}
.trabajo-actions .btn:hover{
  background: var(--rose-deep);
  box-shadow: var(--glow-gold);
}
@media (max-width: 900px){
  .trabajo-actions{ justify-content: center; }
}

/* ---------- Chapter 7 — resultados (editorial rows, not cards) ---------- */
.casos-list{ display: flex; flex-direction: column; }
.casos-intro{
  max-width: 54rem;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.casos-intro .case-kicker{ margin-bottom: 1rem; }
.casos-intro .chapter-title{ max-width: 22ch; margin-bottom: 0; }
.casos-intro .chapter-subtitle{ max-width: 60ch; }
.caso-row{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line);
}
.casos-list article:last-child{ border-bottom: 1px solid var(--line); }
.caso-name{ font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin-bottom: .3rem; }
.caso-role{ font-size: .82rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .04em; }
.caso-result{ font-size: 1rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.3rem; }
.caso-quote{
  margin: 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rose);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink);
  line-height: 1.55;
}
.caso-link{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  color: var(--rose-text);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.caso-link:hover{ color: var(--ink); }
@media (max-width: 760px){
  .caso-row{ grid-template-columns: 1fr; gap: 1rem; }
}

/* ---------- Chapter 8 — Contacto ---------- */
.cta-section{ overflow: clip; position: relative; }
.cta-halo{
  position: absolute;
  inset: -30% -10% -60% -10%;
  background: radial-gradient(45% 45% at 50% 30%, rgba(216,165,175,0.22), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.contact-head{ position: relative; max-width: 42rem; margin-inline: auto; text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.cta-lead{
  font-size: 1.1rem;
  color: var(--cream-on-dark-soft);
  margin-top: 1.4rem;
  line-height: 1.65;
}

.contact-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  max-width: 56rem;
  margin-inline: auto;
}
.contact-form{
  background: rgba(247,243,238,0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.2rem);
}
.contact-form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.contact-field{ margin-bottom: 1.2rem; }
.contact-field label{
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--cream-on-dark-mute);
  margin-bottom: .5rem;
}
.contact-optional{ font-weight: 400; opacity: .8; }
.contact-field input,
.contact-field textarea{
  width: 100%;
  background: rgba(247,243,238,0.06);
  border: 1px solid var(--line-on-dark);
  border-radius: 10px;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .95rem;
  color: var(--cream-on-dark);
  transition: border-color .35s var(--ease-soft), background-color .35s var(--ease-soft);
}
.contact-field input::placeholder,
.contact-field textarea::placeholder{ color: var(--cream-on-dark-mute); }
.contact-field input:focus,
.contact-field textarea:focus{
  outline: none;
  border-color: var(--rose);
  background: rgba(247,243,238,0.1);
}
.contact-field textarea{ resize: vertical; min-height: 8rem; }
.contact-submit{ margin-top: .4rem; }
.contact-form-note{
  margin-top: 1rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--rose);
}
.contact-form-note[data-state="error"]{ color: #E29AA8; }

.contact-card{
  background: rgba(216,165,175,0.07);
  border: 1px solid var(--line-on-dark);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2rem);
}
.contact-card-eyebrow{ font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--cream-on-dark); margin-bottom: .6rem; }
.contact-card-text{ font-size: .92rem; color: var(--cream-on-dark-soft); margin-bottom: 1.4rem; line-height: 1.55; }
.contact-card-btn{ width: 100%; justify-content: center; }
.contact-card-btn,
.bg-dark .contact-card-btn{
  background: var(--rose);
  color: var(--ink);
  border-color: transparent;
}
.contact-card-btn:hover,
.bg-dark .contact-card-btn:hover{
  background: var(--rose-deep);
  color: var(--ink);
  border-color: transparent;
  box-shadow: var(--glow-gold);
}

@media (max-width: 760px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-form-row{ grid-template-columns: 1fr; }
}

/* ---------- Closing ---------- */
.closing{ padding-block: clamp(5rem, 11vw, 9rem); text-align: center; }
.closing-quote{
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  line-height: 1.35;
  max-width: 28ch;
  margin-inline: auto;
  color: var(--ink);
}
@media (min-width: 640px){
  /* Each line reads as a single, unbroken sentence rather than overflowing. */
  .closing-quote{ max-width: none; font-size: clamp(1rem, 2.2vw, 1.75rem); }
}

/* ---------- Footer ---------- */
.footer{ padding-block: clamp(4rem, 7vw, 5.5rem) 2rem; }
.footer-cta{
  text-align: center;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-cta-text{
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--cream-on-dark);
  margin-bottom: 1.8rem;
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.25;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand img{ height: 38px; margin-bottom: 1rem; opacity: .85; }
.footer-tagline{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream-on-dark-soft);
  max-width: 24ch;
}
.footer-social{ display: flex; gap: .9rem; margin-top: 1.3rem; }
.footer-social a{
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--cream-on-dark-soft);
  transition: border-color .35s var(--ease-soft), color .35s var(--ease-soft), transform .35s var(--ease-out);
}
.footer-social a:hover{ border-color: var(--rose); color: var(--rose); transform: translateY(-2px); }
.footer-social svg{ width: 16px; height: 16px; }
.footer-col h4{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-on-dark-mute);
  margin-bottom: 1.1rem;
}
.footer-col li{ margin-bottom: .7rem; }
.footer-col a{
  font-size: .92rem;
  color: var(--cream-on-dark-soft);
  transition: color .3s;
}
.footer-col a:hover{ color: var(--rose); }
.footer-legal{
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  font-size: .8rem;
  color: var(--cream-on-dark-mute);
}
@media (max-width: 820px){
  .footer-top{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .footer-top{ grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Mentorías — topic pills ---------- */
.topics-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  max-width: 50rem;
  margin-inline: auto;
}
.topic-pill{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .7rem 1.3rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  transition: border-color .35s var(--ease-soft), color .35s var(--ease-soft), transform .35s var(--ease-out);
}
.topic-pill:hover{ border-color: var(--rose); color: var(--rose-text); transform: translateY(-2px); }

/* ---------- Cursos ---------- */
.course-card{
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}
.course-card:last-child{ margin-bottom: 0; }
.course-name{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .8rem; }
.course-desc{ font-size: 1.05rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 1.6rem; max-width: 52ch; }
.course-includes-label{ font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rose-text); margin-bottom: .9rem; }
.course-includes{ display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.5rem; margin-bottom: 1.8rem; }
.course-includes li{ position: relative; padding-left: 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.course-includes li::before{ content: "✦"; position: absolute; left: 0; top: 2px; font-size: .65rem; color: var(--rose-deep); }
.course-footer{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.course-price{ font-family: var(--font-display); font-size: 1.7rem; color: var(--ink); }
.course-price .plan-suffix{ font-family: var(--font-body); font-size: .8rem; color: var(--ink-mute); font-weight: 500; }
/* CTA matches the rose treatment used everywhere else on the site, instead
   of the default dark .btn-primary (which reads as a plain black button on
   this light background). */
.course-footer .btn-primary{ background: var(--rose); color: var(--ink); }
.course-footer .btn-primary:hover{ background: var(--rose-deep); color: var(--ink); box-shadow: var(--glow-gold); }
@media (max-width: 560px){
  .course-includes{ grid-template-columns: 1fr; }
}

/* ---------- Floating WhatsApp ---------- */
/* Branded WhatsApp pill: always recognizable and readable, with a restrained
   pulse that draws attention without competing with the page content. */
.wa-float{
  position: fixed;
  right: clamp(1.2rem, 3vw, 2rem);
  bottom: clamp(1.2rem, 3vw, 2rem);
  z-index: 400;
  opacity: 0;
  transform: translateY(16px) scale(.9);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.wa-float.is-visible{ opacity: 1; transform: none; }
.wa-float-btn{
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 10px 20px 10px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), #cf929f);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--glow-gold), 0 0 0 0 rgba(201,164,91,.32);
  animation: wa-pulse 3.2s ease-out infinite;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .45s var(--ease-soft);
}
.wa-float-btn:hover{
  background: linear-gradient(135deg, #e4b5be, var(--rose));
  color: var(--ink);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 0 1px rgba(201,164,91,.55), 0 22px 44px -14px rgba(201,164,91,.9);
  animation-play-state: paused;
}
.wa-float-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  flex-shrink: 0;
}
.wa-float-icon img{
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}
.wa-float-text{
  display: flex;
  flex-direction: column;
  max-width: 220px;
  opacity: 1;
  margin-left: .8rem;
  overflow: hidden;
  white-space: nowrap;
}
.wa-float-title{ font-size: .9rem; font-weight: 700; line-height: 1.25; }
.wa-float-sub{ font-size: .74rem; font-weight: 500; opacity: .9; line-height: 1.25; }
@keyframes wa-pulse{
  0%, 70%, 100%{ box-shadow: var(--glow-gold), 0 0 0 0 rgba(201,164,91,.3); }
  82%{ box-shadow: var(--glow-gold), 0 0 0 12px rgba(201,164,91,0); }
}
@media (prefers-reduced-motion: reduce){
  .wa-float-btn{ animation: none; }
}
@media (max-width: 480px){
  .wa-float-btn{ min-height: 56px; padding: 8px 16px 8px 10px; }
  .wa-float-icon{ width: 36px; height: 36px; }
  .wa-float-sub{ display: none; }
}

/* ---------- Final contrast guard ----------
   WordPress/global styles may be printed after the theme stylesheet. These
   brand-critical colors must remain exact on every dark surface. */
.nav .nav-links a{ color: #F7F3EE !important; }
.nav .nav-cta,
.nav .nav-cta:hover,
.nav .nav-cta:focus{ color: #1F1E1E !important; }
.planes-section .chapter-title,
.planes-section .plan-group-head h3,
.planes-section .plan-name,
.planes-section .plan-name a{ color: #F7F3EE !important; }
.planes-section .packs-desc,
.planes-section .packs-row .pill{ color: #F7F3EE !important; }
.cta-section .contact-head .chapter-title,
.cta-section .cta-lead,
.cta-section .contact-field label,
.cta-section .contact-optional,
.cta-section .contact-card-eyebrow,
.cta-section .contact-card-text{ color: #F7F3EE !important; }
.cta-section .contact-field input,
.cta-section .contact-field textarea{
  color: #1F1E1E !important;
  background: #FFFEFB !important;
}
.footer .footer-col h4,
.footer .footer-col a,
.footer .footer-tagline,
.footer .footer-cta-text,
.footer .footer-legal,
.footer .footer-legal a{ color: #F7F3EE !important; }

/* ---------- Detailed case studies ---------- */
.case-study{ padding-top: var(--nav-h); background: var(--cream); }
.case-container{ max-width: 58rem; }
.case-hero{
  padding-block: clamp(4rem, 9vw, 7rem);
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.case-back{
  display: inline-block;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  color: var(--rose-text);
  font-weight: 700;
  font-size: .88rem;
}
.case-kicker{
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose-text);
  margin-bottom: 1.2rem;
}
.case-hero h1{
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.04;
  max-width: 16ch;
}
.case-client{
  display: grid;
  gap: .15rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-left: 1.2rem;
  border-left: 3px solid var(--rose);
}
.case-client span{
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.case-client strong{ font-size: 1.08rem; }
.case-client small{ color: var(--ink-soft); font-size: .9rem; }
.case-content{ padding-block: clamp(3rem, 7vw, 6rem); }
.case-section{
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.case-section:last-child{ border-bottom: 1px solid var(--line); }
.case-number{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--rose-text);
}
.case-section h2{
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin-bottom: 1.3rem;
}
.case-section p:not(.case-number){
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.case-section p + p{ margin-top: 1rem; }
.case-services{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem 1.5rem;
}
.case-services li{
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.case-services li::before{
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--rose-text);
}
.case-lesson{ padding-block: clamp(4rem, 9vw, 7rem); text-align: center; }
.case-lesson .case-kicker{ color: var(--rose) !important; }
.case-lesson blockquote{
  max-width: 26ch;
  margin: 0 auto 2.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.35;
  color: #F7F3EE;
}
@media (max-width: 600px){
  .case-section{ grid-template-columns: 1fr; gap: .5rem; }
  .case-services{ grid-template-columns: 1fr; }
}

/* ---------- Mobile button consistency ---------- */
@media (max-width: 600px){
  .hero-actions,
  .trabajo-actions,
  .course-footer{ align-items: stretch; }
  .hero-actions .btn,
  .trabajo-actions .btn,
  .contact-card .btn,
  .course-footer .btn,
  .mobile-menu .btn{
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
  .trabajo-actions{ flex-direction: column; }
  .trabajo-actions .btn,
  .trabajo-actions .btn:hover{
    background: var(--rose);
    border-color: transparent;
    color: var(--ink);
  }
}

/* ---------- Misc ---------- */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* ===== INSTAGRAM FEED ===== */

.ig-feed-card{
    width: 100%;
    max-width: 360px;
    margin-left: auto;
}

.ig-feed-embed{
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
}

.ig-feed-embed .sk-instagram-feed{
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
}

.ig-feed-embed iframe{
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
}

@media (max-width: 768px){
    .ig-feed-card,
    .ig-feed-embed,
    .ig-feed-embed .sk-instagram-feed,
    .ig-feed-embed iframe{
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Critical mobile order: keep the offer and CTA above the portrait. */
.hero-kicker{ font-size:.78rem; line-height:1.45; max-width:48ch; text-transform:uppercase; letter-spacing:.06em; color:var(--rose-text); margin-bottom:.8rem; font-weight:600; }

/* ---------- Conversion, accessibility and compact-content pass ---------- */
:focus-visible{ outline:3px solid var(--rose-intense); outline-offset:4px; }
.bg-dark :focus-visible,.nav :focus-visible{ outline-color:var(--gold); }
.trust-strip{ background:var(--paper); border-block:1px solid var(--line); }
.trust-strip-inner{ min-height:112px; display:grid; grid-template-columns:1fr 1fr auto; align-items:center; gap:2rem; }
.trust-strip p{ display:flex; flex-direction:column; }
.trust-strip strong{ font-family:var(--font-accent); }
.trust-strip span{ color:var(--ink-mute); font-size:.84rem; }
.trust-strip a{ color:var(--rose-text); font-weight:700; min-height:44px; display:flex; align-items:center; gap:.4rem; }
.history-toggle,.plan-details-toggle,.testimonial-toggle{ border-bottom:1px solid currentColor; min-height:44px; font-weight:700; color:var(--rose-text); }
.history-toggle{ display:none; margin-top:1.2rem; }
.plan-details-toggle{ display:none; color:var(--gold); margin:-.5rem 0 1.2rem; align-self:flex-start; }
.testimonial-toggle{ display:none; margin-top:.8rem; }
.methodology .section-head{ margin-bottom:clamp(2.5rem,5vw,4rem); }
.method-steps{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; counter-reset:method; }
.method-steps li{ border-top:2px solid var(--rose); padding:1.25rem 1rem; }
.method-steps li>span{ color:var(--rose-text); font-size:.78rem; }
.method-steps strong{ display:block; margin:.6rem 0; font-family:var(--font-accent); line-height:1.3; }
.method-steps p{ color:var(--ink-soft); font-size:.88rem; }
.faq-container{ max-width:900px; }
.faq-list{ border-top:1px solid var(--line); }
.faq-list details{ border-bottom:1px solid var(--line); }
.faq-list summary{ cursor:pointer; list-style:none; min-height:64px; padding:1.2rem 3rem 1.2rem 0; display:flex; align-items:center; position:relative; font-family:var(--font-accent); font-weight:700; }
.faq-list summary::-webkit-details-marker{ display:none; }
.faq-list summary::after{ content:"+"; position:absolute; right:.5rem; font-size:1.5rem; color:var(--rose-text); }
.faq-list details[open] summary::after{ content:"−"; }
.faq-list details p{ padding:0 3rem 1.4rem 0; color:var(--ink-soft); }
.wa-float{ bottom:calc(24px + env(safe-area-inset-bottom)); }

@media (max-width:767px){
  .trust-strip-inner{ min-height:0; grid-template-columns:1fr; gap:.75rem; padding-block:1.25rem; }
  .trust-strip-inner p:nth-child(2){ display:none; }
  .trust-strip a{ width:max-content; }
  [data-history-details],[data-history-extra]{ display:none; }
  .history-is-open [data-history-details],.history-is-open [data-history-extra]{ display:block; }
  .history-toggle{ display:inline-flex; align-items:center; }
  .quote-moment{ padding-block:2.5rem; }
  .quote-moment-text{ font-size:1.35rem; line-height:1.3; }
  .media-carousel-section{ padding-block:1.75rem; }
  .media-carousel{ min-height:150px; max-height:180px; }
  .media-carousel-video{ min-height:180px; }
  .chapter-emphasis{ font-size:1.15rem; line-height:1.35; }
  .stages-row{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:.75rem; margin-top:2rem; padding-bottom:.75rem; scrollbar-width:thin; }
  .stage-card{ flex:0 0:min(74vw,280px); scroll-snap-align:center; aspect-ratio:4/3.4; min-height:220px; }
  .stage-overlay{ opacity:1; }
  .plan-features li:nth-child(n+6){ display:none; }
  .plan-card.features-open .plan-features li{ display:list-item; }
  .plan-details-toggle{ display:inline-flex; align-items:center; }
  .method-steps{ grid-template-columns:1fr; gap:0; }
  .method-steps li{ display:grid; grid-template-columns:2.3rem 1fr; column-gap:.75rem; padding:1rem 0; }
  .method-steps li>span{ grid-row:1/3; }
  .method-steps strong{ margin:0 0 .25rem; }
  .method-steps p{ grid-column:2; }
  .caso-quote[data-testimonial]{ display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
  .caso-quote[data-testimonial].is-open{ display:block; }
  .testimonial-toggle{ display:inline-flex; align-items:center; }
  .wa-float{ right:max(16px,env(safe-area-inset-right)); bottom:calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
  .reveal,.reveal-scale{ opacity:1; transform:none; }
}
@media (max-width:767px){
  .hero{ min-height:auto; padding-top:calc(var(--nav-h) + 1.4rem); }
  .hero-inner{ display:flex; flex-direction:column; gap:1.25rem; }
  .hero-copy{ order:1; padding-top:0; }
  .hero-figure{ order:2; width:100%; max-width:none; max-height:250px; overflow:hidden; margin:0; }
  .hero-figure-frame{ height:250px; aspect-ratio:auto; border-radius:6px 6px 70px 6px; }
  .hero-figure-frame img{ height:250px; object-fit:cover; object-position:center 25%; }
  .hero-actions{ display:grid; grid-template-columns:1fr 1fr; gap:.65rem; }
  .wa-float-btn{ width:52px; min-width:52px; height:52px; min-height:52px; padding:0; justify-content:center; border-radius:50%; }
  .wa-float-icon{ width:36px; height:36px; }
  .wa-float-text{ display:none; }
}

/* Final cross-device contrast guard for every dark canvas. */
.bg-dark h1,.bg-dark h2,.bg-dark h3,.bg-dark h4,
.bg-dark .plan-name,.bg-dark .plan-group-head h3,
.bg-dark .work-models strong,.bg-dark .contact-card-eyebrow,
.bg-dark .contact-card-text,.bg-dark .cta-lead,
.bg-dark .contact-field label,.bg-dark .footer-cta-text,
.bg-dark .footer-tagline,.bg-dark .footer-col h4,
.bg-dark .footer-col a,.bg-dark .footer-legal{
  color:#F7F3EE !important;
}
.bg-dark .chapter-subtitle,.bg-dark .plan-note,
.bg-dark .plan-features li,.bg-dark .packs-desc,
.bg-dark .packs-note,.bg-dark .packs-row .pill span{
  color:rgba(247,243,238,.78) !important;
}
.bg-dark .plan-price,.bg-dark .plan-group-eyebrow,
.bg-dark .work-models span,.bg-dark .packs-row .pill strong,
.bg-dark .plan-details-toggle{
  color:#D8B96F !important;
}
.bg-dark .btn-primary{ color:#1F1E1E !important; }
.bg-dark .btn-ghost{ color:#F7F3EE !important; }

/* ---------- August 2026 content and responsive refinements ---------- */
.hero-title{ font-size:clamp(2.25rem,4.25vw,4.4rem); line-height:1.02; letter-spacing:-.045em; }
.hero-title>span{ display:block; font:inherit; color:inherit; letter-spacing:inherit; white-space:nowrap; }
.hero-title em{ color:var(--rose-intense); font:inherit; }
.hero-sparkle{ left:-7px; bottom:1.5rem; }
.hero-photo-caption{ margin:.75rem auto 0; max-width:42ch; color:var(--ink-mute); font-size:.72rem; line-height:1.45; text-align:center; }
.plan-disclaimer{ max-width:760px; margin:1.5rem auto 0; padding-top:1rem; border-top:1px solid var(--line-on-dark); color:var(--cream-on-dark-soft); font-size:.78rem; text-align:center; }
.reels-plans-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.instagram-showcase{ display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,420px); align-items:center; gap:clamp(2rem,7vw,7rem); }
.instagram-showcase .btn{ margin-top:1.5rem; }
.course-number{ display:block; margin-bottom:.45rem; color:var(--rose-text); font:700 .78rem/1 var(--font-accent); letter-spacing:.1em; text-transform:uppercase; }
.course-outcome{ margin-top:1.25rem; padding-top:1rem; border-top:1px solid var(--line); }
.service-page-hero{ padding-top:calc(var(--nav-h) + 5rem); padding-bottom:4rem; }
.service-page-hero .chapter-subtitle{ max-width:760px; }
.methodology .chapter-subtitle{ max-width:none; white-space:nowrap; }
.cases .chapter-title{ max-width:18ch; }
.cases .chapter-subtitle{ max-width:80ch; }
.contact-card-btn{ color:var(--ink) !important; }

@media (min-width:768px){
  #ayuda .chapter-subtitle{ max-width:none; white-space:nowrap; font-size:clamp(.92rem,1.45vw,1.12rem); }
}
@media (max-width:900px){
  .instagram-desktop{ display:none; }
  .methodology .chapter-subtitle{ white-space:normal; }
}
@media (max-width:767px){
  .hero-title{ font-size:clamp(2rem,10vw,2.85rem); }
  .hero-title>span{ white-space:nowrap; }
  .hero-sparkle{ left:4px; bottom:3.25rem; }
  .hero-figure{ max-height:none; overflow:visible; }
  .hero-figure-frame img{ object-position:center 12%; }
  .hero-photo-caption{ font-size:.68rem; padding-inline:.75rem; }
  .nav-toggle{ background:var(--rose); border-color:var(--ink); }
  .nav-toggle span{ background:var(--ink); }
  .mobile-menu,.mobile-menu a{ color:var(--ink); }
  .plan-details-toggle,.bg-dark .plan-details-toggle{ color:var(--ink) !important; background:var(--rose); border:0; border-radius:999px; padding:.7rem 1rem; }
  .contact-card-btn,.bg-dark .contact-card-btn{ color:var(--ink) !important; }
  .reels-plans-grid{ grid-template-columns:1fr; }
  #ayuda .chapter-subtitle{ font-size:.76rem; white-space:nowrap; letter-spacing:-.025em; }
}
