/* ============================================================
   Orbiity — Landing de oferta
   Identidad tomada de projects/landing (Geomanist + paleta real)
   ============================================================ */

/* ---------- Tipografía de marca ---------- */
@font-face {
  font-family: 'Geomanist';
  src: url('../assets/fonts/Geomanist/GeomanistLight.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geomanist';
  src: url('../assets/fonts/Geomanist/GeomanistRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geomanist';
  src: url('../assets/fonts/Geomanist/GeomanistMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geomanist';
  src: url('../assets/fonts/Geomanist/GeomanistBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geomanist';
  src: url('../assets/fonts/Geomanist/GeomanistBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0d0d55;
  --lime: #d9f201;
  --blue: #5171ff;
  --cyan: #8be7f9;
  --ink: #060b2b;
  --pink: #fa879f;
  --lavender: #eceeff;
  --grey: #f1f1f1;
  --white: #ffffff;

  --shadow-brand: 0 3px 6px #00000029;
  --shadow-lift: 0 18px 45px rgba(13, 13, 85, 0.18);
  --ease-brand: cubic-bezier(0.2, 0.8, 0.2, 1);

  --r-btn: 26px;
  --r-card: 26px;
  --r-big: 50px;

  --wrap: 1240px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Geomanist', system-ui, sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ============================================================
   Botones — regla de marca: texto lima sobre azul/navy.
   Nunca texto blanco en un CTA.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 2px solid transparent;
  border-radius: var(--r-btn);
  padding: 0.95rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.25s var(--ease-brand),
    background-color 0.25s var(--ease-brand),
    box-shadow 0.25s var(--ease-brand),
    color 0.25s var(--ease-brand);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

/* Primario: lima sólido con texto navy — máxima llamada */
.btn--lime {
  background: var(--lime);
  color: var(--navy);
  box-shadow: var(--shadow-brand);
}
.btn--lime:hover {
  background: #e4fa3a;
  box-shadow: var(--shadow-lift);
}

/* Sólido azul con texto lima — el de la landing actual */
.btn--blue {
  background: var(--blue);
  color: var(--lime);
  box-shadow: var(--shadow-brand);
}
.btn--blue:hover {
  background: #4362f0;
}

/* Outline lima sobre fondos oscuros */
.btn--outline {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
}
.btn--outline:hover {
  background: var(--lime);
  color: var(--navy);
}

.btn--lg {
  padding: 1.2rem 2.8rem;
  font-size: 1.1rem;
}
.btn--block {
  width: 100%;
}

/* ============================================================
   Barra sticky de oferta
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.7rem 0;
}
.topbar__deal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.topbar__badge {
  background: var(--lime);
  color: var(--navy);
  font-weight: 900;
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Contador */
.countdown {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.3rem 0.55rem;
  min-width: 3.1rem;
  text-align: center;
  line-height: 1.15;
}
.countdown__num {
  display: block;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--lime);
}
.countdown__lbl {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.countdown--over {
  font-weight: 700;
  color: var(--lime);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: var(--white);
  background: var(--navy) url('../assets/images/background1.webp') center/cover no-repeat;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 7.5rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(6, 11, 43, 0.94) 0%,
    rgba(13, 13, 85, 0.86) 45%,
    rgba(13, 13, 85, 0.45) 100%
  );
}
.hero__inner {
  position: relative;
  max-width: 780px;
}
.hero__brand {
  height: 46px;
  width: auto;
  margin-bottom: 2.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--lime);
  color: var(--navy);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero h1 .accent {
  color: var(--lime);
}

.hero__sub {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 1.4rem;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}

/* Bloque de precio */
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 2.2rem 0 2rem;
}
.price__old {
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.6;
}
.price__new {
  font-size: clamp(3rem, 7vw, 4.4rem);
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
}
.price__note {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.85;
  width: 100%;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hero__link {
  color: var(--cyan);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.hero__link:hover {
  color: var(--lime);
}

/* ============================================================
   Secciones
   ============================================================ */
section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.sec-title {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.sec-lead {
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  margin-top: 1.1rem;
  max-width: 62ch;
}
.sec-head {
  text-align: center;
  margin-bottom: 3rem;
}
.sec-head .sec-lead {
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

/* --- Urgencia (fondo tinta, texto cian como "El plazo") --- */
.urgency {
  background: var(--ink);
  color: var(--white);
}
.urgency .sec-title {
  color: var(--cyan);
}
.urgency .sec-title strong {
  color: var(--lime);
  font-weight: 900;
}
.urgency__icon {
  width: 58px;
  margin-bottom: 1.5rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tl {
  border-radius: var(--r-card);
  padding: 1.9rem;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}
.tl--win {
  border-color: var(--lime);
  background: rgba(217, 242, 1, 0.09);
}
.tl__when {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.tl__month {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 900;
  margin: 0.4rem 0 0.6rem;
}
.tl--win .tl__month {
  color: var(--lime);
}
.tl--lose .tl__month {
  color: var(--pink);
}
.tl__txt {
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Comparativa --- */
.versus {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: stretch;
}
.vs {
  border-radius: var(--r-card);
  padding: 2.2rem;
  box-shadow: var(--shadow-brand);
  display: flex;
  flex-direction: column;
}
.vs--old {
  background: var(--grey);
  color: #5a5a6e;
}
.vs--new {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
.vs__tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
}
.vs--new .vs__tag {
  color: var(--lime);
}
.vs__name {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 1.6rem;
}
.vs--old .vs__name {
  color: #3c3c52;
}
.vs__time {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.vs--new .vs__time {
  color: var(--lime);
}
.vs__timelbl {
  font-size: 0.92rem;
  font-weight: 300;
  margin-bottom: 1.8rem;
  opacity: 0.8;
}
.vs__list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
}
.vs__list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.45;
}
.vs__list .mark {
  font-weight: 900;
  flex-shrink: 0;
}
.vs--old .mark {
  color: #b9b9c6;
}
.vs--new .mark {
  color: var(--lime);
}

.cta-row {
  text-align: center;
  margin-top: 3rem;
}

/* --- Qué incluye --- */
.includes {
  background: var(--lavender);
}
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.card {
  background: var(--white);
  border-radius: var(--r-big);
  padding: 2.3rem 1.9rem;
  box-shadow: var(--shadow-brand);
  transition:
    transform 0.3s var(--ease-brand),
    box-shadow 0.3s var(--ease-brand);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.card__ico {
  width: 62px;
  height: 62px;
  background: var(--navy);
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
}
.card__ico img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.card__t {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.card__d {
  font-size: 0.96rem;
  font-weight: 300;
  line-height: 1.6;
  color: #4a4a6a;
}

.legal-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 300;
  color: #5a5a78;
}

/* --- Pasos (azul) --- */
.steps {
  background: var(--blue);
  color: var(--white);
}
.steps .sec-title {
  color: var(--white);
}
.steps .sec-title .accent {
  color: var(--lime);
}
.steps__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  margin-top: 3rem;
}
.step {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--r-card);
  padding: 2.1rem 1.8rem;
  box-shadow: var(--shadow-brand);
}
.step__n {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.step__t {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.step__d {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Precio --- */
.pricing {
  background: var(--white);
}
.plan {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-card);
  border-bottom-right-radius: 180px; /* firma de diseño Orbiity */
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  max-width: 1060px;
  margin-inline: auto;
}
.plan__list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.plan__list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}
.plan__list .mark {
  color: var(--lime);
  font-weight: 900;
  flex-shrink: 0;
}
.plan__t {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 900;
  margin-bottom: 1.6rem;
  line-height: 1.2;
}
.plan__buy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.plan .price {
  margin-top: 0;
}
.plan__warn {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--cyan);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* --- Empresas que confían --- */
.partners {
  background: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid #e6e9f8;
}
.partners__title {
  text-align: center;
  margin-bottom: 2rem;
}

.partners__row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 5vw, 3.8rem);
}
.partners__item {
  display: flex;
  align-items: center;
}

/* Cada logo tiene proporciones muy distintas (de 1,8 a 6,2 de ratio):
   la altura se ajusta uno a uno para que pesen visualmente lo mismo. */
.partners__logo {
  width: auto;
  object-fit: contain;
}
.partners__logo--ems {
  height: 54px;
}
.partners__logo--camara {
  height: 48px;
}
.partners__logo--gcloud {
  height: 32px;
}
.partners__logo--ideva {
  height: 30px;
}

@media (max-width: 560px) {
  .partners__row {
    gap: 2rem 2.4rem;
  }
  .partners__logo--ems {
    height: 46px;
  }
  .partners__logo--camara {
    height: 40px;
  }
  .partners__logo--gcloud {
    height: 27px;
  }
  .partners__logo--ideva {
    height: 26px;
  }
}

/* --- Formulario --- */
.contract {
  background: var(--lavender);
}
.form-card {
  background: var(--white);
  border-radius: var(--r-big);
  padding: clamp(2rem, 4.5vw, 3.2rem);
  box-shadow: var(--shadow-lift);
  max-width: 880px;
  margin-inline: auto;
}
.grid2 {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--navy);
}
.field input,
.field select {
  border: 2px solid #d8ddf5;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  color: var(--navy);
  background: var(--white);
  transition:
    border-color 0.2s var(--ease-brand),
    box-shadow 0.2s var(--ease-brand);
  width: 100%;
  height: 3.35rem; /* misma altura que los input, en todos los navegadores */
}

/* El desplegable nativo ignora el diseño: lo sustituimos por una flecha propia */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0D55' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  background-size: 1.1rem;
}

/* Mientras no se elige nada, el texto se ve como un marcador de posición */
.field select:invalid {
  color: #8a8fae;
}
.field select option {
  color: var(--navy);
}
.field select option[value=''] {
  color: #8a8fae;
}
.field input:hover,
.field select:hover {
  border-color: #b9c3ee;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(81, 113, 255, 0.16);
}
.field input:user-invalid,
.field select[aria-invalid='true'] {
  border-color: #e0577a;
}
.field__err {
  font-size: 0.8rem;
  color: #d63b62;
  font-weight: 500;
  min-height: 1rem;
}

.form-foot {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.form-note {
  font-size: 0.85rem;
  font-weight: 300;
  color: #5a5a78;
  max-width: 46ch;
}

.form-done {
  text-align: center;
  padding: 2rem 1rem;
}
.form-done__ico {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin: 0 auto 1.3rem;
  font-size: 2rem;
  font-weight: 900;
}
.form-done h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
}
.form-done p {
  font-weight: 300;
  line-height: 1.6;
  max-width: 48ch;
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

/* --- Footer --- */
.foot {
  background: var(--blue);
  color: var(--white);
  padding: 3.5rem 0 2.5rem;
}
.foot__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.foot__logo {
  height: 84px;
  width: auto;
}
.foot__d {
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 34ch;
  margin-top: 1rem;
}
.foot__h {
  font-weight: 700;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}
.foot__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-weight: 300;
  font-size: 0.95rem;
}
.foot__item img {
  width: 20px;
  height: 20px;
}
.foot__item a:hover {
  color: var(--lime);
}
.foot__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 300;
}

/* --- CTA flotante (móvil) --- */
.float-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: none;
  box-shadow: 0 10px 30px rgba(6, 11, 43, 0.4);
  /* Oculto hasta que el hero sale de pantalla: si no, se solapa con su CTA */
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease-brand),
    transform 0.35s var(--ease-brand);
}
.float-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 860px) {
  .float-cta {
    display: flex;
  }
  body {
    padding-bottom: 5.5rem;
  }
}

/* --- Animaciones de marca --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(3px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease-brand),
    transform 0.9s var(--ease-brand),
    filter 0.9s var(--ease-brand);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* --- Responsive --- */
@media (min-width: 900px) {
  .plan {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}
@media (max-width: 720px) {
  .plan {
    border-bottom-right-radius: var(--r-card);
  }
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }
  .topbar .btn {
    display: none;
  } /* en móvil manda el CTA flotante */
  .hero {
    background-image: url('../assets/images/background1_mobile.webp');
  }
}
