:root {
  --bg: #061417;
  --bg-soft: #0b1d21;
  --panel: rgba(10, 31, 36, 0.75);
  --panel-strong: #0e262b;
  --line: rgba(78, 212, 191, 0.16);
  --line-strong: rgba(32, 199, 177, 0.32);
  --text: #ecf7f6;
  --muted: #9fc3bf;
  --primary: #20c7b1;
  --primary-strong: #129a89;
  --accent-dark: #0c7b71;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(32, 199, 177, 0.14), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(18, 154, 137, 0.12), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
}

/* =========================
   DIVISOR DE SECCIÓN
========================= */

.section-divider {
  width: min(92%, var(--container));
  height: 1px;
  margin: 18px auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(32, 199, 177, 0.12) 18%,
    rgba(32, 199, 177, 0.45) 50%,
    rgba(32, 199, 177, 0.12) 82%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(32, 199, 177, 0.16);
  opacity: 0.9;
}

/* =========================
   HEADER
========================= */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(6, 20, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  text-decoration: none !important;
}

.logo-box {
  width: 160px !important;
  height: 50px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 160px !important;
}

.logo-image {
  display: block !important;
  width: 160px !important;
  height: 50px !important;
  max-width: 160px !important;
  max-height: 50px !important;
  object-fit: contain !important;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  color: #d8ece9;
  font-weight: 500;
  transition: 0.25s ease;
}

.menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.7rem;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 70px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  max-width: 820px;
}

.hero-text {
  max-width: 700px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: var(--bg);
  box-shadow: 0 16px 35px rgba(32, 199, 177, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(32, 199, 177, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: rgba(32, 199, 177, 0.35);
  color: var(--primary);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #dff8f4;
  font-size: 0.92rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.hero-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-brand--top {
  margin-bottom: 4px;
}

.hero-brand-box {
  width: 100%;
  max-width: 460px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-brand-image {
  width: 100%;
  max-width: 420px;
  max-height: 250px;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 0 18px rgba(32, 199, 177, 0.18));
}

.status-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(12, 30, 35, 0.95), rgba(8, 23, 27, 0.92));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.status-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6f8f2;
  margin-bottom: 24px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(32, 199, 177, 0.8);
}

.metric {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.metric p {
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.mini-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(32, 199, 177, 0.05);
  border: 1px solid rgba(32, 199, 177, 0.12);
}

.mini-box span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.mini-box strong {
  font-size: 1rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 90%);
  opacity: 0.23;
}

/* =========================
   TRUST
========================= */

.trust {
  padding: 24px 0 24px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-card,
.card,
.step,
.cta-box,
.partner-card,
.ecosystem-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-card {
  padding: 26px;
}

.trust-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.trust-card p {
  color: var(--muted);
}

/* =========================
   SERVICES
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 28px;
  transition: 0.25s ease;
}

.card:hover,
.partner-card:hover,
.ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 199, 177, 0.3);
}

.card-icon,
.partner-icon,
.ecosystem-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  color: var(--muted);
}

/* =========================
   SERVICIOS COMPLEMENTARIOS
========================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.partner-card {
  padding: 28px;
  transition: 0.25s ease;
}

.partner-icon {
  font-size: 1.25rem;
}

.partner-card h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.partner-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* =========================
   ECOSISTEMA TECNOLÓGICO
========================= */

.ecosystem-heading {
  max-width: 820px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ecosystem-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.ecosystem-card {
  padding: 28px;
  transition: 0.25s ease;
}

.ecosystem-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ecosystem-icon {
  font-size: 1.2rem;
  flex: 0 0 54px;
}

.ecosystem-card h3 {
  font-size: 1.18rem;
}

.ecosystem-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.ecosystem-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.eco-logo {
  min-height: 96px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(32, 199, 177, 0.12);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.eco-logo img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ecosystem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecosystem-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #dff8f4;
  font-size: 0.92rem;
}

/* =========================
   TIMELINE / METODOLOGÍA
========================= */

.timeline {
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  align-items: flex-start;
}

.step span {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 800;
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
}

/* =========================
   CTA
========================= */

.cta-box {
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-box h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 12px;
  max-width: 700px;
}

.cta-box p {
  color: var(--muted);
  max-width: 680px;
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 70px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}

.footer h3,
.footer h4 {
  margin-bottom: 12px;
}

.footer p,
.footer li {
  color: var(--muted);
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-privacy-link {
  font-size: 0.94rem;
  color: var(--primary);
}

/* =========================
   MODAL DE CONTACTO
========================= */

.contact-modal,
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.contact-modal.is-open,
.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__overlay,
.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(32, 199, 177, 0.12), transparent 20%),
    rgba(2, 10, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal__dialog,
.privacy-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(32, 199, 177, 0.16);
  background: linear-gradient(180deg, rgba(8, 24, 28, 0.96), rgba(10, 31, 36, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.contact-modal__dialog {
  padding: 32px;
  max-height: 92vh;
  overflow-y: auto;
}

.privacy-modal__dialog {
  max-width: 720px;
  padding: 30px;
  color: var(--text);
}

.contact-modal__close,
.privacy-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.25s ease;
}

.contact-modal__close:hover,
.privacy-modal__close:hover {
  background: rgba(32, 199, 177, 0.14);
  color: var(--primary);
}

.contact-modal__content {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: start;
}

.contact-modal__intro {
  padding: 8px 8px 8px 4px;
}

.contact-modal__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-modal__intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.contact-modal__intro p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 28px;
}

/* =========================
   FORMULARIO
========================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: #dff4f1;
  font-size: 0.96rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #87aaa6;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(32, 199, 177, 0.5);
  box-shadow: 0 0 0 4px rgba(32, 199, 177, 0.08);
  background: rgba(255, 255, 255, 0.045);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.inline-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.form-status {
  min-height: 22px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.is-error {
  color: #ff8f8f;
}

.form-status.is-success {
  color: #84f0cb;
}

/* =========================
   LOGO EN FORMULARIO
========================= */

.form-logo {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.form-logo-box {
  width: 180px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 180px;
}

.form-logo-image,
.form-logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   TOAST
========================= */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(32, 199, 177, 0.2);
  background: rgba(8, 24, 28, 0.96);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  transform: translateY(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.28s ease;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  color: var(--bg);
  font-weight: 800;
}

.toast__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toast__content strong {
  font-size: 0.98rem;
}

.toast__content span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 1024px) {
  .hero-grid,
  .trust-grid,
  .cards,
  .footer-grid,
  .cta-box,
  .ecosystem-grid,
  .ecosystem-grid--two {
    grid-template-columns: 1fr;
  }

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

  .cta-box {
    align-items: flex-start;
  }

  .hero-brand-box {
    max-width: 300px;
    min-height: 96px;
  }

  .hero-brand-image {
    max-width: 280px;
    max-height: 96px;
  }
}

@media (max-width: 900px) {
  .contact-modal__content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 80px;
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: rgba(8, 24, 28, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .section {
    padding: 70px 0;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .cta-box,
  .status-card,
  .card,
  .trust-card,
  .step,
  .partner-card,
  .ecosystem-card {
    padding: 22px;
  }

  .section-divider {
    margin: 12px auto;
  }
}

@media (max-width: 640px) {
  .contact-modal,
  .privacy-modal {
    padding: 14px;
  }

  .contact-modal__dialog,
  .privacy-modal__dialog {
    border-radius: 20px;
  }

  .contact-modal__dialog {
    padding: 22px 18px;
  }

  .form-row,
  .partners-grid,
  .ecosystem-logos {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
    min-width: auto;
    max-width: none;
  }

  .logo-box {
    width: 130px !important;
    height: 42px !important;
    flex: 0 0 130px !important;
  }

  .logo-image {
    width: 130px !important;
    height: 42px !important;
    max-width: 130px !important;
    max-height: 42px !important;
  }

  .hero-brand-box {
    max-width: 240px;
    min-height: 80px;
  }

  .hero-brand-image {
    max-width: 220px;
    max-height: 80px;
  }

  .form-logo-box {
    width: 150px;
    height: 58px;
    flex: 0 0 150px;
  }

  .eco-logo {
    min-height: 82px;
    padding: 14px;
  }

  .eco-logo img {
    max-height: 44px;
  }
}

/* =========================
   HARDENING NO VISUAL
========================= */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

button[disabled] {
  cursor: not-allowed;
}
