/* =========================================================
   GR Nova Consulting — Landing "Consultoría e Inteligencia de Negocios"
   Replica visual basada en la landing original (Swipepages)
   ========================================================= */

:root {
  --purple: #7046AF;
  --purple-dark: #3D344D;
  --purple-dark-2: #503872;
  --purple-dark-3: #514761;
  --purple-soft: #E6DFF5;
  --teal: #43C1BA;
  --teal-2: #00A39B;
  --gray-bg: #F2F2F2;
  --text-body: #494D51;
  --text-dark: #101112;
  --white: #FFFFFF;

  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Sora', -apple-system, sans-serif;
  --font-button: 'Inter', -apple-system, sans-serif;

  --container-w: 1200px;
  --radius-pill: 50px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--text-dark);
}
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.375rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 16px; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; position: relative; }
.section--narrow .container,
.section--narrow.container { max-width: 780px; }
.section--light { background: var(--gray-bg); }
.section--dark {
  background: var(--purple-dark);
  color: var(--white);
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.85); }
.text-center { text-align: center; }
.text-accent { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  padding: 17px 38px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(112, 70, 175, 0.35);
}
.btn--primary:hover {
  background: #5f3993;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(112, 70, 175, 0.45);
}
.btn--block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--purple-dark-3) 0%, var(--purple-dark) 65%);
  color: var(--white);
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero__watermark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.hero__watermark--left { left: -90px; }
.hero__watermark--right { right: -90px; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__title { color: var(--white); }
.hero__lead { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 560px; }

.hero__checklist { margin: 28px 0 32px; }
.hero__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-weight: 500;
}
.icon-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--purple-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero__image--mobile { display: none; }
.hero__image--desktop {
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.hero__form-wrap { position: relative; }

.lead-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.25);
  color: var(--text-body);
}
.lead-form__title {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid #D8D8D8;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-dark);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(112,70,175,0.15);
}
.form-field textarea { resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.lead-form__note {
  text-align: center;
  font-size: 0.85rem;
  color: #7a7f84;
  margin: 14px 0 0;
}
.form-status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
  margin: 10px 0 0;
}
.form-status.is-success { color: #1f9d55; }
.form-status.is-error { color: #d1453b; }

.lead-form--standalone { max-width: 640px; margin: 32px auto 0; }

/* ---------- Section lead/sublead ---------- */
.section__lead { font-size: 1.15rem; font-weight: 500; max-width: 720px; margin: 0 auto 12px; }
.section__sublead { font-size: 1rem; opacity: 0.8; max-width: 620px; margin: 0 auto; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(20,20,40,0.06);
}
.benefit-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.benefit-card:nth-child(5) .benefit-card__icon { color: var(--teal-2); background: #DFF5F3; }
.benefit-card__icon svg { width: 26px; height: 26px; }
.benefit-card h3 { margin-bottom: 8px; }
.benefit-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Split grid (image + content) ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.split-grid--reverse { grid-template-columns: 1.15fr 0.85fr; }
.split-grid--reverse .split-grid__image { order: 2; }
.split-grid--reverse .split-grid__content { order: 1; }
.split-grid__image img {
  border-radius: var(--radius-md);
  margin: 0 auto;
  max-width: 380px;
}
.split-grid__helps { font-size: 1.05rem; margin-top: 6px; }
.check-list { margin: 14px 0 20px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-2);
  font-weight: 700;
}
.split-grid__closing {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.05rem;
}
.split-grid__more {
  margin-top: 16px;
  font-size: 0.95rem;
}
.split-grid__more a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Ally / ticker ---------- */
.section--ally { padding-bottom: 56px; }
.ticker {
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: ticker-scroll 28s linear infinite;
}
.ticker__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  white-space: nowrap;
  opacity: 0.9;
  padding: 10px 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ---------- Testimonials ---------- */
.testimonial-carousel {
  position: relative;
  max-width: 720px;
  margin: 48px auto 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.testimonial-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}
.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(20,20,40,0.08);
  margin: 0;
}
.testimonial-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.1rem;
}
.testimonial-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-dark);
}
.testimonial-card footer { margin-top: 16px; }
.testimonial-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--purple);
}
.testimonial-card footer span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-body);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--purple);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.carousel-btn--prev { left: -21px; }
.carousel-btn--next { right: -21px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #C9C9CE;
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.is-active { background: var(--purple); }

/* ---------- Logo marquee ---------- */
.logo-marquee { overflow: hidden; margin-top: 32px; }
.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: ticker-scroll 22s linear infinite;
}
.logo-marquee__track img {
  height: 48px;
  width: auto;
  filter: grayscale(1) opacity(0.75);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--purple-dark);
  color: var(--white);
  padding: 56px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.footer__logo { filter: brightness(0) invert(1); width: 160px; }
.footer__contact h2 { color: var(--white); font-size: 1.4rem; }
.footer__contact p { margin: 4px 0; color: rgba(255,255,255,0.8); }
.footer__contact a { font-weight: 600; color: var(--teal); }
.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin: 40px 0 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet landscape / small desktop */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image--desktop { display: none; }
  .hero__image--mobile { display: block; border-radius: var(--radius-md); margin-top: 24px; box-shadow: 0 16px 34px rgba(0,0,0,0.3); }
  .split-grid, .split-grid--reverse { grid-template-columns: 1fr; }
  .split-grid--reverse .split-grid__image,
  .split-grid--reverse .split-grid__content { order: initial; }
  .split-grid__image { order: -1; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__logo { margin: 0 auto; }
  .carousel-btn { display: none; }
}

/* Mobile */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 24px 20px; }
  .btn { width: 100%; }
  .hero__watermark { width: 200px; opacity: 0.06; }
  .testimonial-card { padding: 28px 22px; }
  .ticker__item { font-size: 0.95rem; padding: 8px 20px; }
}

/* Very small phones (iPhone SE) */
@media (max-width: 375px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .lead-form__title { font-size: 1.1rem; }
}

/* Ultrawide */
@media (min-width: 1800px) {
  :root { --container-w: 1440px; }
}
