/* =========================================
   GO.DIGITAL — Estilos generales
   ========================================= */

:root {
  --navy: #191933;
  --navy-soft: #23233f;
  --lime: #c8f320;
  --purple: #601bcc;
  --teal: #024651;
  --teal-light: #0a5b68;
  --white: #ffffff;
  --gray-light: #f5f5f7;
  --gray-text: #6b6b7a;
  --gray-text-onDark: rgba(255, 255, 255, 0.68);

  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --container-w: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

mark {
  background: var(--lime);
  color: var(--navy);
  padding: 0.05em 0.3em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(25, 25, 51, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(25, 25, 51, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  padding: 10px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 16px;
}

.logo-mark { display: block; width: 56px; }
.logo-img { width: 100%; height: auto; display: block; border-radius: 10px; }

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.main-nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.main-nav a:hover { opacity: 1; }
.main-nav a {
  position: relative;
}
.main-nav ul li a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 1.5px;
  background: var(--lime);
  transition: width 0.25s ease;
}
.main-nav ul li a:not(.nav-cta):hover::after { width: 100%; }
.main-nav a:hover { opacity: 1; }
.nav-cta {
  background: var(--lime);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: gap 0.25s ease, filter 0.2s ease, box-shadow 0.25s ease;
}
.nav-cta::after {
  content: '\2192';
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
}
.nav-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(200, 243, 32, 0.4);
  gap: 6px;
}
.nav-cta:hover::after { width: 14px; opacity: 1; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  justify-self: end;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--lime);
  opacity: 0.6;
}
.blob-tr { width: 220px; height: 220px; top: -80px; right: -60px; }
.blob-l { width: 200px; height: 200px; top: 38%; left: -110px; }
.blob-br { width: 260px; height: 260px; bottom: -120px; right: -40px; }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-box {
  width: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.hero-title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--navy); font-weight: 500; line-height: 1.5; }
.hero-title .hl {
  background: var(--lime);
  padding: 0.12em 0.25em 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-sub {
  color: var(--gray-text-onDark);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 300;
  margin-top: 28px;
}

.hero-rule {
  width: 60%;
  max-width: 480px;
  height: 2px;
  background: var(--lime);
  margin-top: 48px;
  animation: glow-pulse 2.8s ease-in-out infinite;
}

.dots { display: flex; gap: 10px; margin-top: 40px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0.4; }
.dot-active { background: var(--lime); opacity: 1; width: 22px; border-radius: 5px; animation: pulse-active 2.2s ease-in-out infinite; }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(200, 243, 32, 0); }
  50% { box-shadow: 0 0 16px rgba(200, 243, 32, 0.7); }
}
@keyframes pulse-active {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* =========================================
   SOMOS
   ========================================= */
.somos {
  background: var(--teal);
  padding: 100px 0 60px;
  position: relative;
}
.somos-tags {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 780px;
  margin: 0 auto;
}
.tag {
  display: inline-block;
  align-self: flex-start;
  border: 1.5px solid var(--lime);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  padding: 14px 32px;
  border-radius: 100px;
}
.tag-shift { align-self: flex-end; }
.somos-title {
  text-align: center;
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  background: var(--white);
  padding: 26px 0;
  margin-top: 60px;
}

/* =========================================
   ECOSISTEMA
   ========================================= */
.ecosystem { background: var(--white); padding-bottom: 100px; }
.ecosystem-header {
  background: var(--navy);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 60px 0;
  margin-bottom: 90px;
  position: relative;
}
.ecosystem-header::before {
  content: '';
  position: absolute;
  left: -110px; top: 30%;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 2px solid var(--lime);
  opacity: 0.6;
}
.ecosystem-header h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
}
.hl-lime { color: var(--lime); font-weight: 700; }

.orbit-img-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
.orbit-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  animation: float-soft 6s ease-in-out infinite;
}
.orbit-ring-deco {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: 1px dashed rgba(25, 25, 51, 0.18);
  pointer-events: none;
}
.ring-deco-1 {
  inset: -6%;
  border-color: rgba(200, 243, 32, 0.45);
  animation: spin-slow 40s linear infinite;
}
.ring-deco-2 {
  inset: 6%;
  border-color: rgba(96, 27, 204, 0.18);
  animation: spin-slow-reverse 30s linear infinite;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-slow-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* =========================================
   SERVICIOS
   ========================================= */
.services { background: var(--navy); padding: 100px 0; }
.services-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 22px;
}
.services-heading { grid-column: 1; grid-row: 1 / span 4; display: flex; align-items: flex-start; }
.services-heading h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; }
.services-heading .hl-lime { display: block; font-weight: 700; }

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 26px 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 34px rgba(25, 25, 51, 0.14);
}
.service-head h3 {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 100px 100px 0;
  margin-left: -26px;
  margin-bottom: 14px;
}
.service-tag { color: var(--gray-text); font-size: 0.9rem; margin-bottom: 16px; }
.service-card ul { display: flex; flex-direction: column; gap: 6px; }
.service-card li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--navy);
}
.service-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--purple);
}

/* =========================================
   ADN / METODOLOGÍA (compartido)
   ========================================= */
.adn, .method { background: var(--white); padding: 90px 0; text-align: center; }
.adn h2, .method h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 400; }
.adn-lead {
  color: var(--gray-text);
  max-width: 640px;
  margin: 20px auto 50px;
  font-size: 1.02rem;
}

.adn-box, .method-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 56px 40px 44px;
  position: relative;
}
.method-box { margin-top: 46px; }
.adn-pill {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 10px 30px;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.adn-text {
  color: var(--white);
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.adn-somos { margin-top: 50px; }
.adn-somos-label { color: var(--white); font-family: var(--font-display); font-weight: 600; opacity: 0.85; }
.adn-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.adn-item {
  border: 1.5px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.adn-item:hover {
  transform: translateY(-6px);
  background: rgba(200, 243, 32, 0.08);
}
.adn-item-title { color: var(--lime); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.adn-item p { color: var(--gray-text-onDark); font-size: 0.85rem; margin-top: 10px; }
.adn-footer, .method-footer {
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 500;
  margin-top: 40px;
  font-size: 1.05rem;
}

.method-lead { color: var(--white); margin-top: 20px; font-size: 1.02rem; }
.method-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.method-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1.5px solid var(--lime);
  border-radius: 100px;
  padding: 10px 30px 10px 10px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.method-list li:hover {
  transform: translateX(8px);
  background: rgba(200, 243, 32, 0.06);
}
.method-num {
  width: 42px; height: 42px;
  min-width: 42px;
  border: 1.5px solid var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 700;
}
.method-list h3 { color: var(--lime); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.method-list p { color: var(--gray-text-onDark); font-size: 0.88rem; }

/* =========================================
   EQUIPO
   ========================================= */
.team { background: var(--navy); padding: 100px 0; text-align: center; }
.team h2 { color: var(--white); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 760px; margin: 0 auto 60px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 26px;
}
.team-card { transition: transform 0.35s ease; }
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: grayscale(1);
  transition: filter 0.35s ease, box-shadow 0.35s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-card:hover img {
  filter: grayscale(0.15);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}
.team-card figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.team-card strong { color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.team-card span { color: var(--gray-text-onDark); font-size: 0.82rem; }

/* =========================================
   MARCAS
   ========================================= */
.brands { background: var(--navy); padding: 0 0 100px; text-align: center; }
.brands h2 { color: var(--white); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 40px; }
.brands-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.brands-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* =========================================
   TESTIMONIOS
   ========================================= */
.testimonials { background: var(--white); padding: 100px 0; text-align: center; }
.testimonials h2 { font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.3rem); max-width: 700px; margin: 0 auto 60px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  text-align: left;
}
.testimonial-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  position: relative;
}
.stars { color: var(--lime); letter-spacing: 3px; font-size: 0.9rem; }
.quote-mark {
  position: absolute;
  top: 20px; right: 30px;
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--purple);
  opacity: 0.7;
  line-height: 1;
}
.testimonial-card p {
  color: var(--gray-text-onDark);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 20px 0 26px;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.testimonial-card footer img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}
.testimonial-card footer strong { color: var(--white); font-size: 0.88rem; display: block; }
.testimonial-card footer span { color: var(--gray-text-onDark); font-size: 0.78rem; }

/* =========================================
   CONTACTO
   ========================================= */
.contact {
  background: var(--navy);
  padding: 110px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 500; line-height: 1.5; }
.contact h2 .hl {
  background: var(--lime);
  color: var(--navy);
  padding: 0.12em 0.25em 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.contact-sub { color: var(--gray-text-onDark); font-size: 1.2rem; margin-top: 26px; }

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 60px auto 0;
  padding: 40px;
  text-align: left;
}

/* Formulario */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field-full { margin-bottom: 16px; }

/* Honeypot: oculto visualmente pero presente en el DOM (los bots que ignoran CSS lo completan igual) */
.form-field-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}
.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
  border: 1.5px solid #e1e1e8;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--gray-light);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field select { appearance: none; cursor: pointer; }

.form-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 100px;
  padding: 15px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.form-submit .btn-arrow {
  display: inline-block;
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.form-submit:hover { background: var(--purple); box-shadow: 0 10px 24px rgba(96, 27, 204, 0.35); }
.form-submit:hover .btn-arrow { transform: translateX(0); opacity: 1; }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 14px;
  text-align: center;
}

.form-success {
  text-align: center;
  color: var(--teal);
  padding: 20px 10px;
}
.form-success svg { margin-bottom: 14px; }
.form-success p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  border-radius: 100px;
  padding: 10px 22px 10px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-text {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: #25d366;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.whatsapp-float:hover { transform: scale(1.04); }

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}

.social-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--white);
  border-radius: 100px;
  padding: 14px 28px;
  color: var(--white);
  margin-top: 50px;
  font-size: 0.95rem;
}
.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  line-height: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.social-icons a:hover { transform: scale(1.15); color: var(--white); }
.social-icons svg { width: 26px; height: 26px; display: block; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--teal); padding: 22px 0; text-align: center; }
.site-footer p { color: var(--gray-text-onDark); font-size: 0.8rem; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .services-heading { grid-row: auto; margin-bottom: 10px; }

  .adn-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }

  .contact-card { padding: 26px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .adn-grid { grid-template-columns: 1fr; }
  .ecosystem-header { margin-bottom: 40px; }

  .whatsapp-text { display: none; }
  .whatsapp-float { padding: 8px; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-blob, .orbit-img, .orbit-ring-deco, .hero-rule, .dot-active, .whatsapp-float::before {
    animation: none !important;
  }
}

/* ===== Menú mobile (estados) ===== */
@media (max-width: 900px) {
  .main-nav {
    display: block;
    position: fixed;
    top: 0; right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    padding: 100px 32px;
    transition: right 0.35s ease;
    z-index: 99;
  }
  .main-nav.is-open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav a { font-size: 1.1rem; }

  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body.nav-open { overflow: hidden; }
}
