/* =========================================================
   GANARE 2026 — BASE CSS
   Sistema base de elementos / componentes reutilizables
   ========================================================= */


/* =========================================================
   1) FUENTES
   ========================================================= */
/*
  Cargar en <head>:

  <link rel="stylesheet" href="https://use.typekit.net/jay1hgn.css">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Capriola&display=swap" rel="stylesheet">

  También:
  <link rel="stylesheet" href="assets/css/fontello.css">
*/


/* =========================================================
   2) TOKENS / VARIABLES
   ========================================================= */
:root {
  /* Colores */
  --color-bg: #f3e6de;
  --color-bg-2: #efe2d9;
  --color-surface: #ffffff;
  --color-surface-soft: #f3f3f3;
  --color-surface-muted: #ececec;

  --color-primary: #43b02a;
  --color-primary-dark: #31921d;
  --color-primary-darker: #267316;

  --color-secondary: #2443a6;
  --color-secondary-dark: #1d3582;
  --color-secondary-light: #1fa0df;

  --color-earth: #7b470f;
  --color-earth-dark: #5e360b;

  --color-text: #1f1f1f;
  --color-text-soft: #555555;
  --color-text-muted: #767676;
  --color-white: #ffffff;
  --color-border: rgba(0, 0, 0, 0.08);

  /* Tipografía */
  --font-display: "Capriola", sans-serif;
  --font-body: "acumin-pro", sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-4xl: 4rem;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radios */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Sombras */
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 24px rgba(0, 0, 0, 0.14);
  --shadow-elevated: 0 14px 28px rgba(0, 0, 0, 0.18);
  --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.06);

  /* Transiciones */
  --transition-fast: 0.18s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Contenedor */
  --container-max: 1180px;
  --container-pad: 20px;

  /* Alturas útiles */
  --btn-h-sm: 42px;
  --btn-h-md: 52px;
  --btn-h-lg: 60px;

  /* Focus */
  --focus-ring: 0 0 0 4px rgba(67, 176, 42, 0.16);
}


/* =========================================================
   3) RESET / BASE
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-color: #f3e6de;
  background-image: url("../img/ganare-2026-fondo.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

main {
  overflow-x: hidden;
  width: 100%;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
  margin: 0;
}

::selection {
  background: rgba(36, 67, 166, 0.14);
}


/* =========================================================
   4) TIPOGRAFÍA BASE
   ========================================================= */
h1,
h2,
h3,
.display-title,
.section-title,
.badge-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: var(--lh-snug);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

p,
li,
label,
input,
textarea,
select,
button,
a,
small {
  font-family: var(--font-body);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-base {
  font-size: var(--fs-base);
}

.text-md {
  font-size: var(--fs-md);
}

.text-lg {
  font-size: var(--fs-lg);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-soft {
  color: var(--color-text-soft);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-white {
  color: var(--color-white);
}

.fw-regular {
  font-weight: 400;
}

.fw-bold {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.uppercase {
  text-transform: uppercase;
}

.nowrap {
  white-space: nowrap;
}


/* =========================================================
   5) LAYOUT UTILITIES BASE
   ========================================================= */
.container {
  width: min(var(--container-max), calc(100% - (var(--container-pad) * 2)));
  margin-inline: auto;
}

.flow > * + * {
  margin-top: var(--space-4);
}

.flow-lg > * + * {
  margin-top: var(--space-6);
}

.stack-xs > * + * {
  margin-top: var(--space-2);
}

.stack-sm > * + * {
  margin-top: var(--space-3);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cluster-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.grid-auto {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


/* =========================================================
   6) ENLACES / INTERACTIVOS
   ========================================================= */
.link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.link:hover {
  opacity: 0.8;
}

.link-underline:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 12px;
}


/* =========================================================
   7) BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--btn-h-md);
  padding-inline: 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    opacity var(--transition-base);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--sm {
  min-height: var(--btn-h-sm);
  padding-inline: 1.15rem;
  font-size: var(--fs-sm);
}

.btn--md {
  min-height: var(--btn-h-md);
  padding-inline: 1.6rem;
  font-size: var(--fs-base);
}

.btn--lg {
  min-height: var(--btn-h-lg);
  padding-inline: 2rem;
  font-size: var(--fs-md);
}

.btn--full {
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-elevated);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-elevated);
}

.btn-accent {
  background: var(--color-secondary-light);
  color: var(--color-white);
  border-color: var(--color-secondary-light);
}

.btn-accent:hover {
  background: var(--color-white);
  color: var(--color-secondary-light);
  border-color: var(--color-secondary-light);
  box-shadow: var(--shadow-elevated);
}

.btn-light {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-light:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-elevated);
}

.btn-ghost {
  background: transparent;
  color: var(--color-secondary);
  border-color: rgba(36, 67, 166, 0.28);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-soft);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}


/* =========================================================
   8) ICONOS / BOTONES CIRCULARES
   ========================================================= */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-base),
    background var(--transition-base),
    box-shadow var(--transition-base);
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-elevated);
}

.icon-btn--light {
  background: var(--color-white);
  color: var(--color-primary);
}

.icon-btn--light:hover {
  background: #fff;
  color: var(--color-secondary);
}

.icon-btn i,
.icon-btn span {
  font-size: 1rem;
  line-height: 1;
}


/* =========================================================
   9) BADGES / PILLS / ETIQUETAS
   ========================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding-inline: 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  border: 1px solid transparent;
}

.pill--white {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  border-color: var(--color-border);
}

.pill--green {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.pill--blue {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.pill--sky {
  background: var(--color-secondary-light);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding-inline: 2rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1;
}

.section-badge--white {
  background: var(--color-surface);
  color: var(--color-primary);
}

.section-badge--blue {
  background: var(--color-secondary);
  color: var(--color-white);
}

.section-badge--green {
  background: var(--color-primary);
  color: var(--color-white);
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding-inline: 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-soft);
}


/* =========================================================
   10) CARDS
   ========================================================= */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card--soft {
  background: var(--color-surface-soft);
}

.card--flat {
  box-shadow: none;
  border-color: var(--color-border);
}

.card__body {
  padding: 1.25rem;
}

.card__body--lg {
  padding: 1.75rem;
}

.card__title {
  font-family: var(--font-body);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
}

.card__text {
  color: var(--color-text-soft);
  line-height: var(--lh-relaxed);
}


/* =========================================================
   11) TARJETAS DE PRECIO
   ========================================================= */
.price-card {
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.price-card__head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: var(--color-white);
  font-size: var(--fs-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price-card__head--blue {
  background: var(--color-secondary);
}

.price-card__head--sky {
  background: var(--color-secondary);
}

.price-card__body {
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.price-card__value {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.15rem;
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1;
}

.price-card__currency,
.price-card__amount,
.price-card__decimals {
  font-family: var(--font-body);
}

.price-card__currency {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.price-card__amount {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.price-card__decimals {
  font-size: clamp(1rem, 2vw, 1.5rem);
  transform: translateY(0.18em);
}

.price-card__note {
  margin-top: 0.85rem;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
}


/* =========================================================
   12) BENEFIT PILLS
   ========================================================= */
.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.benefit-pill__icon {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: var(--color-white)
}

.benefit-pill:hover .benefit-pill__icon {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
}

.benefit-pill__icon svg {
  width: 100%;
  height: 100%;
}

.benefit-pill__label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding-inline: 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--fs-sm);
  line-height: 1.2;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================================
   13) INPUTS / FORMULARIOS
   ========================================================= */
.form-row {
  display: grid;
  gap: 1rem;
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #efefef;
  color: var(--color-text);
  box-shadow: var(--shadow-inset);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-control::placeholder {
  color: #a5a5a5;
}

.form-control:hover {
  background: #f3f3f3;
}

.form-control:focus {
  border-color: rgba(67, 176, 42, 0.5);
  background: #f8f8f8;
  box-shadow: var(--shadow-inset), var(--focus-ring);
  outline: none;
}

textarea.form-control {
  min-height: 120px;
  padding: 0.9rem 1rem;
  resize: vertical;
}

.form-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text-soft);
}

.form-help {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.form-error {
  font-size: var(--fs-xs);
  color: #c53333;
}

.form-control.is-error {
  border-color: rgba(197, 51, 51, 0.5);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-check input {
  margin-top: 0.15rem;
}


/* =========================================================
   14) MEDIA / IMAGE HELPERS
   ========================================================= */
.media-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.media-frame--round {
  border-radius: var(--radius-round);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-portrait {
  aspect-ratio: 3 / 4;
}


/* =========================================================
   15) NAVEGACIÓN BÁSICA / LINKS DE MENÚ
   ========================================================= */
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.is-active {
  color: var(--color-primary);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}


/* =========================================================
   16) LOGOS / PARTNERS SIMPLE
   ========================================================= */
.logo-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.logo-item {
  display: grid;
  place-items: center;
}

.logo-item img {
  width: auto;
  max-height: 56px;
  object-fit: contain;
}


/* =========================================================
   17) SEPARADORES / DIVISORES
   ========================================================= */
.hr {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.hr-soft {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}


/* =========================================================
   18) MODAL BASE (ESTRUCTURA, NO ANIMACIÓN SKETCH TODAVÍA)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.modal__body {
  padding: 1.5rem;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-round);
  color: var(--color-text-soft);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}


/* =========================================================
   19) GSAP REVEAL BASE STATES
   ========================================================= */
.no-js .gs_reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.gs_reveal {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}


/* =========================================================
   20) ESTADOS / HELPERS VARIOS
   ========================================================= */
.is-hidden {
  display: none !important;
}

.is-invisible {
  visibility: hidden !important;
}

.is-locked {
  overflow: hidden;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-pill {
  border-radius: var(--radius-pill);
}

.bg-white {
  background: var(--color-white);
}

.bg-soft {
  background: var(--color-surface-soft);
}

.bg-green {
  background: var(--color-primary);
}

.bg-blue {
  background: var(--color-secondary);
}

.bg-sky {
  background: var(--color-secondary-light);
}


/* =========================================================
   21) RESPONSIVE BASE
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --container-pad: 18px;
  }

  .nav-list {
    gap: 0.9rem;
  }

  .section-badge {
    min-height: 54px;
    padding-inline: 1.5rem;
  }

  .benefit-pill__icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
}

@media (max-width: 640px) {
  :root {
    --container-pad: 16px;
  }

  .btn--lg {
    min-height: 56px;
    padding-inline: 1.5rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .section-badge {
    min-height: 50px;
    width: min(100%, 420px);
    padding-inline: 1.25rem;
  }

  .benefit-pill {
    gap: 0.5rem;
  }

  .benefit-pill__label {
    padding-inline: 0.85rem;
    font-size: 0.8125rem;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }
}