/* =========================================================
   ANDINO FLOW — Landing Page
   Tokens de marca extraídos de la tarjeta de presentación
   ========================================================= */

:root {
  /* Color */
  --violet-950: #201238; /* fondo oscuro más profundo (footer, cta final) */
  --violet-900: #2d1b4e; /* violeta principal de marca (tarjeta) */
  --violet-800: #3b2568; /* violeta para degradés / hover sobre oscuro */
  --lavender: #b9a3d9; /* acento lavanda (subtítulos en tarjeta) */
  --violet-600: #7c5cbf; /* violeta medio, botones/links sobre claro */
  --violet-500: #9370d6; /* hover de violeta medio */
  --bg-light: #fbfafd; /* blanco cálido, no puro */
  --bg-tint: #f3eef9; /* lavanda muy claro, para bandas alternadas */
  --ink: #241748; /* texto oscuro principal sobre fondo claro */
  --ink-soft: #5b4e7a; /* texto secundario sobre fondo claro */
  --white: #ffffff;
  --wsp-green: #25d366;

  /* Tipografía */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 20ch;
}
h3 {
  font-size: 1.15rem;
}

p {
  line-height: 1.6;
  margin: 0 0 1em;
}

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

svg {
  display: block;
}

/* Foco visible para accesibilidad */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--violet-600);
  outline-offset: 3px;
}

/* Respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Marca / logo (recreado con CSS mask desde logo.png,
   así se puede recolorear a blanco o violeta según el fondo)
   ========================================================= */
.brand-mark {
  display: inline-block;
  width: 34px;
  height: 23px;
  background-color: var(--white);
  -webkit-mask: url('assets/logo.png') center / contain no-repeat;
  mask: url('assets/logo.png') center / contain no-repeat;
  flex-shrink: 0;
}
.brand-mark-dark {
  background-color: var(--violet-900);
}
.brand-mark-lg {
  width: 64px;
  height: 43px;
  margin: 0 auto 20px;
}

/* =========================================================
   Línea de flujo decorativa (motivo "río" del logo)
   ========================================================= */
.flow-line {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
@media (max-width: 780px) {
  .flow-line {
    display: none;
  }
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 253, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 23, 72, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand .brand-mark {
  background-color: var(--violet-900);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--violet-900);
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--violet-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--violet-900);
  border-radius: 2px;
}

/* =========================================================
   Botones
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--violet-600);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(124, 92, 191, 0.6);
}
.btn-primary:hover {
  background: var(--violet-500);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(124, 92, 191, 0.7);
}
.btn-large {
  padding: 16px 34px;
  font-size: 1rem;
}
.btn-small {
  padding: 10px 20px;
  font-size: 0.85rem;
}
.btn-ghost {
  color: var(--violet-900);
  font-weight: 600;
  padding: 13px 10px;
}
.btn-ghost:hover {
  color: var(--violet-600);
}

.icon-wsp {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.icon-wsp path {
  fill: currentColor;
}

/* =========================================================
   Eyebrow / etiquetas
   ========================================================= */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 14px;
}
.eyebrow-dark {
  color: var(--violet-600);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 40px;
}
.section-sub-light {
  color: rgba(255, 255, 255, 0.75);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(
    160deg,
    var(--violet-900) 0%,
    var(--violet-950) 100%
  );
  color: var(--white);
  padding: 150px 0 130px;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 12% 20%,
      rgba(185, 163, 217, 0.14) 0,
      transparent 45%
    ),
    radial-gradient(
      circle at 88% 75%,
      rgba(185, 163, 217, 0.12) 0,
      transparent 40%
    );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--white);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero .btn-ghost {
  color: var(--white);
}
.hero .btn-ghost:hover {
  color: var(--lavender);
}

.mountain-divider {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 90px;
}

/* =========================================================
   Secciones genéricas
   ========================================================= */
.section {
  padding: 100px 0;
  position: relative;
}
.section.about {
  padding-bottom: 0;
}
.section-light {
  background: var(--bg-light);
}
.section-tint {
  background: var(--bg-tint);
}
.section-dark {
  background: linear-gradient(
    160deg,
    var(--violet-900) 0%,
    var(--violet-950) 100%
  );
  color: var(--white);
}
.section-dark h2 {
  color: var(--white);
}

/* =========================================================
   Qué hacemos — grid de servicios
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(36, 23, 72, 0.07);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(36, 23, 72, 0.25);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--violet-600);
  margin-bottom: 18px;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  margin-bottom: 8px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================================
   Beneficios
   ========================================================= */
.benefits {
  text-align: center;
}
.benefits-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(185, 163, 217, 0.12) 0,
    transparent 55%
  );
  pointer-events: none;
}
.benefits .wrap {
  position: relative;
  z-index: 1;
}
.benefits h2 {
  margin: 0 auto 50px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--lavender);
  margin-bottom: 18px;
}
.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit h3 {
  color: var(--white);
}
.benefit p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* =========================================================
   Cómo funciona
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.step {
  position: relative;
  padding-top: 6px;
  border-top: 2px solid var(--violet-600);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--lavender);
  -webkit-text-stroke: 1px var(--violet-600);
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  margin-bottom: 14px;
}
.step-num {
  color: var(--violet-600);
  -webkit-text-fill-color: initial;
  opacity: 0.35;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================================
   Inversión / Precios
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(36, 23, 72, 0.08);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(36, 23, 72, 0.22);
}
.price-card-featured {
  background: linear-gradient(165deg, var(--violet-900), var(--violet-950));
  color: var(--white);
  border: none;
  transform: scale(1.04);
}
.price-card-featured:hover {
  transform: scale(1.04) translateY(-4px);
}
.price-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--violet-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
}
.price-card h3 {
  margin-bottom: 10px;
}
.price-card-featured h3 {
  color: var(--white);
}
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--violet-600);
  margin-bottom: 10px;
}
.price-card-featured .price {
  color: var(--lavender);
}
.price-period {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.price-card-featured .price-period {
  color: rgba(255, 255, 255, 0.65);
}
.price-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.price-card-featured .price-desc {
  color: rgba(255, 255, 255, 0.75);
}

.price-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto 34px;
}
.center-cta {
  text-align: center;
}

/* =========================================================
   Sobre mí
   ========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--violet-900), var(--violet-950));
}
.about-photo.photo-missing img {
  display: none;
}
.about-photo.photo-missing .photo-fallback {
  display: flex;
}
.photo-fallback .brand-mark {
  width: 70px;
  height: 47px;
}

.about-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 46ch;
}

/* =========================================================
   CTA final
   ========================================================= */
.final-cta {
  text-align: center;
}
.final-cta .wrap {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.final-cta h2 {
  color: var(--white);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--violet-950);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 26px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--white);
}
.footer-tag {
  font-size: 0.85rem;
  color: var(--lavender);
  margin: 2px 0 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-contact a,
.footer-location {
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.2s ease;
}
.footer-contact a:hover {
  color: var(--lavender);
}
.footer-contact svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.footer-contact .icon-wsp {
  fill: currentColor;
  stroke: none;
}

.footer-bottom {
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Botón flotante WhatsApp
   ========================================================= */
.float-wsp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wsp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(37, 211, 102, 0.55);
  z-index: 60;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.float-wsp.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.float-wsp svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}
.float-wsp:hover {
  transform: scale(1.08);
}

/* =========================================================
   Animaciones de aparición (scroll reveal)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 360px;
    margin: 0 auto;
  }
  .section.about {
    padding: 100px 0;
  }
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-inner .btn-small {
    display: none;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-light);
    padding: 20px 24px 26px;
    border-bottom: 1px solid rgba(36, 23, 72, 0.08);
    gap: 18px;
  }
  .site-header.nav-open .header-inner .btn-small.mobile-shown {
    display: inline-flex;
  }

  .hero {
    padding: 120px 0 100px;
  }
  .section {
    padding: 72px 0;
  }
  .section.about {
    padding: 72px 0;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card-featured {
    transform: none;
    order: -1;
  }
  .price-card-featured:hover {
    transform: translateY(-4px);
  }

  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
