/* ==========================================================================
   Nodo — landing de venta
   ========================================================================== */

:root {
  --azul: #0B4F7A;
  --azul-oscuro: #06283F;
  --azul-negro: #081722;
  --coral: #C63D22;
  --coral-hover: #A8341D;
  --crema: #F7F4EF;
  --tinta: #0F1417;
  --gris: #6E6A63;
  --gris-claro: #8A8478;
  --blanco: #FFFFFF;

  --font-display: 'Raleway', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(15, 20, 23, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 20, 23, 0.10);
  --shadow-lg: 0 28px 64px rgba(15, 20, 23, 0.16);

  --container: 1275px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}
.section-title {
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.15;
  color: var(--tinta);
}
.section-title--muted { color: var(--gris-claro); }
.section-lead {
  margin-top: 18px;
  color: var(--gris);
  font-size: 17px;
  line-height: 1.65;
}

section { padding: 120px 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 12px 22px; font-size: 14px; }
.btn--lg { padding: 17px 36px; font-size: 16px; }
.btn--block { width: 100%; padding: 15px 24px; font-size: 15px; }

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

.btn--coral-outline { background: transparent; color: var(--coral); border: 1.5px solid var(--coral); }
.btn--coral-outline:hover { background: var(--coral); color: var(--blanco); transform: translateY(-2px); }

.btn--outline-light { background: transparent; color: var(--blanco); border: 1.5px solid rgba(255,255,255,0.5); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--blanco); transform: translateY(-2px); }

/* ---------- placeholder images ---------- */
.ph-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #dbe6ec 0%, #c6d5dd 100%);
}
.ph-img-wrap .ph-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-img-wrap .ph-img.ph-img--error { display: none; }
.ph-label {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: #4d5c65;
}
.ph-label small { color: #7c8a92; font-size: 11px; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  transition: top 0.25s ease;
}
.navbar__pill {
  width: 100%;
  max-width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 14px 14px 28px;
  border-radius: var(--radius-pill);
  /* Arranca apoyada sobre el cielo, sin fondo propio. */
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.navbar--scrolled .navbar__pill {
  /* Al scrollear, gana fondo y acompaña el scroll. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-md);
  padding-top: 10px;
  padding-bottom: 10px;
}
.navbar__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--blanco);
  text-shadow: 0 1px 10px rgba(6, 30, 47, 0.4);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.navbar--scrolled .navbar__logo {
  color: var(--azul);
  text-shadow: none;
}
.navbar__links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 36px;
}
.navbar__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--blanco);
  text-shadow: 0 1px 10px rgba(6, 30, 47, 0.4);
  transition: color 0.15s ease, text-shadow 0.25s ease;
}
.navbar__links a:hover { color: rgba(255, 255, 255, 0.75); }
.navbar--scrolled .navbar__links a {
  color: var(--tinta);
  text-shadow: none;
}
.navbar--scrolled .navbar__links a:hover { color: var(--azul); }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navbar__ingresar {
  font-size: 15px;
  font-weight: 500;
  color: var(--blanco);
  text-shadow: 0 1px 10px rgba(6, 30, 47, 0.4);
  transition: color 0.15s ease, text-shadow 0.25s ease;
}
.navbar__ingresar:hover { color: rgba(255, 255, 255, 0.75); }
.navbar--scrolled .navbar__ingresar { color: var(--tinta); text-shadow: none; }
.navbar--scrolled .navbar__ingresar:hover { color: var(--azul); }

@media (max-width: 900px) {
  .navbar__links { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  color: var(--blanco);
}
.hero__media,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__img {
  /* Esta foto trae mucho cielo arriba: corremos el recorte un poco hacia
     abajo (en vez de anclar en el borde superior) para que se vea más
     a la gente sin perder el espacio de cielo que necesita el texto. */
  object-position: center 57%;
}
.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
  /* Margen claro debajo de la navbar flotante para que no queden pegados. */
  padding-top: clamp(140px, 18vh, 200px);
  max-width: 700px;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(34px, 5.1vw, 61px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgba(6, 30, 47, 0.35);
}
.hero__lead {
  margin: 15px auto 24px;
  max-width: 442px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 12px rgba(6, 30, 47, 0.3);
}
.hero__content .btn--lg {
  padding: 14.5px 30.5px;
  font-size: 13.5px;
}

/* ---------- Circular text badge (adaptado de React Bits, sin React/motion) ---------- */
.circular-text {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 5;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  font-family: var(--font-body);
  cursor: pointer;
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
}
.circular-text span {
  position: absolute;
  inset: 0;
  display: inline-block;
  color: var(--blanco);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(6, 30, 47, 0.4);
}
@media (max-width: 640px) {
  .circular-text { width: 96px; height: 96px; right: 18px; bottom: 18px; }
  .circular-text span { font-size: 8.5px; }
}

/* ==========================================================================
   Social proof / marquee
   ========================================================================== */
.social-proof {
  padding: 56px 0 100px;
  text-align: center;
}
.social-proof__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 32px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--gris-claro);
  white-space: nowrap;
  user-select: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Video + benefits
   ========================================================================== */
.video-benefits {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 642fr 484fr;
  gap: 48px;
  align-items: center;
}
.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 642 / 643;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.video-placeholder__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 12px 30px rgba(255, 107, 74, 0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.video-placeholder__play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--coral-hover); }

.video-benefits__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.benefit-card {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 111px;
  padding: 20px 28px;
  background: var(--blanco);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit-card__icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(11, 79, 122, 0.08);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-card__icon svg { width: 24px; height: 24px; }
.benefit-card__text h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.benefit-card__text p {
  font-size: 14px;
  color: var(--gris);
}

/* ==========================================================================
   Screens carousel
   ========================================================================== */
.screens { max-width: var(--container); margin: 0 auto; }

.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel__slide { flex: 0 0 100%; }

.screens__slide-img {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 1280 / 529;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.screens__slide-img .ph-img { object-fit: contain; }

.carousel__arrow {
  position: absolute;
  top: 50%;
  right: -26px;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blanco);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.carousel__arrow:hover { background: var(--coral); color: var(--blanco); }
.carousel__arrow--prev { right: auto; left: -26px; }
.carousel__arrow--next { top: calc(50% - 34px); }
.carousel__arrow--prev { top: calc(50% - 34px); }

.carousel__dots {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.carousel__dots button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D8D2C6;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel__dots button.is-active::before { background: var(--coral); transform: scale(1.2); }
.carousel__dots button:hover::before { background: var(--azul); }

/* ==========================================================================
   Team
   ========================================================================== */
.team { max-width: var(--container); margin: 0 auto; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blanco);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover,
.team-card.is-focused {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card__img {
  width: 100%;
  aspect-ratio: 378 / 300;
}
.team-card__info { padding: 24px; }
.team-card__info h3 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.team-card__role {
  font-size: 13px;
  font-weight: 500;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.team-card__quote {
  font-size: 14px;
  color: var(--gris);
  font-style: italic;
  line-height: 1.55;
}
.team__dots { margin-top: 40px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { max-width: var(--container); margin: 0 auto; text-align: center; }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}
.price-card {
  position: relative;
  text-align: left;
  padding: 44px 36px 36px;
  background: var(--blanco);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(15,20,23,0.06);
  box-shadow: var(--shadow-sm);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg);
  padding-top: 52px;
  padding-bottom: 44px;
}
.price-card__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--blanco);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px rgba(255,107,74,0.35);
}
.price-card__name {
  font-size: 22px;
  font-weight: 700;
  color: var(--azul);
}
.price-card__price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  color: var(--tinta);
}
.price-card__currency { font-size: 22px; font-weight: 700; vertical-align: super; margin-right: 2px; }
.price-card__period { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--gris); }
.price-card__scope {
  margin-top: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--gris);
  font-weight: 500;
}
.price-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.price-card__features li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--tinta);
}
.price-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(11, 79, 122, 0.1);
}
.price-card__features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--azul);
  border-bottom: 2px solid var(--azul);
  transform: rotate(-45deg);
}
.price-card--featured .price-card__features li::before { background: rgba(255, 107, 74, 0.14); }
.price-card--featured .price-card__features li::after { border-color: var(--coral); }

.pricing__note {
  margin-top: 44px;
  font-size: 14px;
  color: var(--gris);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 780px; margin: 0 auto; }
.accordion__item {
  border-bottom: 1px solid rgba(15,20,23,0.1);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--tinta);
}
.accordion__trigger:hover { color: var(--azul); }
.accordion__icon {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--coral);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.accordion__icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion__icon::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.accordion__item.is-open .accordion__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; }
.accordion__panel-inner p {
  padding: 0 4px 26px;
  color: var(--gris);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 620px;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  background: radial-gradient(120% 140% at 50% -10%, var(--azul-oscuro) 0%, var(--azul-negro) 65%);
  text-align: center;
  padding: 140px 24px;
}
.cta-final__title {
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cta-final__title--muted { color: rgba(255,255,255,0.4); }
.cta-final__actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--azul-negro);
  color: rgba(255,255,255,0.72);
  padding: 90px 24px 32px;
}
.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--blanco);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.footer__desc { font-size: 14.5px; line-height: 1.65; max-width: 280px; }
.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanco);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14.5px; transition: color 0.15s ease; }
.footer__col a:hover { color: var(--coral); }

.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
}
.footer__bottom a { color: var(--coral); font-weight: 500; }
.footer__bottom a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .video-benefits { grid-template-columns: 1fr; }
  .video-placeholder { max-width: 560px; margin: 0 auto; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .price-card { min-height: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 80px 20px; }
  .hero { height: 100vh; }
  .navbar { top: 12px; }
  .navbar__pill { padding: 10px 10px 10px 20px; }
  .navbar__actions .navbar__ingresar { display: none; }
  .team__grid { grid-template-columns: 1fr; }
  .carousel__arrow { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .cta-final__actions { flex-direction: column; align-items: center; }
}
