:root {
  --bg: #050c16;
  --bg-2: #091526;
  --surface: rgba(11, 25, 44, 0.74);
  --surface-2: rgba(255, 255, 255, 0.04);
  --line: rgba(255,255,255,0.08);
  --text: #eef5ff;
  --muted: #a8b9d1;
  --primary: #168bff;
  --primary-2: #67c1ff;
  --primary-3: #0a5dc7;
  --shadow: 0 20px 50px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(26, 86, 170, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(38, 158, 255, 0.16), transparent 22%),
    linear-gradient(180deg, #08101d 0%, #050c16 100%);
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .55;
}

body > *:not(#particles-js) {
  position: relative;
  z-index: 1;
}

a { text-decoration: none; }

.custom-navbar {
  background: rgba(3, 9, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar-toggler { border-color: rgba(255,255,255,0.14); }
.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
.brand-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
}
.brand-subtitle,
.nav-link,
.section-text,
.feature-box,
.about-item p,
.service-card p,
.team-card p,
.portfolio-card p,
.project-stat p,
.client-card small,
.contact-list div,
.footer p {
  color: var(--muted);
}
.nav-link { font-weight: 500; }
.nav-link:hover { color: #fff; }
.btn-brand {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 0;
  color: #fff;
  padding: .9rem 1.55rem;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(22, 139, 255, 0.24);
}
.btn-brand:hover {
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline-light {
  border-radius: 999px;
  padding: .9rem 1.55rem;
}

.hero-section {
  padding-top: 130px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-container { padding-top: 2rem; padding-bottom: 4rem; }
.hero-badge,
.section-kicker,
.tag,
.hero-panel-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .62rem 1rem;
  border: 1px solid rgba(103,193,255,.18);
  background: rgba(103,193,255,.09);
  color: #d5ebff;
  font-size: .92rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 4.8vw, 4.75rem);
  line-height: 1.05;
  font-weight: 900;
  margin-bottom: 1.25rem;
  max-width: 10.5ch;
}
.hero-text {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 700px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.6rem;
}
.hero-mini-grid { margin-top: .5rem; }

.glass-card,
.feature-box,
.service-card,
.team-card,
.project-stat,
.portfolio-card,
.client-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel,
.about-card,
.premium-banner,
.technologies-card,
.contact-card,
.service-card,
.team-card,
.project-stat,
.portfolio-card,
.client-card,
.stat-card,
.feature-box {
  border-radius: 26px;
}

.hero-panel {
  position: relative;
  min-height: 560px;
  padding: 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.hero-logo {
  width: min(100%, 330px);
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 20px 35px rgba(0,0,0,.22));
}
.hero-panel-copy h3,
.section-title,
.about-item h4,
.service-card h4,
.team-card h5,
.portfolio-card h4,
.project-stat strong {
  color: #fff;
}
.hero-panel-copy h3 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: .75rem;
}
.hero-techs {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.hero-techs span,
.tech-tags span {
  padding: .6rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: #d8e6f5;
  font-size: .92rem;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(5px);
}
.orb-1 {
  width: 180px;
  height: 180px;
  background: rgba(22,139,255,.16);
  top: -40px;
  right: -20px;
}
.orb-2 {
  width: 130px;
  height: 130px;
  background: rgba(103,193,255,.14);
  bottom: -20px;
  left: -10px;
}

.trust-strip { padding-bottom: 1.5rem; }
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  background: rgba(255,255,255,0.03);
}
.trust-strip-inner span {
  text-align: center;
  color: #d7e6f7;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}
.trust-strip-inner i,
.feature-box i,
.about-item i,
.service-card i,
.contact-list i {
  color: var(--primary-2);
}

.section-space { padding: 100px 0; }
.compact-top { padding-top: 0; }
.section-dark {
  background: linear-gradient(180deg, rgba(9, 18, 33, 0.9), rgba(6, 11, 22, 0.96));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-title.center,
.section-text.center { text-align: center; }
.section-text {
  line-height: 1.85;
  font-size: 1rem;
}
.narrow { max-width: 760px; margin-inline: auto; }

.feature-box {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.1rem;
  height: 100%;
}
.about-card { padding: 1.8rem; display: grid; gap: 1rem; }
.about-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
}
.icon-wrap {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(22,139,255,.12);
  flex-shrink: 0;
}

.service-card,
.team-card,
.project-stat,
.portfolio-card,
.client-card,
.stat-card,
.socials a,
.whatsapp-float {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.service-card,
.team-card,
.portfolio-card,
.project-stat,
.client-card {
  padding: 1.8rem;
  height: 100%;
}
.service-card:hover,
.team-card:hover,
.portfolio-card:hover,
.project-stat:hover,
.client-card:hover,
.socials a:hover {
  transform: translateY(-8px);
  border-color: rgba(103,193,255,.28);
  box-shadow: 0 24px 55px rgba(0,0,0,.42);
}
.service-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), #7fd0ff);
}
.team-card h5,
.service-card h4,
.portfolio-card h4 { margin-bottom: .7rem; }

.stat-card {
  padding: 1.15rem 1rem;
  text-align: center;
  height: 100%;
}
.counter-card span {
  display: block;
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  font-weight: 900;
  color: #fff;
}
.project-stat {
  text-align: center;
}
.project-stat strong {
  font-size: clamp(2rem, 3vw, 3rem);
  display: block;
  margin-bottom: .4rem;
}

.premium-banner,
.technologies-card,
.contact-card { padding: 2rem; }
.premium-banner h3 { font-size: 1.8rem; margin-bottom: .9rem; }
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1rem;
}



.contact-section {
  background: linear-gradient(180deg, rgba(8, 16, 30, .72), rgba(4, 8, 15, .96));
}
.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}
.contact-list div {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.form-control {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 16px;
  padding: .95rem 1rem;
}
.form-control::placeholder { color: #94aac4; }
.form-control:focus {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: rgba(103,193,255,.42);
  box-shadow: 0 0 0 .2rem rgba(22,139,255,.14);
}

.footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.socials {
  display: flex;
  gap: .8rem;
}
.socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #16c35b, #2adf7d);
  box-shadow: 0 18px 36px rgba(0,0,0,.32);
  z-index: 30;
  font-size: 1.8rem;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  color: #fff;
}

@media (max-width: 1199.98px) {
  .hero-title { max-width: none; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 110px;
  }
  .hero-container { padding-bottom: 2rem; }
  .hero-panel { min-height: auto; }
  .section-space { padding: 82px 0; }
}

@media (max-width: 767.98px) {
  .brand-logo {
    width: 50px;
    height: 50px;
  }
  .brand-subtitle { font-size: .72rem; }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.12;
  }
  .hero-text {
    font-size: .98rem;
    line-height: 1.75;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .section-space { padding: 70px 0; }
  .premium-banner,
  .technologies-card,
  .contact-card,
  .hero-panel,
  .about-card,
  .service-card,
  .team-card,
  .project-stat,
  .portfolio-card,
  .client-card,
  .stat-card { border-radius: 22px; }
  .logo-card {
    min-height: 185px;
    padding: 1.2rem;
  }
  .logo-card img {
    max-height: 58px;
  }
  .clients-section .row > div:nth-child(3) .logo-card img { max-height: 68px; }
  .clients-section .row > div:nth-child(7) .logo-card img { max-height: 76px; }
  .whatsapp-float {
    width: 58px;
    height: 58px;
    font-size: 1.6rem;
  }
}


/* ===== Ajustes premium hero ===== */
.hero-section {
  min-height: auto;
  padding-top: 108px;
  padding-bottom: 28px;
}

.hero-container {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.hero-row {
  min-height: calc(100vh - 136px);
}

.hero-title {
  margin-top: .35rem;
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 620px;
}

.hero-panel {
  min-height: 500px;
}

/* ===== Formulario funcional ===== */
.contact-form .form-control,
.contact-form .form-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 16px;
  min-height: 54px;
  padding: .9rem 1rem;
  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.contact-form .form-control::placeholder {
  color: rgba(255,255,255,0.62);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  background: rgba(255,255,255,0.07);
  border-color: rgba(103,193,255,.55);
  color: #fff;
  box-shadow: 0 0 0 0.22rem rgba(22, 139, 255, 0.18);
}

.contact-form .form-select option {
  color: #111;
}

.form-status {
  display: none;
  font-size: .95rem;
  border-radius: 14px;
  padding: .85rem 1rem;
}

.form-status.show {
  display: block;
}

.form-status.ok {
  background: rgba(12, 172, 106, 0.12);
  border: 1px solid rgba(12, 172, 106, 0.35);
  color: #9df0c7;
}

.form-status.error {
  background: rgba(255, 82, 82, 0.12);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ffb7b7;
}

/* ===== Responsive ===== */
@media (min-width: 1200px) {
  .hero-section {
    padding-top: 98px;
  }

  .hero-container {
    padding-top: .25rem;
  }

  .hero-row {
    min-height: calc(100vh - 120px);
  }

  .hero-title {
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    max-width: 9.5ch;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 112px;
    min-height: auto;
  }

  .hero-container {
    padding-top: .5rem;
    padding-bottom: 1.5rem;
  }

  .hero-row {
    min-height: auto;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-panel {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 104px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 4rem);
    line-height: 1.02;
  }

  .hero-text {
    line-height: 1.7;
  }
}


/* =========================
   SECCION CLIENTES MEJORADA
========================= */
.clients-section .row {
  align-items: stretch;
}

.logo-card {
  height: 100%;
  min-height: 220px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  border-radius: 24px;
  background: rgba(8, 24, 44, 0.82);
  border: 1px solid rgba(103, 193, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.20);
  overflow: hidden;
}

.logo-card img {
  width: 100%;
  max-width: 150px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: none;
}

.logo-card small {
  display: block;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #c9d7ea;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

.clients-section .col-6,
.clients-section .col-md-4,
.clients-section .col-lg-3 {
  display: flex;
}

.client-card {
  width: 100%;
}

/* TABLET */
@media (max-width: 991.98px) {
  .logo-card {
    min-height: 210px;
    padding: 22px 16px;
  }

  .logo-card img {
    max-width: 135px;
    height: 64px;
  }

  .logo-card small {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

/* CELULAR */
@media (max-width: 575.98px) {
  .logo-card {
    min-height: 190px;
    padding: 18px 12px;
    gap: 12px;
    border-radius: 20px;
  }

  .logo-card img {
    max-width: 110px;
    height: 52px;
  }

  .logo-card small {
    font-size: 0.88rem;
    line-height: 1.35;
  }
}

/* =========================
   CLIENTES PRO LIMPIO
========================= */

.clients-section .row {
  align-items: stretch;
}

.clients-section .col-6,
.clients-section .col-md-4,
.clients-section .col-lg-3 {
  display: flex;
}

.client-card {
  width: 100%;
}

.logo-card {
  width: 100%;
  height: 100%;
  min-height: 220px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 14px;
  padding: 22px 16px;
  text-align: center;

  border-radius: 22px;
  background: rgba(8, 24, 44, 0.85);
  border: 1px solid rgba(103, 193, 255, 0.10);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* LOGO */
.logo-card img {
  width: 100%;
  max-width: 130px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* TEXTO */
.logo-card small {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #c9d7ea;
  text-align: center;
  word-break: break-word;
}

/* TABLET */
@media (max-width: 991px) {
  .logo-card {
    min-height: 200px;
  }

  .logo-card img {
    max-width: 120px;
    height: 55px;
  }
}

/* CELULAR */
@media (max-width: 575px) {
  .logo-card {
    min-height: 180px;
    padding: 16px 10px;
    gap: 10px;
  }

  .logo-card img {
    max-width: 100px;
    height: 48px;
  }

  .logo-card small {
    font-size: 0.85rem;
  }
}


















/* ==========================================
   LOADER PREMIUM AMERICANSOFT
========================================== */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #020812; /* 👈 fondo sólido */
  overflow: hidden;

  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(22, 139, 255, 0.12), transparent 28%),
    radial-gradient(circle at 50% 45%, rgba(103, 193, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(4, 10, 20, 0.78), rgba(2, 7, 14, 0.88));
}

.loader-content {
  position: relative;
  z-index: 2;
  width: min(90%, 420px);
  text-align: center;
  padding: 2rem 1.4rem;
}

.logo-glow-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
}

.loader-logo {
  position: relative;
  z-index: 3;
  width: 120px;
  height: auto;
  object-fit: contain;
  animation:
    logoPulseFade 2.6s ease-in-out infinite,
    logoFloat 3.8s ease-in-out infinite;
  filter:
    drop-shadow(0 0 10px rgba(40, 130, 255, 0.25))
    drop-shadow(0 0 28px rgba(40, 130, 255, 0.18));
}

.logo-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 130, 255, 0.28), transparent 68%);
  filter: blur(10px);
  animation: glowPulse 2.6s ease-in-out infinite;
  z-index: 1;
}

.logo-ring {
  position: absolute;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 1px solid rgba(103, 193, 255, 0.18);
  box-shadow:
    0 0 25px rgba(22, 139, 255, 0.12),
    inset 0 0 20px rgba(22, 139, 255, 0.05);
  animation: ringPulse 2.8s ease-in-out infinite;
  z-index: 2;
}

.loader-title {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.loader-subtitle {
  margin: 0 0 1.3rem;
  color: #bfd3eb;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

.loader-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 0 14px rgba(0,0,0,0.35);
}

.loader-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a5dc7, #168bff, #67c1ff);
  box-shadow: 0 0 18px rgba(22, 139, 255, 0.45);
  animation: loadingBar 2.8s ease-in-out forwards;
}

/* Animaciones */
@keyframes logoPulseFade {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.96);
    filter:
      drop-shadow(0 0 8px rgba(40, 130, 255, 0.16))
      drop-shadow(0 0 18px rgba(40, 130, 255, 0.10));
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
    filter:
      drop-shadow(0 0 12px rgba(40, 130, 255, 0.28))
      drop-shadow(0 0 35px rgba(40, 130, 255, 0.22));
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes ringPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes loadingBar {
  0% {
    width: 0%;
    opacity: 0.7;
  }
  20% {
    width: 22%;
  }
  45% {
    width: 48%;
  }
  70% {
    width: 76%;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* Opcional: evitar scroll mientras carga */
body.loading {
  overflow: hidden;
}

/* Celular */
@media (max-width: 575.98px) {
  .logo-glow-wrap {
    width: 150px;
    height: 150px;
  }

  .loader-logo {
    width: 100px;
  }

  .logo-glow {
    width: 110px;
    height: 110px;
  }

  .logo-ring {
    width: 140px;
    height: 140px;
  }

  .loader-content {
    width: min(92%, 360px);
    padding: 1.5rem 1rem;
  }
}

/* OCULTAR TODO MIENTRAS CARGA */
body.loading > *:not(#site-loader) {
  visibility: hidden;
}

.site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* OCULTAR CONTENIDO SUAVEMENTE */
body.loading > *:not(#site-loader) {
  opacity: 0;
  visibility: hidden;
}

/* TRANSICIÓN CUANDO APARECE */
body:not(.loading) > *:not(#site-loader) {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

/* ASEGURA FONDO SIEMPRE */
body {
  background: #050c16 !important;
}


/* ==========================================
   FIX RESPONSIVE - QUITAR SCROLL DERECHA
========================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

/* Evita que rows o elementos animados empujen el ancho */
.container,
.container-fluid,
.row {
  max-width: 100%;
}

/* Navbar responsive */
.custom-navbar .container {
  overflow: hidden;
}

.navbar-brand {
  max-width: calc(100% - 58px);
  min-width: 0;
  flex-wrap: nowrap;
}

.navbar-brand > div {
  min-width: 0;
  overflow: hidden;
}

.brand-title,
.brand-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* El badge largo del hero era una de las causas más probables */
.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

/* Título y textos */
.hero-title,
.hero-text,
.section-title,
.section-text {
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Botones del hero */
.hero-actions {
  width: 100%;
}

.hero-actions .btn {
  max-width: 100%;
  white-space: normal;
}

/* Mini estadísticas */
.hero-mini-grid {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Panel derecho */
.hero-panel,
.hero-logo,
.hero-panel-copy,
.hero-techs {
  max-width: 100%;
}

.hero-techs {
  overflow: hidden;
}

.hero-techs span,
.tech-tags span {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Imágenes y cards */
img {
  max-width: 100%;
  height: auto;
}

/* Partículas */
#particles-js {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Loader no debe empujar ancho */
.site-loader,
.loader-content,
.loader-backdrop {
  max-width: 100%;
  overflow: hidden;
}

/* Celular */
@media (max-width: 767.98px) {
  .custom-navbar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-brand {
    gap: 10px !important;
    max-width: calc(100% - 56px);
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .hero-section {
    overflow: hidden;
  }

  .hero-container {
    overflow: hidden;
  }

  .hero-badge {
    font-size: 0.83rem;
    padding: 0.7rem 0.9rem;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(1.9rem, 11vw, 3rem);
    line-height: 1.05;
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-panel {
    padding: 1.3rem;
  }

  .hero-logo {
    width: min(100%, 220px);
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 420px) {
  .navbar-brand {
    max-width: calc(100% - 52px);
  }

  .brand-title {
    font-size: 0.88rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .hero-badge {
    font-size: 0.78rem;
  }
}