:root {
  --primary: #0A2540;
  --primary-2: #102f52;
  --accent: #00C2C7;
  --accent-2: #00a9ad;
  --white: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --soft: #F8FAFC;
  --soft-2: #F1F5F9;
  --border: #E5E7EB;
  --border-strong: rgba(10, 37, 64, 0.08);
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 40px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.14);
  --shadow-accent: 0 18px 38px rgba(0, 194, 199, 0.18);
  --radius: 22px;
  --radius-sm: 16px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* UTILIDADES */
.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 44px;
  font-size: 1.02rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  width: auto;
}

.brand span {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.brand span small {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(0, 194, 199, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 194, 199, 0.35);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.94) 32%,
      rgba(255,255,255,0.78) 55%,
      rgba(255,255,255,0.35) 72%,
      rgba(255,255,255,0.05) 100%
    ),
    url("../Resource/img/hero.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(0,194,199,0.08), transparent 58%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 620px;
}

.hero-content {
  width: 100%;
  max-width: 620px;
  padding-right: 40px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 37, 64, 0.06);
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem); /* 🔥 balance perfecto */
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 18px;
  max-width: 600px;
  font-weight: 700;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* HERO CARD (por si luego lo vuelves a usar) */
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(160deg, #0A2540 0%, #14385f 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(10, 37, 64, 0.2);
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(0, 194, 199, 0.18);
  top: -90px;
  right: -60px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero-card h3,
.hero-card p,
.hero-card ul {
  position: relative;
  z-index: 1;
}

.hero-card h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-card li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* SERVICIOS */
.services {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 194, 199, 0.07), transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 194, 199, 0.22);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 194, 199, 0.16), rgba(10, 37, 64, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition), filter var(--transition);
}

.card:hover .card-icon i {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 12px rgba(0, 194, 199, 0.25));
}

.card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 0.96rem;
}

.card ul li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

/* CARDS SECUNDARIAS */
.benefits-grid,
.audience-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.mini-card,
.step-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.mini-card:hover,
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 194, 199, 0.18);
}

.mini-card h3,
.step-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.mini-card p,
.step-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 24px rgba(10, 37, 64, 0.18);
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, #0A2540 0%, #14385f 100%);
  color: var(--white);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
}

.cta-box .btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  white-space: nowrap;
}

/* CONTACTO */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card,
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover,
.contact-form:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 194, 199, 0.16);
}

.contact-card h3,
.contact-form h3 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.contact-card p,
.contact-form p {
  color: var(--muted);
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid rgba(10, 37, 64, 0.06);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: rgba(0, 194, 199, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 194, 199, 0.08);
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #0A2540 0%, #081c30 100%);
  color: var(--white);
  padding: 54px 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(0, 194, 199, 0.08);
}

.footer-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 55px;
  width: auto;
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.footer-title small {
  color: var(--accent);
}

.footer-text p {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  transition: color var(--transition), transform var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* FLOAT */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 40px rgba(0, 194, 199, 0.28);
  z-index: 1200;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 24px 50px rgba(0, 194, 199, 0.34);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .cards,
  .benefits-grid,
  .audience-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-wrap,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    display: grid;
  }

  .hero .container {
    min-height: 560px;
  }

  .hero-content {
    max-width: 560px;
    padding-right: 20px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 90px 0 80px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.94)),
      url("../Resource/img/hero.png");
    background-position: center right;
    background-size: cover;
  }

  .hero .container {
    min-height: auto;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .cards,
  .benefits-grid,
  .audience-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 78px 0 68px;
  }

  @media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}


  .hero p {
    font-size: 1rem;
  }

  .hero-card,
  .card,
  .mini-card,
  .step-card,
  .contact-card,
  .contact-form,
  .cta-box {
    padding: 22px;
  }

  .logo {
    height: 32px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    height: 45px;
  }

  .footer-title {
    font-size: 1rem;
  }
}


/* =========================
   ERROR 404 PAGE
========================= */

.error-page {
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top right, rgba(0, 194, 199, 0.08), transparent 30%),
    linear-gradient(180deg, #061321 0%, #091a2c 100%);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.error-box {
  max-width: 720px;
}

.error-code {
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  text-shadow: 0 0 24px rgba(0, 194, 199, 0.18);
  animation: float404 3s ease-in-out infinite;
}

.error-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}

.error-text {
  color: #A9B8C7;
  margin-bottom: 30px;
  font-size: 1.05rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@keyframes float404 {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.92;
  }
}

@media (max-width: 640px) {
  .error-page {
    min-height: calc(100vh - 74px);
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions a {
    width: 100%;
    max-width: 280px;
  }
}