/* ============================================
   RECONNECT WITH ENGLISH · PAOLA SAIZ
   Estilo basado en la plantilla Coursilo,
   con la paleta y las hojas de la marca
   ============================================ */

:root {
  --main: #34463a;
  --orange: #a9592f;
  --white: #ffffff;
  --body-text: #5a5750;
  --primary: #f6f1e9;
  --secondary: #ebe5da;
  --stroke: #d8d0c3;
  --sage: #e4e3d3;
  --leaf: #8e9a6b;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 30px;
  --radius-pill: 80px;

  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1); /* outQuart */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 170%;
  color: var(--body-text);
  background-color: var(--primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

em {
  font-style: italic;
}

/* Iconos de línea */
svg[viewBox="0 0 16 16"],
svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Layout ===== */

.section-padding {
  padding: 120px 30px;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container.column {
  flex-direction: column;
  align-items: center;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  max-width: 520px;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -0.2px;
  color: var(--main);
}

.section-title em {
  color: var(--orange);
}

.section-title.white {
  color: var(--white);
}

.sub-title {
  font-size: 16px;
  line-height: 170%;
  color: var(--body-text);
}

.sub-title.white-70 {
  color: rgba(255, 255, 255, 0.7);
}

/* Placeholders de imagen hasta tener las fotos definitivas (guardar en img/) */
.ph {
  position: relative;
  background: linear-gradient(160deg, var(--secondary) 0%, var(--stroke) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph > span:first-child {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(26, 69, 60, 0.4);
}

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

/* ===== Animaciones de entrada (equivalentes a Webflow IX2) ===== */

[data-anim] {
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  will-change: opacity, transform;
}

[data-anim="slide"] {
  opacity: 0;
  transform: translate3d(0, 100px, 0);
}

[data-anim="fade"] {
  opacity: 0;
}

[data-anim="grow"] {
  opacity: 0;
  transform: scale(0.75);
  transition-duration: 0.5s;
}

[data-anim="flip"] {
  opacity: 0;
  transform: perspective(1200px) rotateY(-90deg);
  transform-origin: left center;
}

[data-anim].is-in {
  opacity: 1;
  transform: none;
}

/* ===== Botones ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 26px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 170%;
  color: var(--white);
  white-space: nowrap;
  transition: background-color 0.4s ease;
}

.btn-green {
  background-color: var(--main);
}

.btn-orange {
  background-color: var(--orange);
}

.btn-small {
  padding: 8px 20px;
  font-size: 15px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--main);
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-orange .btn-icon {
  color: var(--orange);
}

/* Dos flechas en fila: al hacer hover la primera sale y entra la segunda */
.btn-icon-track {
  display: flex;
  transform: translateX(-34px);
  transition: transform 0.4s var(--ease-out);
}

.btn-icon-track svg {
  width: 34px;
  height: 16px;
  padding: 0 9px;
  flex-shrink: 0;
}

.btn:hover .btn-icon-track {
  transform: translateX(0);
}

/* ===== Header ===== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 30px;
  transition: transform 0.3s ease;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 20px;
  border-radius: var(--radius-pill);
  background-color: var(--white);
  box-shadow: 0 6px 30px rgba(26, 69, 60, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}




.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 24px;
  border-radius: var(--radius-pill);
  background-color: var(--main);
}

.nav-link {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

.nav .btn-small {
  margin-left: 10px;
}

.nav .btn-small {
  gap: 8px;
}

.nav .btn-small:hover {
  background-color: #8f4824;
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--main);
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-btn span:first-child {
  top: 19px;
}

.menu-btn span:last-child {
  top: 27px;
}

.menu-btn[aria-expanded="true"] span:first-child {
  top: 23px;
  transform: rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  top: 23px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* ===== Hero ===== */

.hero {
  padding-top: 200px;
  overflow: hidden;
}

.hero-top {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  margin-bottom: 60px;
}

.avatar-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px 6px 6px;
  border: 1px solid var(--stroke);
  border-radius: 40px;
  font-size: 15px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-color: var(--main);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-stack .avatar + .avatar {
  margin-left: -10px;
}

.avatar-stack .avatar:nth-child(2) {
  background-color: var(--orange);
}

.avatar-stack .avatar:nth-child(3) {
  background-color: #8a7f6c;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 100%;
  letter-spacing: -0.2px;
  color: var(--main);
  max-width: 620px;
}

.hero-title em {
  color: var(--orange);
}

.hero-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 8px 8px 8px 24px;
  border-radius: 40px;
  background-color: var(--white);
  box-shadow: 0 20px 40px rgba(26, 69, 60, 0.08);
}

.hero-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--main);
}

.hero-input::placeholder {
  color: #999;
}

.hero-cards {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: end;
}

.hero-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-col-1,
.hero-col-5 {
  align-self: start;
  margin-top: -110px;
}

.card-photo {
  width: 100%;
}

.card-green {
  background-color: var(--main);
  border-radius: var(--radius);
  color: var(--white);
}

.card-stat {
  height: 225px;
  padding: 40px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 100%;
  color: var(--white);
}

.stat-label {
  font-size: 15px;
  line-height: 160%;
  color: rgba(255, 255, 255, 0.8);
}

.card-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.card-overlay-text {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.card-overlay-text.top {
  top: 0;
  bottom: auto;
  padding: 20px;
}

.card-overlay-title {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 100%;
  color: var(--white);
}

.card-overlay-title.small {
  font-size: 24px;
}

.card-orange {
  position: relative;
  overflow: hidden;
  padding: 110px 20px 20px;
  border-radius: var(--radius);
  background-color: var(--orange);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-orange-icon {
  position: absolute;
  top: 0;
  right: 10px;
  width: 131px;
  height: 150px;
  color: rgba(255, 255, 255, 0.25);
}

.card-orange-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 105%;
  color: var(--white);
}

.card-white-btn {
  position: relative;
  padding: 16px 24px;
  border-radius: 40px;
  background-color: var(--white);
  text-align: center;
  font-weight: 600;
  color: var(--main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-white-btn:hover {
  background-color: var(--main);
  color: var(--white);
}




/* ===== Ticker ===== */

.ticker {
  overflow: hidden;
  padding: 20px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.ticker-list {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-tag {
  padding: 20px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 100%;
  white-space: nowrap;
  color: var(--main);
}

.tag-outline {
  border: 1px solid var(--main);
}

.tag-white {
  background-color: var(--white);
}

.tag-green {
  background-color: var(--main);
  color: var(--white);
}

.tag-orange {
  background-color: var(--orange);
  color: var(--white);
}

/* ===== Clases ===== */

.courses {
  overflow: hidden;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin-bottom: 60px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 30px;
  border-radius: var(--radius);
  background-color: var(--white);
}

.course-image {
  height: 300px;
  border-radius: var(--radius-sm);
}

.course-image > span:first-child,
.course-image img {
  transition: transform 0.5s var(--ease-out);
}

.course-card:hover .course-image > span:first-child,
.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-tag {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--orange);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}



.course-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  color: var(--main);
}




/* ===== Método ===== */

.process {
  padding: 0 30px;
}

.process-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 40px;
  border-radius: var(--radius);
  background-color: var(--main);
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}

.process-inner .section-head {
  margin-bottom: 60px;
}

.process-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
}

.process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 280px;
  text-align: center;
}

.process-item.reverse {
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.process-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  color: var(--white);
}

.process-text p {
  color: rgba(255, 255, 255, 0.7);
}

.process-icon {
  width: 64px;
  height: 64px;
  color: var(--orange);
  stroke-linejoin: round;
}

/* ===== Opiniones ===== */

.testimonials {
  overflow: hidden;
}


.stars {
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 18px;
}

.testimonial-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.testimonial-left {
  width: 15%;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}


.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 100%;
  color: var(--main);
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.slider-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--main);
  color: var(--main);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-arrow svg {
  width: 14px;
  height: 14px;
}

.slider-arrow:hover {
  background-color: var(--main);
  color: var(--white);
}

.testimonial-slider {
  width: 80%;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s var(--ease-out);
}

.testimonial-card {
  flex: 0 0 calc(50% - 15px);
  display: flex;
  flex-direction: column;
}

.testimonial-bubble {
  position: relative;
  padding: 30px;
  border-radius: var(--radius) var(--radius) var(--radius) 0;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 210px;
}

/* Pico del bocadillo */
.testimonial-bubble::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -30px;
  border-left: 30px solid var(--white);
  border-bottom: 30px solid transparent;
}

.testimonial-bubble p {
  color: var(--main);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 0 30px;
}

.testimonial-author .avatar {
  width: 50px;
  height: 50px;
  font-size: 22px;
  border: none;
}

.author-name {
  font-weight: 600;
  color: var(--main);
  line-height: 140%;
}

.author-date {
  font-size: 15px;
  line-height: 140%;
}

/* ===== Sobre mí (bento) ===== */

.about {
  background-color: var(--white);
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  grid-template-rows: auto auto;
  gap: 30px;
  width: 100%;
}

.bento-photo {
  grid-row: span 2;
  min-height: 560px;
  align-items: flex-start;
  padding-top: 40%;
}

.bento-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.95) 75%);
}

.bento-photo-text {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-photo-title {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 100%;
  color: var(--main);
}

.bento-photo-title em {
  color: var(--orange);
}

.bento-stat {
  padding: 50px 30px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 295px;
}

.card-orange-solid {
  background-color: var(--orange);
}

.stat-big {
  font-family: var(--font-serif);
  font-size: 100px;
  line-height: 100%;
  color: var(--white);
}

.bento-split {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background-color: var(--white);
}

.bento-split-left {
  width: 220px;
  flex-shrink: 0;
  padding: 40px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.bento-split-left svg {
  width: 48px;
  height: 48px;
  stroke-linejoin: round;
}

.stat-mid {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 100%;
  color: var(--main);
}

.bento-small {
  font-size: 15px;
}

.bento-split-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 20px;
}

.bento-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 100%;
  color: var(--main);
}

.bento-title em {
  color: var(--orange);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--main);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.bento-text {
  grid-column: span 2;
  padding: 30px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-top: auto;
}

.bento-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-weight: 600;
  color: var(--main);
  line-height: 140%;
}

.feature-text {
  font-size: 15px;
  line-height: 140%;
}

/* ===== CTA ===== */

.cta {
  position: relative;
  overflow: hidden;
  padding: 120px 30px;
}

.cta-photos {
  max-width: 1300px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  align-items: start;
}

.cta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  will-change: transform;
}

.cta-col .ph {
  height: 180px;
}

.cta-col:nth-child(odd) .ph:first-child {
  height: 200px;
}

.cta-content {
  gap: 20px;
  text-align: center;
}

.cta-content .section-title {
  max-width: 520px;
}

.cta-content .sub-title {
  max-width: 420px;
  margin-bottom: 20px;
}

/* ===== FAQs ===== */

.faqs {
  border-top: 1px solid var(--stroke);
}

.faqs-layout {
  justify-content: space-between;
  gap: 60px;
}

.faqs-head {
  position: sticky;
  top: 140px;
  width: 36%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.faq-list {
  width: 58%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: var(--radius);
  background-color: var(--white);
}

.faq-question {
  width: 100%;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 110%;
  color: var(--main);
}

.faq-plus {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary);
  flex-shrink: 0;
  transition: background-color 0.3s ease, transform 0.4s var(--ease-out);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background-color: var(--main);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-plus {
  background-color: var(--orange);
  transform: rotate(45deg);
}

.faq-item.is-open .faq-plus::before,
.faq-item.is-open .faq-plus::after {
  background-color: var(--white);
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease-out);
}

.faq-answer p {
  padding: 0 30px 26px;
}

/* ===== Footer ===== */

.footer {
  position: relative;
  overflow: hidden;
  padding: 120px 30px 0;
  background-color: var(--main);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 100px;
}

.footer-left {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-claim {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 105%;
  color: var(--white);
  margin-bottom: 30px;
}

.footer-touch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
}

.footer-touch svg {
  width: 16px;
  height: 16px;
}

.footer-contact {
  transition: color 0.3s ease;
}

.footer-contact:hover {
  color: var(--white);
}

.footer-label {
  margin-bottom: 16px;
  font-size: 15px;
}

.footer-nav,
.footer-social {
  display: flex;
  flex-direction: column;
}

.footer-nav a {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 130%;
  color: var(--white);
  transition: color 0.3s ease, transform 0.3s var(--ease-out);
}

.footer-nav a:hover {
  color: var(--orange);
  transform: translateX(8px);
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 180%;
  color: var(--white);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.3s var(--ease-out);
}

.footer-social a:hover svg {
  transform: translate(3px, -3px);
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
}

.footer-up:hover {
  color: var(--white);
}

/* Logotipo gigante apilado del pie */
.footer-wordmark {
  display: grid;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 0.42em;
  font-family: var(--font-serif);
  font-size: clamp(64px, 17vw, 250px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: var(--white);
}

.footer-wordmark span {
  grid-area: 1 / 1;
}

.footer-wordmark span:nth-child(1) {
  transform: translateY(-0.36em);
  clip-path: inset(0 0 72% 0);
}

.footer-wordmark span:nth-child(2) {
  transform: translateY(-0.18em);
  clip-path: inset(0 0 60% 0);
}

.footer-wordmark span:nth-child(3) {
  margin-bottom: -0.12em;
}

/* ============================================
   RESPONSIVE
   Tablet: hasta 991px · Móvil: hasta 767px
   ============================================ */

@media (max-width: 1180px) {
  /* Navegación móvil */
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 1300px;
    margin: 10px auto 0;
    padding: 20px;
    border-radius: 24px;
    background-color: var(--main);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .mobile-link {
    padding: 10px 12px;
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 120%;
    color: var(--white);
  }

  .mobile-menu .btn {
    justify-content: center;
    margin-top: 10px;
    padding: 14px 24px;
  }

  .process-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 40px;
  }

  .process-item.reverse {
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  .section-padding {
    padding: 100px 24px;
  }

  .section-title {
    font-size: 40px;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero {
    padding-top: 160px;
  }

  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-col-1,
  .hero-col-5 {
    margin-top: 0;
  }

  .hero-col-4,
  .hero-col-5 {
    display: none;
  }

  .ticker-tag {
    font-size: 40px;
    padding: 16px 28px;
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-inner {
    padding: 100px 30px;
  }

  .process-grid {
    gap: 30px;
  }

  .testimonial-wrap {
    flex-direction: column;
  }

  .testimonial-left {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }


  .testimonial-slider {
    width: 100%;
  }

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

  .bento-photo {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 480px;
  }

  .cta-photos {
    grid-template-columns: repeat(6, 1fr);
  }

  .cta-col:nth-child(n + 7) {
    display: none;
  }

  .faqs-layout {
    flex-direction: column;
  }

  .faqs-head,
  .faq-list {
    position: static;
    width: 100%;
  }

  .footer-top {
    flex-wrap: wrap;
  }

  .footer-left {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 80px 16px;
  }

  .section-head {
    margin-bottom: 50px;
  }

  .section-title {
    font-size: 36px;
  }

  .header {
    padding: 12px 16px;
  }

  .header-inner {
    padding: 6px 6px 6px 14px;
  }


  .hero {
    padding-top: 130px;
  }

  .hero-top {
    gap: 24px;
    margin-bottom: 40px;
  }

  .avatar-tag {
    font-size: 13px;
    line-height: 140%;
    text-align: left;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-form {
    padding-left: 18px;
  }

  .hero-form .btn {
    padding-left: 16px;
    gap: 8px;
    font-size: 14px;
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-col {
    gap: 12px;
  }

  .hero-col-3 {
    grid-column: span 2;
    order: -1;
  }

  .hero-col-1 .card-photo {
    height: 200px !important;
  }

  .hero-col-2 .card-photo {
    height: 100% !important;
    min-height: 380px;
  }

  .card-stat {
    height: auto;
    padding: 24px 16px;
    gap: 12px;
  }

  .stat-number {
    font-size: 40px;
  }

  .stat-label {
    font-size: 13px;
  }

  .card-overlay-text {
    padding: 0 16px 20px;
  }

  .card-orange {
    padding-top: 60px;
  }

  .ticker-tag {
    font-size: 30px;
    padding: 12px 22px;
  }

  .ticker-list {
    gap: 16px;
    padding-right: 16px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .course-image {
    height: 240px;
  }

  .course-title {
    font-size: 28px;
  }

  .process {
    padding: 0 16px;
  }

  .process-inner {
    padding: 80px 20px;
  }

  .process-grid {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .process-item,
  .process-item.reverse {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .testimonial-quote {
    font-size: 20px;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-photo,
  .bento-split,
  .bento-text {
    grid-column: span 1;
  }

  .bento-photo {
    min-height: 420px;
  }

  .bento-stat {
    min-height: 220px;
  }

  .stat-big {
    font-size: 80px;
  }

  .bento-split {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .bento-split-left {
    width: auto;
  }

  .bento-split-right {
    padding: 0 10px 20px;
  }

  .cta {
    padding: 80px 16px;
  }

  .cta-photos {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 40px;
  }

  .cta-col:nth-child(n + 5) {
    display: none;
  }

  .cta-col .ph,
  .cta-col:nth-child(odd) .ph:first-child {
    height: 120px;
  }

  .faq-question {
    padding: 20px;
    font-size: 21px;
  }

  .faq-answer p {
    padding: 0 20px 22px;
  }

  .footer {
    padding: 80px 16px 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 50px;
    padding-bottom: 60px;
  }

  .footer-claim {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .footer-nav a {
    font-size: 34px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================
   MARCA RECONNECT
   ============================================ */

/* ===== Logo ===== */

.logo {
  gap: 6px;
}

.logo-sprig {
  width: 34px;
  height: 34px;
  color: var(--leaf);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 0.9;
  color: var(--main);
}

.logo-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--main);
  padding-left: 2px;
}

/* ===== Hojas decorativas ===== */

.leaf {
  position: absolute;
  z-index: 0;
  width: 140px;
  height: 220px;
  color: var(--leaf);
  pointer-events: none;
  will-change: transform;
}

/* Balanceo suave de la rama */
.leaf use {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: leaf-sway 7s ease-in-out infinite;
}

@keyframes leaf-sway {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.hero,
.testimonials,
.cta,
.courses,
.footer {
  position: relative;
}

.hero > .container,
.hero-cards,
.testimonials > .container,
.cta > .container,
.cta-photos,
.footer > .container {
  position: relative;
  z-index: 1;
}

.leaf-hero-left {
  left: -20px;
  top: 420px;
  rotate: 28deg;
  width: 170px;
  height: 270px;
}

.leaf-hero-right {
  right: -10px;
  top: 150px;
  rotate: -24deg;
  scale: -1 1;
  opacity: 0.8;
}

.leaf-process {
  left: -46px;
  top: -70px;
  z-index: 2;
  rotate: 35deg;
  width: 150px;
  height: 240px;
}

.leaf-testimonials {
  right: -10px;
  top: 120px;
  rotate: -30deg;
  scale: -1 1;
}

.leaf-cta {
  right: 20px;
  bottom: 30px;
  rotate: -12deg;
  scale: -1 1;
  width: 160px;
  height: 250px;
}

.leaf-cta-left {
  left: 10px;
  bottom: 60px;
  rotate: 18deg;
  opacity: 0.7;
}

.leaf-footer {
  right: 4%;
  top: 40px;
  rotate: -20deg;
  scale: -1 1;
  color: rgba(255, 255, 255, 0.12);
  width: 200px;
  height: 310px;
}

/* ===== Textos comunes ===== */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

.section-head.wide {
  max-width: 640px;
}

.footer-claim em {
  color: #e2a47f;
}

.process .section-title em {
  color: #e2a47f;
}

/* ===== Hero ===== */

.hero-top {
  gap: 24px;
  margin-bottom: 70px;
}

.hero-col-1,
.hero-col-5 {
  margin-top: 0;
}

.hero-title {
  max-width: 720px;
}

.hero-description {
  max-width: 560px;
  font-size: 17px;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--main);
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.hero-feature-icon svg {
  width: 20px;
  height: 20px;
}

.card-overlay-icon {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.card-orange-icon {
  width: 120px;
  height: 120px;
  top: -10px;
  right: -10px;
}

.card-words {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 20px;
}

.card-words-text {
  padding-right: 20px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 100%;
  text-align: right;
  color: var(--white);
}

.card-words-leaf {
  width: 120px;
  height: 160px;
  margin: 0 auto -30px 10px;
  color: var(--leaf);
  rotate: 50deg;
}

/* ===== Servicios ===== */

.course-card {
  gap: 14px;
}

.course-badge {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: -46px 0 0 16px;
  border-radius: 50%;
  background-color: var(--white);
  box-shadow: 0 6px 18px rgba(52, 70, 58, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.course-badge svg {
  width: 24px;
  height: 24px;
}

.course-title em {
  color: var(--orange);
}

.course-text {
  flex: 1;
}

.course-card .link-arrow {
  align-self: flex-start;
  color: var(--orange);
  border-bottom: 1px solid currentColor;
}

.course-image > span.course-exams {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 28px;
  line-height: 110%;
  text-align: center;
  color: var(--main);
  transition: transform 0.5s var(--ease-out);
}

.course-exams em {
  color: var(--orange);
}

.course-card:hover .course-exams {
  transform: scale(1.05) rotate(-2deg);
}

.course-card-cta {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  gap: 16px;
  min-height: 420px;
  padding: 40px 30px 30px;
  background-color: var(--main);
}

.leaf-card {
  top: -20px;
  right: -20px;
  rotate: -30deg;
  scale: -1 1;
  color: rgba(255, 255, 255, 0.15);
  width: 180px;
  height: 280px;
}

.course-cta-title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 100%;
  color: var(--white);
}

.course-cta-text {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ===== Cómo trabajamos ===== */

.process {
  position: relative;
  padding-top: 40px;
  overflow-x: clip;
}

.process-inner {
  position: relative;
}

.process-grid {
  max-width: 1200px;
}

.process-item {
  max-width: 250px;
}

.process-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: #e2a47f;
}

.process-title {
  font-size: 30px;
}

.process-footer {
  margin-top: 70px;
}

/* ===== Experiencias ===== */

.quote-leaf {
  width: 46px;
  height: 46px;
  color: var(--leaf);
}

.testimonial-bubble {
  min-height: 230px;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  padding-left: 30px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background-color: var(--stroke);
  transition: width 0.4s var(--ease-out), background-color 0.3s ease;
}

.slider-dot.is-active {
  width: 24px;
  background-color: var(--main);
}

/* ===== Sobre mí ===== */

.bento-split-left svg {
  color: var(--orange);
}

/* ===== CTA ===== */

.cta {
  background-color: var(--sage);
}

.cta .sub-title {
  color: var(--body-text);
}

.cta .eyebrow {
  margin-bottom: -4px;
}

/* ===== Footer ===== */

.footer-left .footer-contact {
  display: block;
}

.footer-wordmark {
  font-size: clamp(56px, 15vw, 220px);
}

/* ===== Responsive de la marca ===== */

@media (max-width: 991px) {
  .leaf-hero-right,
  .leaf-cta-left {
    display: none;
  }

  .leaf-hero-left {
    top: auto;
    bottom: 40px;
  }
}

@media (max-width: 767px) {
  .leaf {
    width: 90px;
    height: 140px;
  }

  .leaf-hero-left {
    left: -30px;
    bottom: auto;
    top: 90px;
    opacity: 0.6;
  }

  .leaf-process {
    left: -26px;
    top: -40px;
  }

  .leaf-testimonials {
    top: 40px;
    right: -30px;
    opacity: 0.7;
  }

  .leaf-cta {
    right: -20px;
    bottom: 10px;
  }

  .logo-name {
    font-size: 22px;
  }

  .logo-sub {
    font-size: 8px;
    letter-spacing: 2.1px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-top .btn {
    white-space: normal;
    text-align: left;
    font-size: 15px;
    line-height: 140%;
    padding-left: 22px;
  }

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .course-card-cta {
    min-height: 320px;
  }

  .course-cta-title {
    font-size: 38px;
  }

  .process-footer .btn,
  .cta .btn {
    white-space: normal;
    text-align: left;
    line-height: 140%;
    font-size: 15px;
    padding-left: 22px;
  }

  .slider-dots {
    padding-left: 0;
    justify-content: center;
  }
}

/* Tarjeta con texto arriba: degradado invertido para que se lea */
.card-overlay:has(.card-overlay-text.top)::after {
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 60%);
}

/* ============================================
   FOTOS
   ============================================ */

/* Collage 2x2 recortado en 4 piezas para el mosaico del CTA */
/* La imagen completa (3:2) se escala para que un cuadrante cubra la casilla
   sin deformarse; se centra en horizontal y se oculta la línea blanca entre fotos */
.ph > img.mosaic-inner {
  right: auto;
  bottom: auto;
  width: auto;
  height: 212%;
  aspect-ratio: 1536 / 1024;
  max-width: none;
  left: 50%;
  object-fit: fill;
}

.ph > img.mosaic-inner.q-tl { top: -2%;   transform: translateX(-25%); }
.ph > img.mosaic-inner.q-tr { top: -2%;   transform: translateX(-75%); }
.ph > img.mosaic-inner.q-bl { top: -110%; transform: translateX(-25%); }
.ph > img.mosaic-inner.q-br { top: -110%; transform: translateX(-75%); }

/* ===== CTA: tarjeta con atardecer ===== */

.cta-card {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 16px;
  background-color: var(--primary);
  box-shadow: 0 30px 60px rgba(52, 70, 58, 0.12);
  overflow: hidden;
}

.cta-card-image {
  position: relative;
  min-height: 380px;
  /* Borde de papel rasgado */
  clip-path: polygon(0 0, 100% 0, 96% 8%, 99% 16%, 94% 25%, 98% 34%, 93% 43%, 97% 52%, 92% 61%, 96% 70%, 91% 79%, 95% 88%, 90% 100%, 0 100%);
}

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

.cta-card .cta-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 60px 60px 60px 30px;
  text-align: left;
}

.cta-card .section-title {
  max-width: 440px;
}

.cta-card .sub-title {
  max-width: 400px;
  margin-bottom: 10px;
}

.leaf-cta {
  z-index: 2;
}

/* ===== Sobre mí: foto de Paola ===== */

.bento-photo {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 50px 30px 30px;
  border-radius: var(--radius);
  background-color: var(--sage);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.bento-photo::after {
  display: none;
}

.paola-photo {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 16px 40px rgba(52, 70, 58, 0.15);
  overflow: hidden;
  flex-shrink: 0;
}

.paola-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}

.bento-photo .bento-photo-text {
  position: relative;
  z-index: 1;
  padding: 30px 0 0;
  align-items: center;
}

.leaf-photo {
  right: -30px;
  bottom: -40px;
  rotate: -25deg;
  scale: -1 1;
  opacity: 0.6;
}

@media (max-width: 767px) {
  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-card-image {
    min-height: 220px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 88% 96%, 76% 91%, 63% 97%, 50% 92%, 37% 98%, 24% 92%, 12% 97%, 0 91%);
  }

  .cta-card .cta-content {
    padding: 30px 24px 36px;
  }

  .paola-photo {
    width: 180px;
    height: 180px;
  }
}

/* ============================================
   RAMAS (imágenes con fondo transparente)
   Orientación: rotate/scale · balanceo: transform · parallax: translate (JS)
   ============================================ */

img.leaf {
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  rotate: 0deg;
  transform-origin: 15% 95%;
  animation: leaf-sway 7s ease-in-out infinite;
}

img.leaf-hero-left {
  width: 200px;
  left: -40px;
}

img.leaf-hero-right {
  width: 160px;
  right: -30px;
  animation-delay: -2s;
}

img.leaf-process {
  width: 170px;
  left: -60px;
  top: -90px;
  rotate: -10deg;
  animation-delay: -4s;
}

img.leaf-testimonials {
  width: 170px;
  right: -40px;
  animation-delay: -1s;
}

img.leaf-cta {
  width: 200px;
  right: 0;
  bottom: 10px;
  animation-delay: -3s;
}

img.leaf-cta-left {
  width: 150px;
  rotate: 0deg;
  animation-delay: -5s;
}

img.leaf-photo {
  width: 140px;
  right: -40px;
  bottom: -50px;
  rotate: 0deg;
}

/* Sobre fondo verde: silueta blanca translúcida */
img.leaf-footer,
img.leaf-card {
  filter: brightness(0) invert(1);
  opacity: 0.14;
  rotate: 0deg;
}

img.leaf-footer {
  width: 220px;
  right: -50px;
  top: 10px;
}

img.leaf-card {
  width: 190px;
  top: -30px;
  right: -40px;
}

.card-words-leaf {
  width: 120px;
  height: auto;
  margin: 6px auto -20px 10px;
  rotate: 10deg;
}

.quote-leaf {
  width: 44px;
  height: 66px;
  object-fit: contain;
}

@media (max-width: 767px) {
  img.leaf {
    width: 110px;
    height: auto;
  }

  img.leaf-hero-left {
    left: -40px;
  }

  img.leaf-process {
    left: -40px;
    top: -50px;
  }
}

/* Experiencias sin bloque lateral: el slider ocupa todo el ancho
   (3 tarjetas en escritorio, 2 en tablet, 1 en móvil) */
.testimonial-slider {
  width: 100%;
}

.testimonial-card {
  flex: 0 0 calc((100% - 60px) / 3);
}

@media (max-width: 1180px) {
  .testimonial-card {
    flex-basis: calc(50% - 15px);
  }
}

@media (max-width: 767px) {
  .testimonial-card {
    flex-basis: 100%;
  }
}

/* ============================================
   RAMAS PEGADAS AL BORDE DE LA PANTALLA
   --bx/--by: base del tallo dentro de la imagen (0-1). Es el pivote de la
   rotación, el espejo y el balanceo, y se coloca 8px fuera del borde.
   ============================================ */

img.leaf {
  --w: 200px;
  --bx: 0.07;
  --by: 0.958;
  --out: 8px;
  width: var(--w);
  transform-origin: calc(var(--bx) * 100%) calc(var(--by) * 100%);
}

img.leaf[src$="leaf-2.webp"] { --bx: 0.078; --by: 0.943; }
img.leaf[src$="leaf-3.webp"] { --bx: 0.105; --by: 0.958; }
img.leaf[src$="leaf-4.webp"] { --bx: 0.184; --by: 0.88; }
img.leaf[src$="leaf-5.webp"] { --bx: 0.109; --by: 0.964; }

/* Salen del borde izquierdo, inclinadas hacia dentro */
img.leaf-hero-left,
img.leaf-process,
img.leaf-cta-left {
  left: calc(-1 * var(--out) - var(--bx) * var(--w));
  right: auto;
  rotate: 18deg;
}

/* Salen del borde derecho (espejadas sobre la base del tallo) */
img.leaf-hero-right,
img.leaf-testimonials,
img.leaf-cta,
img.leaf-footer,
img.leaf-card,
img.leaf-photo {
  right: calc(-1 * var(--out) - (1 - var(--bx)) * var(--w));
  left: auto;
  scale: -1 1;
  rotate: -18deg;
}

img.leaf-hero-left { --w: 230px; }
img.leaf-hero-right { --w: 190px; }
img.leaf-testimonials { --w: 200px; }
img.leaf-cta { --w: 220px; bottom: 20px; }
img.leaf-cta-left { --w: 180px; }
img.leaf-footer { --w: 260px; top: 20px; }
img.leaf-card { --w: 210px; top: -20px; }
img.leaf-photo { --w: 160px; bottom: -30px; }

/* Cómo trabajamos: la rama sale del borde de la pantalla y pasa por delante del bloque verde */
.process {
  position: relative;
}

img.leaf-process {
  --w: 210px;
  top: -10px;
  z-index: 3;
}

/* Tarjeta verde del hero: la rama sale del borde inferior izquierdo de la tarjeta */
.card-words {
  position: relative;
  min-height: 250px;
}

.card-words-leaf {
  position: absolute;
  left: -14px;
  bottom: -10px;
  width: 140px;
  margin: 0;
  rotate: 20deg;
  transform-origin: 8% 96%;
}

@media (max-width: 767px) {
  img.leaf {
    --w: 130px;
    width: var(--w);
  }

  img.leaf-process {
    --w: 140px;
    top: -10px;
  }
}

@media (max-width: 767px) {
  img.leaf-hero-left {
    --w: 110px;
    top: 70px;
    opacity: 0.45;
  }
}

/* ============================================
   FOOTER: LEGAL Y CRÉDITO
   ============================================ */

.footer-legal a {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 200%;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom {
  align-items: center;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-credit span {
  font-family: 'Funnel Display', var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.footer-credit:hover,
.footer-credit:hover span {
  color: #e2a47f;
}

.footer-ai {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 0 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  .footer-bottom {
    align-items: flex-start;
  }
}

/* ============================================
   PÁGINAS LEGALES
   ============================================ */

.legal {
  position: relative;
  overflow: hidden;
  padding: 190px 30px 120px;
}

.legal-wrap {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 56px;
}

.legal-tabs::-webkit-scrollbar {
  display: none;
}

.legal-tabs a {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
  font-size: 15px;
  font-weight: 500;
  color: var(--main);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.legal-tabs a:hover {
  border-color: var(--main);
}

.legal-tabs a[aria-current="page"] {
  background-color: var(--main);
  border-color: var(--main);
  color: var(--white);
}

.legal h1 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 100%;
  color: var(--main);
}

.legal h1 em {
  color: var(--orange);
}

.legal-updated {
  margin-top: 16px;
  font-size: 15px;
}

.legal-body {
  margin-top: 56px;
}

.legal-body h2 {
  margin: 52px 0 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 110%;
  color: var(--main);
}

.legal-body > :first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  line-height: 1.7;
}

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

.legal-body ul {
  list-style: disc;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.legal-body li::marker {
  color: var(--orange);
}

.legal-body strong {
  font-weight: 600;
  color: var(--main);
}

.legal-body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-data {
  border-bottom: 1px solid var(--stroke);
}

.legal-data div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--stroke);
}

.legal-data dd {
  text-align: right;
  color: var(--main);
}

.legal-data dd a {
  color: var(--main);
}

img.leaf-legal {
  --w: 220px;
  top: 220px;
  right: calc(-1 * var(--out) - (1 - var(--bx)) * var(--w));
  left: auto;
  scale: -1 1;
  rotate: -18deg;
}

@media (max-width: 767px) {
  .legal {
    padding: 140px 16px 80px;
  }

  .legal h1 {
    font-size: 40px;
  }

  .legal-body h2 {
    font-size: 28px;
  }

  .legal-data div {
    flex-direction: column;
    gap: 2px;
  }

  .legal-data dd {
    text-align: left;
  }

  img.leaf-legal {
    --w: 120px;
    top: 250px;
    opacity: 0.5;
  }
}
