/* ============================================================
   JAVIFINANCE — style.css
   Metodología: BEM + Custom Properties (variables de marca)
   Enfoque: Mobile-first, semántico, optimizado para SEO
   ============================================================ */

/* ── 1. TOKENS DE MARCA (Design Tokens) ── */
:root {
  /* Paleta */
  --color-bg: #F7F4EF;
  --color-dark: #1C1917;
  --color-gold: #8C7549;
  --color-gold-light: #B8995E;
  --color-sand: #D9CDBF;
  --color-stone: #BFB4AA;
  --color-white: #ffffff;
  --color-muted: #6B6460;
  --color-green: #3D7A5A;
  --color-green-lt: #4E9970;
  --color-red: #9B3A3A;

  /* Tipografía */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'Montserrat', sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  /* Bordes */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Sombras */
  --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 25px rgba(140, 117, 73, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);

  /* Transiciones */
  --transition: 0.3s ease;
}

/* ── 2. RESET & BASE ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ── 3. NAVEGACIÓN (BEM: .nav) ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 117, 73, 0.15);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-dark);
  text-decoration: none;
}

.nav__logo-accent {
  color: var(--color-gold-light);
}

/* Lista de links — menú desplegable en mobile */
.nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  gap: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 117, 73, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0 1.2rem;
  border-radius: 0 0 16px 16px;
  /* Hidden state */
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              visibility 0s linear 0.3s;
}

.nav__link {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--color-gold);
}

/* Flags + hamburger wrapper */
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__flags {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__flag-btn {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 5px;
  padding: 2px;
  cursor: pointer;
  line-height: 0;
  opacity: 0.35;
  transition: opacity var(--transition), border-color var(--transition);
}

.nav__flag-img {
  width: 26px;
  height: auto;
  display: block;
  border-radius: 3px;
}

.nav__flag-btn--active {
  opacity: 1;
  border-color: rgba(26, 26, 26, 0.2);
}

.nav__flag-btn:not(.nav__flag-btn--active):hover {
  opacity: 0.65;
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.nav__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil — estado abierto */
.nav__links--open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              visibility 0s linear 0s;
}

.nav__links--open .nav__link {
  display: block;
  width: 100%;
  padding: 0.75rem 5%;
  text-align: center;
}


/* ── 4. HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 6rem 5% 0;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.hero__text {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero__title em {
  font-style: italic;
  color: var(--color-gold-light);
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

/* Imagen */
.hero__image-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 70vw;
  max-height: 420px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.5s;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(170deg, var(--color-stone) 0%, var(--color-sand) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Badge de estadística */
.hero__stat-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
}

.hero__stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-gold-light);
  display: block;
}

.hero__stat-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-stone);
}

/* ── 5. SECCIONES BASE ── */
.section {
  padding: 4rem 5%;
}

.section__label {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

.section__title em {
  font-style: italic;
  color: var(--color-gold-light);
}

/* ── 6. ABOUT ── */
.about {
  background: var(--color-white);
  overflow: hidden;
}

/* 3-column layout: screenshot | text | screenshot */
.about__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about__content {
  text-align: center;
  order: 1;
}

/* Gold accent on "dinero" — scoped to about only */
.about .section__title em {
  font-style: normal;
  color: var(--color-gold-light);
}

/* "Hoy." — block, italic, gold, slightly smaller */
.about__title-hoy {
  display: block;
  font-style: italic;
  color: var(--color-gold-light);
  font-size: 0.85em;
}

.about__text {
  color: var(--color-muted);
  font-weight: 300;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about__credentials {
  display: inline-flex;
  flex-direction: column;
  text-align: left;
  margin: 1.5rem auto;
  gap: 0.8rem;
}

.about__credential {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.about__credential::before {
  content: '✦';
  color: var(--color-gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Stats widget */
.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2rem;
  margin: 2rem auto 2rem;
  max-width: 360px;
  padding: 1.5rem;
  border-top: 1px solid var(--color-sand);
  border-bottom: 1px solid var(--color-sand);
}

.about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.about__stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-gold-light);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  line-height: 1.35;
}

/* Screenshots */
.about__screenshot {
  display: none;
}

/* Mobile: show both images side by side below the content */
@media (max-width: 959px) {
  .about__layout {
    grid-template-columns: 1fr 1fr;
  }

  .about__content {
    grid-column: 1 / -1;
    order: 1;
  }

  .about__screenshot {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .about__screenshot--left {
    order: 2;
  }

  .about__screenshot--right {
    order: 3;
  }

  .about__screenshot img {
    max-width: 100%;
  }
}

.about__screenshot img {
  width: 100%;
  max-width: 220px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.13);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
  margin: 0 auto;
}

.about__screenshot--left img {
  transform: rotate(-3deg);
}

.about__screenshot--right img {
  transform: rotate(3deg);
}

.about__screenshot img:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
}

/* Desktop: 3-column layout */
@media (min-width: 960px) {
  .about__layout {
    grid-template-columns: 200px 1fr 200px;
    gap: 3rem;
  }

  .about__screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .about__screenshot--left {
    order: 0;
  }

  .about__content {
    order: 1;
  }

  .about__screenshot--right {
    order: 2;
  }

  .about__stats {
    max-width: 400px;
  }
}

@media (min-width: 1100px) {
  .about__layout {
    grid-template-columns: 240px 1fr 240px;
  }

  .about__screenshot img {
    max-width: 240px;
  }

  .about__stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
    gap: 0;
  }

  .about__stat {
    align-items: flex-start;
    border-right: 1px solid var(--color-sand);
    padding: 0 1.5rem;
  }

  .about__stat:first-child {
    padding-left: 0;
  }

  .about__stat:last-child {
    border-right: none;
    padding-right: 0;
  }

  .about__stat-num {
    font-size: 2.5rem;
  }

  .about__stat-label {
    text-align: left;
  }
}

/* ── 7. SERVICIOS ── */
.services {
  background: var(--color-bg);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Tarjeta de servicio */
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::after {
  width: 100%;
}

.service-card__icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: block;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.service-card__desc {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 1.8rem;
}

/* ── 8. RECURSOS ── */
.resources {
  background: #F0EBE1;
}

.resources__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.resources__header .section__title {
  margin-bottom: .75rem;
}

/* Badge superior "Gratis para ti" */
.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-white);
  border: 1px solid rgba(140, 117, 73, 0.25);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.resources__lead {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: .9rem;
}

/* Trust pills */
.trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.trust-pill i {
  font-size: 13px;
  color: var(--color-gold);
}

.trust-sep {
  color: var(--color-sand);
  font-size: 0.875rem;
}

.resources__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Tarjeta de recurso */
.resource-card {
  background: var(--color-white);
  border: 1px solid rgba(140, 117, 73, 0.1);
  border-radius: 10px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(26, 26, 26, 0.07);
  border-color: rgba(140, 117, 73, 0.25);
}

/* Badges contextuales */
.resource-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.resource-card__badge--sand  { background: #EDE3D6; color: #7A6040; }
.resource-card__badge--stone { background: #E8E2DA; color: #5E5248; }
.resource-card__badge--dark  { background: #2E2820; color: #C4A96A; }

/* Icono */
.resource-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sand) 0%, #FAF6EC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.75rem auto .9rem;
  color: var(--color-gold);
  font-size: 22px;
  flex-shrink: 0;
}

.resource-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: .35rem;
  line-height: 1.25;
}

.resource-card__desc {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 300;
  text-align: center;
  line-height: 1.55;
  margin-bottom: .9rem;
}

/* Preview data */
.resource-card__preview {
  background: #F7F4EF;
  border-radius: 7px;
  padding: 9px 12px;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
}

.resource-card__preview-left .preview-label {
  font-size: 0.6rem;
  color: #9E9187;
  letter-spacing: .4px;
  margin-bottom: 1px;
}

.preview-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: -.3px;
}

.resource-card__preview-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.preview-tag {
  font-size: 0.6rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.preview-dot--black { background: var(--color-dark); }
.preview-dot--gold  { background: var(--color-gold); }
.preview-dot--red   { background: var(--color-red); }

/* Hint */
.resource-card__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #9E9187;
  margin-bottom: .9rem;
  justify-content: center;
}

.resource-card__hint i {
  font-size: 12px;
  color: var(--color-gold);
}

/* CTA */
.resource-card__cta {
  display: block;
  background: var(--color-dark);
  color: #F7F4EF;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background var(--transition);
  margin-top: auto;
}

.resource-card:hover .resource-card__cta {
  background: var(--color-gold);
}

/* Animaciones preview */
@keyframes previewCountUp {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes previewBarGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes previewLineIn {
  from { stroke-dashoffset: 120; }
  to   { stroke-dashoffset: 0; }
}

@keyframes previewDotPop {
  0%   { r: 0; }
  80%  { r: 4; }
  100% { r: 3; }
}

@keyframes previewTagIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes previewDotPing {
  0%, 40%, 100% { transform: scale(1); opacity: 1; }
  20%            { transform: scale(2.4); opacity: 0; }
}

@keyframes previewRipplePulse {
  0%   { r: 3; opacity: .75; }
  100% { r: 12; opacity: 0; }
}

@keyframes previewBarBreathe {
  0%, 100% { transform: scaleY(1); }
  50%       { transform: scaleY(1.09); }
}

.preview-bar-anim {
  transform-origin: bottom;
}

.preview-line-anim {
  stroke-dasharray: 120;
}

.preview-dot-anim {}

/* Animaciones de preview disparadas por scroll reveal */
.reveal--visible .preview-value {
  animation: previewCountUp .55s ease .3s both;
}

.reveal--visible .preview-line-anim {
  animation: previewLineIn .7s ease .35s both;
}

.reveal--visible .preview-dot-anim {
  animation: previewDotPop .4s ease .95s both;
}

/* — Card 1: entrada de tags — */
.reveal--visible .preview-tag:nth-child(1) {
  animation: previewTagIn .4s ease .35s both;
}
.reveal--visible .preview-tag:nth-child(2) {
  animation: previewTagIn .4s ease .45s both;
}
.reveal--visible .preview-tag:nth-child(3) {
  animation: previewTagIn .4s ease .55s both;
}

/* — Card 1: ping secuencial en los dots de color — */
.reveal--visible .preview-tag:nth-child(1) .preview-dot {
  will-change: transform;
  animation: previewDotPing 3s ease-in-out 1.5s infinite;
}
.reveal--visible .preview-tag:nth-child(2) .preview-dot {
  will-change: transform;
  animation: previewDotPing 3s ease-in-out 2.0s infinite;
}
.reveal--visible .preview-tag:nth-child(3) .preview-dot {
  will-change: transform;
  animation: previewDotPing 3s ease-in-out 2.5s infinite;
}

/* — Card 2: ripple en el endpoint del line chart — */
.reveal--visible .preview-ripple {
  animation: previewRipplePulse 2s ease-out 1.3s infinite;
}

/* — Card 3: entrada escalonada + breathe por barra — */
.reveal--visible .preview-bar-anim:nth-child(1) {
  will-change: transform;
  animation: previewBarGrow .5s ease .30s both,
             previewBarBreathe 2.8s ease-in-out 1.2s infinite;
}
.reveal--visible .preview-bar-anim:nth-child(2) {
  will-change: transform;
  animation: previewBarGrow .5s ease .40s both,
             previewBarBreathe 2.8s ease-in-out 1.4s infinite;
}
.reveal--visible .preview-bar-anim:nth-child(3) {
  will-change: transform;
  animation: previewBarGrow .5s ease .50s both,
             previewBarBreathe 2.8s ease-in-out 1.6s infinite;
}
.reveal--visible .preview-bar-anim:nth-child(4) {
  will-change: transform;
  animation: previewBarGrow .5s ease .60s both,
             previewBarBreathe 2.8s ease-in-out 1.8s infinite;
}
.reveal--visible .preview-bar-anim:nth-child(5) {
  will-change: transform;
  animation: previewBarGrow .5s ease .70s both,
             previewBarBreathe 2.8s ease-in-out 2.0s infinite;
}


/* ── 9. TESTIMONIOS ── */
.testimonials {
  background: var(--color-white);
}

/* Header centrado */
.testimonials__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.testimonials__header .section__title {
  margin-bottom: 0.75rem;
}

.testimonials__subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* Grid de tarjetas */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 680px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjeta de testimonio */
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid rgba(140, 117, 73, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

/* Comillas decorativas */
.testimonial-card__deco {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(140, 117, 73, 0.15);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
  user-select: none;
  pointer-events: none;
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex: 1;
}

/* Autor */
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

/* Avatar wrapper con badge de check */
.testimonial-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.testimonial-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Avatar colors per person */
.testimonial-card__avatar--m {
  background: linear-gradient(135deg, #7A6B54 0%, #BFB4AA 100%);
}

.testimonial-card__avatar--c {
  background: linear-gradient(135deg, #4A6B5C 0%, #7BA898 100%);
}

.testimonial-card__avatar--l {
  background: linear-gradient(135deg, #8C7549 0%, #D4B88A 100%);
}

/* Avatar con foto real */
.testimonial-card__avatar--photo {
  object-fit: cover;
  object-position: center top;
  background: var(--color-sand);
}

/* Check badge */
.testimonial-card__check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  font-style: normal;
  display: block;
  margin-bottom: 0.15rem;
}

.testimonial-card__detail {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 300;
}

/* ── 10. CTA STRIP ── */
.cta-strip {
  background: var(--color-gold);
  padding: 4rem 5%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.cta-strip__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  color: var(--color-white);
  max-width: 500px;
}

/* ── 11. FOOTER ── */
.footer {
  background: var(--color-dark);
  color: var(--color-stone);
  padding: 3rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-white);
}

.footer__logo-accent {
  color: #B8995E;
}

.footer__copy {
  font-size: 0.8rem;
}

.footer__linkedin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-stone);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

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

.footer__linkedin-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── 12. COMPONENTES COMPARTIDOS (Botones, Animaciones) ── */

/* Botón principal oscuro */
.btn-primary {
  display: inline-block;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 14px 32px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
}

.btn-primary:hover {
  background: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Botón dorado (CTA destacado) */
.btn-gold {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 14px 32px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
}

.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Botón fantasma (enlace subrayado) */
.btn-ghost {
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 2px;
  transition: opacity var(--transition);
}

.btn-ghost:hover {
  opacity: 0.7;
}

/* Botón blanco (sobre fondo gold) */
.btn-white {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-gold);
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.btn-white:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ── 13. SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 14. KEYFRAMES ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--color-white);
  padding: 5rem 5%;
  border-top: 1px solid var(--color-sand);
}

.newsletter__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Left: copy */
.newsletter__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.newsletter__subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* Social proof row */
.newsletter__proof {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.newsletter__proof-avatars {
  display: flex;
}

.newsletter__proof-avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-stone);
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-white);
  margin-left: -8px;
}

.newsletter__proof-avatars span:first-child {
  margin-left: 0;
}

.newsletter__proof-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--color-white);
  margin-left: -8px;
  display: block;
}

.newsletter__proof-avatars img:first-child {
  margin-left: 0;
}

.newsletter__proof-text {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Right: form box */
.newsletter__form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-sand);
  border-radius: 10px;
  padding: 2rem;
  min-height: 160px;
  display: flex;
  align-items: stretch;
}

.newsletter__form-box {
  width: 100%;
}

.newsletter__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.newsletter__row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.newsletter__input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--color-sand);
  border-radius: 4px;
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-width: 0;
  /* prevents overflow in flex */
}

.newsletter__input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(140, 117, 73, 0.12);
}

.newsletter__input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.newsletter__btn {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 11px 20px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.newsletter__btn:hover:not(:disabled) {
  background: var(--color-gold);
  transform: translateY(-1px);
}

.newsletter__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter__disclaimer {
  font-size: 0.75rem;
  color: var(--color-stone);
}

.newsletter__error {
  font-size: 0.78rem;
  color: #B91C1C;
  margin-top: 0.5rem;
  min-height: 1em;
}

/* Shared state styles */
.newsletter__state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 0;
}

.newsletter__state-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.newsletter__state strong {
  font-size: 1rem;
  color: var(--color-dark);
}

.newsletter__state span {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 300;
}

.newsletter__state--loading {
  gap: 0.8rem;
  flex-direction: row;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.newsletter__state--success .newsletter__state-icon {
  color: var(--color-green);
}

.newsletter__state--error .newsletter__state-icon {
  color: #B91C1C;
}

/* Loading spinner */
.newsletter__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-sand);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.newsletter__retry {
  margin-top: 0.5rem;
  background: none;
  border: 1px solid var(--color-stone);
  border-radius: 4px;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.newsletter__retry:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── Newsletter — mobile fix ── */
@media (max-width: 560px) {
  .newsletter__form-wrap {
    padding: 1.5rem;
  }

  .newsletter__row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter__btn {
    width: 100%;
    text-align: center;
  }
}

/* ── 15. RESPONSIVE — Tablet (≥ 640px) ── */
@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .cta-strip {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 5rem 6%;
  }
}

/* ── MOBILE HERO (< 768px) ── */
@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 6rem 5% 0;
    gap: 2rem;
  }

  .hero::before {
    display: none;
  }

  .hero__text {
    padding-top: 0;
  }

  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero__image-wrap {
    height: auto;
    max-height: none;
    padding-top: 0;
    align-items: stretch;
  }

  .hero__photo {
    width: 100%;
    max-width: 100%;
    height: 90vw;
    max-height: 480px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: var(--radius-lg);
  }

  .hero__photo-placeholder {
    height: 90vw;
    max-height: 480px;
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .hero__stat-badge {
    left: auto;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md) 0 0 0;
    padding: 0.8rem 1.2rem;
  }

  .hero__stat-number {
    font-size: 1.7rem;
  }
}

/* ── SERVICES SPLIT LAYOUT ── */
.services__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.services__split-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.services__split-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.6s ease;
}

.services__split:hover .services__split-photo {
  transform: scale(1.02);
}

/* Card variant — no standalone border/radius, inherits split container */
.service-card--split {
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--color-sand);
}

/* Desktop: two columns side by side */
@media (min-width: 768px) {
  .services__split {
    grid-template-columns: 1fr 1fr;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .services__split-image {
    aspect-ratio: auto;
    min-height: 380px;
  }

  .service-card--split {
    border-top: none;
    border-left: 1px solid var(--color-sand);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
  }
}

/* resource-card flex/number now defined in the main block above */

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--color-white);
  padding: 5rem 5%;
  border-top: 1px solid var(--color-sand);
}

.newsletter__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.newsletter__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.newsletter__subtitle {
  font-size: 0.95rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.newsletter__proof {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.newsletter__proof-avatars {
  display: flex;
}

.newsletter__proof-avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-stone);
  border: 2px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-white);
  margin-left: -8px;
}

.newsletter__proof-avatars span:first-child {
  margin-left: 0;
}

.newsletter__proof-text {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.newsletter__form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-sand);
  border-radius: 10px;
  padding: 2rem;
  min-height: 160px;
  display: flex;
  align-items: stretch;
}

.newsletter__form-box {
  width: 100%;
}

.newsletter__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
}

.newsletter__row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.newsletter__input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--color-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-width: 0;
}

.newsletter__input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(140, 117, 73, 0.12);
}

.newsletter__input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.newsletter__btn {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 11px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.newsletter__btn:hover:not(:disabled) {
  background: var(--color-gold);
  transform: translateY(-1px);
}

.newsletter__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter__disclaimer {
  font-size: 0.75rem;
  color: var(--color-stone);
}

.newsletter__error {
  font-size: 0.78rem;
  color: #B91C1C;
  margin-top: 0.5rem;
  min-height: 1em;
}

.newsletter__state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 0;
}

.newsletter__state-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.newsletter__state strong {
  font-size: 1rem;
  color: var(--color-dark);
}

.newsletter__state span {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 300;
}

.newsletter__state--loading {
  gap: 0.8rem;
  flex-direction: row;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.newsletter__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-sand);
  border-top-color: var(--color-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.newsletter__retry {
  margin-top: 0.5rem;
  background: none;
  border: 1px solid var(--color-stone);
  border-radius: var(--radius-md);
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.newsletter__retry:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── 16. RESPONSIVE — Desktop (≥ 1024px) ── */
@media (min-width: 1024px) {
  .nav {
    padding: 1.2rem 6%;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__links {
    /* Reset mobile dropdown styles */
    position: static;
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: none;
  }

  /* On desktop: logo left, links + flags right */
  .nav {
    justify-content: flex-start;
    gap: 2rem;
  }

  .nav__logo {
    margin-right: auto;
  }

  /* Newsletter — two columns on desktop */
  .newsletter {
    padding: 5rem 6%;
  }

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

  /* Newsletter — two columns on desktop */
  .newsletter {
    padding: 5rem 6%;
  }

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

  /* Hero de dos columnas */
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 6%;
    gap: 4rem;
    min-height: 100vh;
  }

  .hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-sand) 0%, #E8DECE 100%);
    z-index: 0;
  }

  .hero__text {
    padding-top: 80px;
  }

  .hero__image-wrap {
    height: 100vh;
    max-height: none;
    padding-top: 80px;
    align-items: flex-end;
  }

  .hero__photo,
  .hero__photo-placeholder {
    width: 100%;
    max-width: 420px;
    height: 80vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .hero__stat-badge {
    left: -20px;
    bottom: -1px;
  }

  /* Secciones con más padding */
  .section {
    padding: var(--space-2xl) 6%;
  }

  /* About centrado */
  .about.section {
    grid-template-columns: 1fr;
  }

  /* Recursos en 3 columnas */
  .resources__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonios en 3 columnas */
  .testimonials__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* ══════════════════════════════════════════════════════════════
   JAVIFINANCE — Estilos nuevos (v2 — añadidos sin tocar el original)
   Secciones: hero-availability, svc-cards, process, faq,
              testimonial-result, cta-final, footer-v2
   ══════════════════════════════════════════════════════════════ */

/* ── HERO: badge de disponibilidad ── */
.hero__availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-green);
  margin-top: 1.2rem;
}

.hero__availability::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 4px rgba(61, 122, 90, 0.15);
  animation: jf-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes jf-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(61, 122, 90, 0.15);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(61, 122, 90, 0.05);
  }
}

/* ── SERVICIOS: section header centrado ── */
.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section__lead {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-top: 0.75rem;
}

/* ── SERVICIOS: 2 cards ── */
.svc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .svc-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.svc-card {
  background: var(--color-white);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.svc-card--featured {
  background: var(--color-dark);
  border-color: var(--color-dark);
}

.svc-card--featured .svc-card__tag {
  color: var(--color-gold-light);
}

.svc-card--featured .svc-card__title {
  color: var(--color-white);
}

.svc-card--featured .svc-card__desc {
  color: var(--color-stone);
}

.svc-card--featured .svc-card__price {
  color: var(--color-gold-light);
}

.svc-card--featured .svc-card__unit {
  color: var(--color-stone);
}

.svc-card--featured .svc-card__features li {
  color: rgba(255, 255, 255, 0.8);
}

.svc-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.svc-card__tag {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: block;
}

.svc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-gold);
}

.svc-card--featured .svc-card__icon {
  background: rgba(140, 117, 73, 0.15);
  color: var(--color-gold-light);
}

.svc-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.svc-card__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.svc-card__price {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
  display: block;
}

.svc-card__unit {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-muted);
  margin-left: 0.25rem;
}

/* ── Price wrap: old + new price stacked ── */
.svc-card__price-wrap {
  margin-bottom: 1.25rem;
}

.svc-card__price-old {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.svc-card__price-number--old {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-stone);
  text-decoration: line-through;
  text-decoration-color: var(--color-stone);
}

.svc-card__price-old .svc-card__currency {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-stone);
  text-decoration: line-through;
  text-decoration-color: var(--color-stone);
}

.svc-card__currency--old {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-stone);
  text-decoration: line-through;
  text-decoration-color: var(--color-stone);
}

.svc-card__price-main {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.svc-card__price-number {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.svc-card--featured .svc-card__price-number {
  color: var(--color-gold-light);
}

.svc-card__price-main .svc-card__currency {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
  align-self: flex-end;
  margin-bottom: 0.35rem;
}

.svc-card__price-main .svc-card__unit {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-muted);
  align-self: flex-end;
  margin-bottom: 0.3rem;
  margin-left: 0;
}

/* Etiqueta de precio de lanzamiento — pill con shimmer */
@keyframes shimmer-pill {
  0%   { background-position: -300% center; }
  100% { background-position:  300% center; }
}

.svc-card__launch-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.85em;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  margin-top: -0.25rem;
  color: #fff;
  background: linear-gradient(
    110deg,
    var(--color-green) 0%,
    var(--color-green-lt) 35%,
    #7ddcac 50%,
    var(--color-green-lt) 65%,
    var(--color-green) 100%
  );
  background-size: 300% auto;
  animation: shimmer-pill 10s linear infinite;
  box-shadow: 0 1px 8px rgba(61, 122, 90, 0.25);
}

.svc-card__launch-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.svc-card--featured .svc-card__launch-note {
  background: linear-gradient(
    110deg,
    var(--color-gold) 0%,
    var(--color-gold-light) 35%,
    #e2c97e 50%,
    var(--color-gold-light) 65%,
    var(--color-gold) 100%
  );
  background-size: 300% auto;
  box-shadow: 0 1px 8px rgba(140, 117, 73, 0.30);
}

.svc-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}

.svc-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.svc-card__features li::before {
  content: '✓';
  color: var(--color-green);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.svc-card--featured .svc-card__features li::before {
  color: var(--color-gold-light);
}

.svc-card .btn-primary,
.svc-card .btn-gold {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ── Free call nudge ── */
.svc-free-call {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem;
  border-top: 1px solid var(--color-sand);
}

.svc-free-call p {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 300;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.svc-free-call a {
  color: var(--color-gold);
  font-weight: 500;
  text-decoration: none;
  transition: opacity var(--transition);
}

.svc-free-call a:hover {
  opacity: 0.75;
}


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

.process__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .process__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
  }
}

.process__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.process__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process__lead {
  font-size: 1rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.process__steps {
  list-style: none;
}

.process__step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-sand);
}

.process__step:last-child {
  border-bottom: none;
}

.process__step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.process__step-body h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.process__step-body p {
  font-size: 0.88rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.55;
}

/* ── TESTIMONIOS: result badge ── */
.testimonial-card__result {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(61, 122, 90, 0.08);
  color: var(--color-green);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(61, 122, 90, 0.15);
  align-self: flex-start;
}

/* ── FAQ ── */
.faq {
  background: var(--color-bg);
}

.faq__list {
  max-width: 680px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-sand);
}

.faq__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-dark);
  transition: color var(--transition);
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary:hover {
  color: var(--color-gold);
}

.faq__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: all var(--transition);
}

.faq__item[open] .faq__icon {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 1.4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 580px;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.25s ease;
}

/* ── CTA FINAL (reemplaza cta-strip) ── */
.cta-final {
  background: var(--color-bg);
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

.cta-final__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-final__scarcity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(140, 117, 73, 0.10);
  color: var(--color-gold);
  border: 1px solid rgba(140, 117, 73, 0.28);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.3px;
}

.cta-final__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-final__title em {
  color: var(--color-gold-light);
  font-style: italic;
}

.cta-final__sub {
  font-size: 1rem;
  color: #5a524a;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.cta-final .btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 16px 40px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(140, 117, 73, 0.35);
}

.cta-final .btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

.cta-final__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  text-align: center;
}

@media (max-width: 640px) {
  .cta-final__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cta-final__feature h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-gold);
  margin-bottom: 0.4rem;
}

.cta-final__feature p {
  font-size: 0.85rem;
  color: #6b6059;
  font-weight: 300;
  line-height: 1.55;
}

/* ── CTA final: curva de crecimiento SVG ── */
.cta-growth-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
  opacity: 0.13;
}

.cta-growth-path {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-growth-path.is-visible {
  stroke-dashoffset: 0;
}

.cta-growth-fill {
  fill: url(#ctaGrowthGrad);
  opacity: 0;
  transition: opacity 1.2s ease 1.2s;
}

.cta-growth-fill.is-visible {
  opacity: 1;
}


/* ── FOOTER v2 — 4 columnas ── */
.footer {
  background: var(--color-dark);
  color: var(--color-stone);
  padding: 5rem 5% 2.5rem;
  border-top: 2px solid var(--color-gold);
  display: flex;
  flex-direction: column;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  align-items: start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
    text-align: center;
  }

  .footer__brand-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer__socials {
    justify-content: center;
  }
}

.footer__brand .footer__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-white);
  display: block;
  margin-bottom: 1rem;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.footer__socials {
  display: flex;
  gap: 0.6rem;
}

.footer__socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-stone);
  text-decoration: none;
  transition: all var(--transition);
}

.footer__socials a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-light);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.6rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--color-gold-light);
}

.footer__bottom {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
  }
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  max-width: 480px;
}