/* ════════════════════════════════════════
   LAYOUT — Navbar, Hero, Secciones, Footer
   AdonisIA Landing · Mayo 2026
   ════════════════════════════════════════ */

/* ══ NAVBAR ══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 1px 12px rgba(45, 106, 143, 0.07);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(45, 106, 143, 0.12);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--carbon);
}

.navbar__logo-text span {
  color: var(--mint);
}

.navbar__links {
  display: none;
  align-items: center;
  gap: 20px;
}

.navbar__link {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.navbar__link:hover {
  color: var(--carbon);
}

.navbar__cta {
  background: var(--mint);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
}

.navbar__cta:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
}

.navbar__hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--carbon);
  font-size: 20px;
  padding: 4px;
  line-height: 1;
}

/* ── Menú móvil ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  box-shadow: 0 8px 24px rgba(45, 106, 143, 0.1);
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu__link {
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition:
    color 0.2s,
    background 0.2s;
  display: block;
}

.mobile-menu__link:hover {
  color: var(--carbon);
  background: #f8fafc;
}

.mobile-menu__link--cta {
  color: var(--mint-dark);
  font-weight: 700;
  padding: 16px 24px;
  border-bottom: none;
}

.mobile-menu__link--cta:hover {
  color: var(--mint);
  background: var(--mint-50);
}

@media (min-width: 768px) {
  .navbar {
    padding: 0 40px;
  }

  .navbar__links {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }
}

/* ══ HERO ══ */
#hero {
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 98px 20px 96px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #d1e8e6 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(58, 175, 169, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-50);
  border: 1px solid rgba(58, 175, 169, 0.25);
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__badge strong {
  color: var(--mint-dark);
}

.hero__h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.5vw, 58px);
  font-weight: 800;
  color: var(--carbon);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(15px, 2vw, 19px);
  color: #4a5568;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__cta {
  font-size: 16px;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cta);
  margin-bottom: 12px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.hero__trust-item i {
  color: var(--mint);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* ══ SECCIÓN: Demo Chat ══ */
#demo {
  background: var(--offwhite);
  padding: 96px 20px;
}

.demo__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .demo__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.demo__chatwin {
  background: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(45, 106, 143, 0.12);
}

@media (min-width: 1024px) {
  .demo__chatwin {
    margin-left: auto;
    margin-right: 0;
  }
}

/* ══ SECCIÓN: De cero a facturando ══ */
#proceso {
  padding: 96px 20px;
  background: linear-gradient(180deg, var(--offwhite) 0%, var(--slate-50) 100%);
}

.proceso__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .proceso__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .proceso__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ══ SECCIÓN: Planes ══ */
#planes {
  background: var(--offwhite);
  padding: 96px 20px;
}

/* ══ TEXTO de sección ══ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--carbon);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.65;
  max-width: 460px;
  margin: 0 auto;
}

/* ══ FOOTER ══ */
footer {
  background: #111827;
  padding: 48px 20px;
}

@media (min-width: 768px) {
  footer {
    padding: 48px 40px;
  }
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__brand p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 220px;
  line-height: 1.6;
  margin-top: 10px;
}

.footer__nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__nav-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer__nav-col a {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__nav-col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.footer__social:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Layout extraído de inline HTML ── */
.cred-bar {
  background: #111827;
  padding: 18px 20px;
  overflow: hidden;
}

.cred-bar__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.cred-clients-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cred-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  max-width: 680px;
}

#era-ia {
  background: linear-gradient(135deg, #0f1923 0%, #1a2d40 50%, #0d2016 100%);
  padding: 96px 20px;
  position: relative;
  overflow: hidden;
}

#era-ia::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(58, 175, 169, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
}

#era-ia::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(46, 204, 143, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
}

#era-ia .section-eyebrow,
#cta-final .section-eyebrow {
  color: #5ecdc7 !important;
  background: rgba(58, 175, 169, 0.18) !important;
  border-color: rgba(58, 175, 169, 0.35) !important;
}

#era-ia .section-header p {
  color: rgba(255, 255, 255, 0.72) !important;
}

#autonomia {
  background: #fff;
  padding: 96px 20px;
}

#autonomia .text-gray-400 {
  color: #94a3b8 !important;
}

#modulos {
  background: #f8f9fa;
  padding: 96px 20px;
}

#por-que {
  background: linear-gradient(180deg, #fff 0%, #f0faf9 100%);
  padding: 96px 20px;
}

#cta-final {
  background: linear-gradient(135deg, #1a3a4a 0%, #1d5a54 50%, #1a3a2a 100%);
  padding: 96px 20px;
  position: relative;
  overflow: hidden;
}

#cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  pointer-events: none;
}

.navbar__links {
  gap: 20px;
}

@media (max-width: 767px) {
  .cred-divider {
    display: none;
  }

  .cred-bar__inner {
    gap: 20px 32px;
  }
}
