/* AVC El Salvador — diseño renovado */
:root {
  --avc-ink: #071426;
  --avc-ink-soft: #0c1d34;
  --avc-blue: #2563eb;
  --avc-cyan: #42d7f5;
  --avc-violet: #8b5cf6;
  --avc-text: #18243a;
  --avc-muted: #68758a;
  --avc-light: #f4f7fb;
  --avc-border: #e2e8f0;
  --avc-white: #fff;
  --avc-radius: 22px;
  --avc-shadow: 0 18px 55px rgba(8, 25, 52, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--avc-text); background: #fff; overflow-x: hidden; }
body.drawer-open { overflow: hidden; }
h1,h2,h3,h4,.navbar-brand { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.035em; }
a { text-decoration: none; }
section[id] { scroll-margin-top: 88px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 3000; background: white; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.avc-navbar { padding: 15px 0; background: rgba(5, 17, 34, .87); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); transition: padding .25s, box-shadow .25s, background .25s; }
.avc-navbar.scrolled { padding: 9px 0; background: rgba(5,17,34,.97); box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.brand-logo { width: 39px; height: 39px; object-fit: cover; border-radius: 10px; background: white; }
.navbar-brand { color: white; font-size: 1.08rem; font-weight: 700; letter-spacing: -.04em; }
.brand-accent { color: var(--avc-cyan); }
.avc-navbar .nav-link { color: #d8e1ef; font-size: .88rem; font-weight: 600; padding: .7rem .8rem !important; transition: color .2s; }
.avc-navbar .nav-link:hover,.avc-navbar .nav-link.active { color: var(--avc-cyan); }
.nav-cta { display: inline-flex; align-items: center; padding: .68rem 1.05rem; border-radius: 999px; background: var(--avc-blue); color: white; font-size: .87rem; font-weight: 700; transition: transform .2s, background .2s; }
.nav-cta:hover { background: #3b82f6; color: white; transform: translateY(-2px); }
.navbar-toggler { border-color: rgba(255,255,255,.3); }

/* ✅ HERO - Corrección principal */
.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: radial-gradient(ellipse at 78% 40%, #163e72 0, transparent 37%),
              linear-gradient(115deg, #061222 0%, #081a32 54%, #0a2040 100%);
  padding: 145px 0 35px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .14;
  background-image: linear-gradient(rgba(148,190,255,.2) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,190,255,.2) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, black, transparent 95%);
}

/* ✅ CRÍTICO: Sobrescribir container de Bootstrap para hero-content */
.hero-section > .container.hero-content {
  display: grid !important;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 3rem;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  box-sizing: border-box;
}

.hero-kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #4bbde9;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #42e8b4;
  box-shadow: 0 0 0 5px rgba(66,232,180,.12);
}

.hero-copy h1 {
  margin: 1.4rem 0 1.25rem;
  font-size: clamp(2.65rem, 5vw, 4.55rem);
  line-height: 1.06;
  font-weight: 700;
}

.hero-copy h1 span,
.section-heading h2 span,
.ecosystem-heading h2 span {
  color: var(--avc-cyan);
}

.hero-lead {
  max-width: 590px;
  color: #b9c8dc;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.btn-avc-primary, .btn-avc-glass, .btn-whatsapp {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .9rem 1.25rem;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-avc-primary {
  color: white;
  border: 1px solid #3478f6;
  background: linear-gradient(120deg, #2563eb, #397cf3);
  box-shadow: 0 10px 25px rgba(37,99,235,.25);
}

.btn-avc-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37,99,235,.32);
}

.btn-avc-glass {
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.055);
}

.btn-avc-glass:hover {
  color: white;
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 2.8rem;
}

.proof-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66,215,245,.24);
  border-radius: 13px;
  background: rgba(66,215,245,.1);
  color: var(--avc-cyan);
  font-size: 1.2rem;
}

.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { font-size: .9rem; }
.hero-proof span { margin-top: .2rem; color: #92a6c0; font-size: .78rem; }

.hero-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.visual-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(75,189,233,.22);
  border-radius: 50%;
}

.orbit-two {
  width: 460px;
  height: 460px;
  border-style: dashed;
  border-color: rgba(139,92,246,.18);
}

.visual-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: #2563eb;
  filter: blur(100px);
  opacity: .28;
}

.tech-card {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 1.25rem;
  border: 1px solid rgba(151,194,255,.25);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(21,43,73,.95), rgba(9,25,46,.94));
  box-shadow: 0 28px 80px rgba(0,0,0,.3);
  transform: rotate(-2deg);
}

.code-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.code-top > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b81;
}

.code-top > span:nth-child(2) { background: #ffc857; }
.code-top > span:nth-child(3) { background: #42e8b4; }
.code-top small {
  margin-left: auto;
  color: #7188a6;
  font-size: .62rem;
  letter-spacing: .1em;
}

.code-lines {
  padding: 1.1rem .2rem .5rem;
  color: #d4e4f8;
  font: .83rem/2 'SFMono-Regular', Consolas, monospace;
}

.code-lines p { margin: 0; white-space: nowrap; }
.code-lines .indent { padding-left: 1.3rem; }
.code-purple { color: #c4a1ff; }
.code-green { color: #8de5bd; }
.code-blue { color: #5bd5f3; }

.code-bottom {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #9eb3cc;
  font-size: .75rem;
}

.code-bottom i { color: #42e8b4; }

.floating-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(180,213,255,.18);
  border-radius: 13px;
  background: rgba(9,27,50,.92);
  box-shadow: 0 14px 35px rgba(0,0,0,.2);
  color: #dceaff;
  font-size: .8rem;
  font-weight: 700;
  animation: float 5s ease-in-out infinite;
}

.floating-chip i { color: var(--avc-cyan); font-size: 1.05rem; }
.chip-robot { top: 7%; right: 0; }
.chip-code { bottom: 11%; left: -2%; animation-delay: -1.7s; }
.chip-ai { bottom: 3%; right: 5%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ✅ CRÍTICO: hero-bottom con container de Bootstrap sobrescrito */
.hero-section > .hero-bottom.container {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  box-sizing: border-box;
  gap: 24px;
  color: #aabbd1;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero-section > .hero-bottom.container > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-section > .hero-bottom.container > span:first-child {
  margin-right: auto;
}

.hero-section > .hero-bottom.container > span:last-child {
  text-align: right;
  margin-left: auto;
}

.credentials-section { padding: 105px 0 90px; background: white; }
.section-heading { max-width: 720px; margin-bottom: 2.6rem; }
.section-heading h2, .ecosystem-heading h2 {
  margin: .8rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 700;
}
.section-heading h2 span { color: var(--avc-blue); }
.section-heading p, .ecosystem-heading > p { color: var(--avc-muted); line-height: 1.8; }
.section-heading-center { margin-right: auto; margin-left: auto; text-align: center; }
.section-heading-center .eyebrow { justify-content: center; }
.credentials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.credential-card {
  padding: 1.8rem;
  border: 1px solid var(--avc-border);
  border-radius: var(--avc-radius);
  background: #fff;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.credential-card:hover { transform: translateY(-5px); border-color: #c7d9fb; box-shadow: var(--avc-shadow); }
.credential-featured { background: linear-gradient(145deg, #f2f7ff, #fff); border-color: #c9dcff; }
.credential-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  background: #e8f0ff;
  color: var(--avc-blue);
  font-size: 1.3rem;
}
.credential-tag, .course-number { color: #71809a; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.credential-card h3 { margin: .8rem 0; font-size: 1.35rem; line-height: 1.3; font-weight: 700; }
.credential-card p { min-height: 48px; color: var(--avc-muted); font-size: .88rem; line-height: 1.7; }
.credential-date {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--avc-border);
  color: #35517c;
  font-size: .78rem;
  font-weight: 700;
}
.profile-signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--avc-border);
}
.signature-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  color: white;
  background: var(--avc-ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}
.profile-signature h3 { margin: .25rem 0; font-size: 1.2rem; }
.profile-signature p { margin: 0; color: var(--avc-muted); font-size: .85rem; }
.section-pad { padding: 95px 0; }
.courses-section { background: var(--avc-light); }
.course-card {
  overflow: hidden;
  border: 1px solid #e5ebf4;
  border-radius: var(--avc-radius);
  background: white;
  box-shadow: 0 8px 28px rgba(11,32,63,.035);
  transition: transform .25s, box-shadow .25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--avc-shadow); }
.course-art {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  color: white;
}
.course-art::before, .course-art::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.course-art::after { width: 250px; height: 250px; }
.course-art > i {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.2));
}
.course-art > span {
  position: absolute;
  bottom: 1rem;
  left: 1.3rem;
  z-index: 1;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.art-office { background: linear-gradient(130deg, #1453b9, #31a4e8); }
.art-design { background: linear-gradient(130deg, #6d28d9, #c084fc); }
.art-code { background: linear-gradient(130deg, #0f766e, #22c5a5); }
.course-body { padding: 1.6rem; }
.course-body h3 { margin: .65rem 0; font-size: 1.35rem; font-weight: 700; }
.course-body p { min-height: 76px; color: var(--avc-muted); font-size: .9rem; line-height: 1.75; }
.course-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--avc-blue);
  font-size: .87rem;
  font-weight: 800;
}
.course-link i { transition: transform .2s; }
.course-link:hover i { transform: translateX(4px); }
.ecosystem-section { color: white; background: var(--avc-ink); }
.ecosystem-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.ecosystem-heading h2 { margin-bottom: 0; }
.ecosystem-heading > p { max-width: 380px; margin-bottom: .25rem; color: #aabbd1; }
.ecosystem-carousel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: #030a14;
}
.ecosystem-carousel .carousel-item { text-align: center; }
.ecosystem-carousel img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #030a14;
}
.ecosystem-carousel .carousel-control-prev,
.ecosystem-carousel .carousel-control-next { width: 9%; }
.ecosystem-carousel .carousel-indicators { margin-bottom: .6rem; }
.ecosystem-video-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}
.ecosystem-video-row p { margin: 0; color: #b4c4d9; font-size: .9rem; }
.gallery-section { background: white; }
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: #e7edf6;
  aspect-ratio: 4/3;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(5,18,38,.0);
  opacity: 0;
  transition: opacity .25s, background .25s;
  font-size: 1.5rem;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
  background: rgba(5,18,38,.42);
}
.contact-section { padding-top: 30px; background: white; }
.contact-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: 3.3rem;
  border-radius: 26px;
  color: white;
  background: linear-gradient(115deg, #0a1c35, #123d70);
}
.contact-orb {
  position: absolute;
  right: 25%;
  top: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(50,132,255,.2);
  filter: blur(2px);
}
.contact-copy, .contact-actions { position: relative; z-index: 1; }
.contact-copy h2 { margin: .7rem 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.contact-copy p { max-width: 480px; margin: 0; color: #b5c8e1; line-height: 1.7; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-whatsapp { color: white; background: #16a765; border: 1px solid #16a765; }
.btn-whatsapp:hover { color: white; background: #128b54; transform: translateY(-2px); }
.site-footer { padding: 2.4rem 0 1.2rem; color: #aab9cc; background: #050f1e; }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.7rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.footer-brand img { width: 37px; height: 37px; object-fit: cover; border-radius: 9px; }
.footer-brand b { color: var(--avc-cyan); }
.footer-main p { margin: 0; font-size: .82rem; }
.footer-social { display: flex; gap: .55rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: #d9e5f5;
  transition: background .2s, color .2s;
}
.footer-social a:hover { color: white; background: var(--avc-blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: .74rem;
}
.footer-bottom strong { color: #e5eefb; }
.whatsapp-float {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  background: #18b968;
  box-shadow: 0 10px 28px rgba(24,185,104,.35);
  font-size: 1.65rem;
  transition: transform .2s;
}
.whatsapp-float:hover { color: white; transform: translateY(-4px) scale(1.04); }
.edge-trigger {
  position: fixed;
  z-index: 1200;
  top: 48%;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem .65rem;
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  background: #102b4d;
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  font-size: .72rem;
  font-weight: 800;
  writing-mode: vertical-rl;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
.edge-trigger:hover { background: var(--avc-blue); }
.edge-trigger-left { left: 0; border-radius: 0 12px 12px 0; }
.edge-trigger-right { right: 0; border-radius: 12px 0 0 12px; }
.edge-trigger-right span { transform: rotate(180deg); }
.drawer-backdrop {
  position: fixed;
  z-index: 1290;
  inset: 0;
  background: rgba(1,8,19,.58);
  backdrop-filter: blur(3px);
}
.drawer-backdrop[hidden] { display: none; }
.resource-drawer {
  position: fixed;
  z-index: 1300;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(390px, 92vw);
  display: flex;
  flex-direction: column;
  color: #e8f0fb;
  background: #08182c;
  border-right: 1px solid rgba(255,255,255,.1);
  box-shadow: 20px 0 70px rgba(0,0,0,.3);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.resource-drawer.is-open { transform: translateX(0); visibility: visible; }
.resource-drawer.drawer--right {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,.1);
  transform: translateX(105%);
}
.resource-drawer.drawer--right.is-open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.7rem 1.35rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.drawer-header .eyebrow { font-size: .62rem; }
.drawer-header h2 { margin: .5rem 0 0; font-size: 1.35rem; }
.drawer-close {
  flex: 0 0 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  color: white;
  background: rgba(255,255,255,.06);
}
.drawer-content { overflow-y: auto; padding: 1.25rem .9rem; }
.drawer-label {
  margin: 0 0 .55rem .45rem;
  color: #7890af;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.drawer-content > a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem .65rem;
  border-radius: 12px;
  color: #c8d7e9;
  transition: background .2s, color .2s;
}
.drawer-content > a:hover { color: white; background: rgba(63,132,235,.15); }
.drawer-content > a > i:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--avc-cyan);
  background: rgba(66,215,245,.1);
}
.drawer-content > a span { display: flex; flex: 1; flex-direction: column; gap: .18rem; }
.drawer-content > a strong { font-size: .83rem; }
.drawer-content > a small { color: #8297b2; font-size: .7rem; }
.drawer-content .drawer-arrow { color: #7188a5; font-size: .7rem; }
.drawer-footer {
  margin-top: auto;
  padding: 1rem 1.35rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #8ea5c0;
  font-size: .75rem;
}
.drawer-footer i { margin-right: .4rem; color: #f6c86a; }
.gallery-modal {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  color: white;
  background: #071426;
}
.gallery-modal .modal-header { border-bottom-color: rgba(255,255,255,.1); }
.gallery-modal .modal-title { font-weight: 700; }
.gallery-modal .modal-body img {
  display: block;
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
}
.gallery-modal video { display: block; max-height: 78vh; background: black; }

/* ===== MEDIA QUERIES ===== */
@media (max-width: 991.98px) {
  .avc-navbar .navbar-collapse { padding: .75rem 0 1rem; }
  .avc-navbar .nav-link { padding: .65rem .2rem !important; }
  .nav-cta { margin-top: .4rem; }

  .hero-section > .container.hero-content {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 0 24px !important;
  }

  .hero-section { padding-top: 135px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 370px; margin: 0 auto; width: min(100%, 600px); }

  .hero-section > .hero-bottom.container {
    margin-top: 1rem;
    padding: 0 24px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .hero-section > .hero-bottom.container > span:first-child {
    margin-right: 0;
  }

  .hero-section > .hero-bottom.container > span:last-child {
    margin-left: 0;
    text-align: left;
  }

  .credentials-grid { grid-template-columns: 1fr 1fr; }
  .credential-card:last-child { grid-column: 1/-1; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
  .contact-actions { margin-top: .3rem; }
}

@media (max-width: 575.98px) {
  html { scroll-padding-top: 76px; }
  .avc-navbar { padding: 10px 0; }
  .brand-logo { width: 34px; height: 34px; }
  .navbar-brand { font-size: .98rem; }

  .hero-section { min-height: 0; padding: 120px 0 25px; }
  .hero-copy h1 { font-size: clamp(2.4rem, 11vw, 3.35rem); }
  .hero-lead { font-size: .98rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 310px; transform: scale(.93); }
  .tech-card { padding: 1rem; }
  .code-lines { font-size: .68rem; }
  .visual-orbit { width: 270px; height: 270px; }
  .orbit-two { width: 330px; height: 330px; }
  .chip-robot { right: -1%; }
  .chip-code { left: -2%; }
  .floating-chip { padding: .65rem .75rem; font-size: .7rem; }

  .hero-section > .hero-bottom.container {
    align-items: flex-start;
    flex-direction: column;
    gap: .7rem;
    padding-top: 1.2rem;
    font-size: .62rem;
    padding: 0 20px !important;
  }

  .hero-section > .hero-bottom.container > span:last-child {
    text-align: left;
  }

  .credentials-section, .section-pad { padding: 70px 0; }
  .section-heading h2, .ecosystem-heading h2 { font-size: 2.2rem; }
  .credentials-grid { grid-template-columns: 1fr; }
  .credential-card:last-child { grid-column: auto; }
  .credential-card p { min-height: auto; }
  .profile-signature { align-items: flex-start; }

  .ecosystem-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .ecosystem-carousel img { max-height: 300px; }
  .ecosystem-video-row { align-items: flex-start; flex-direction: column; }
  .contact-panel { padding: 2rem 1.4rem; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .btn { width: 100%; }

  .footer-main, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-main { gap: 1rem; }
  .footer-bottom { gap: .6rem; }
  .edge-trigger { top: auto; bottom: 105px; padding: .7rem .48rem; font-size: .62rem; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 51px; height: 51px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== Ajustes desktop grande ===== */
@media (min-width: 992px) {
  .hero-section {
    padding-top: 128px;
    padding-bottom: 48px;
    min-height: 720px;
  }

  .hero-section > .container.hero-content {
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
    gap: clamp(3rem, 6vw, 6rem);
    padding: 0 clamp(28px, 4.2vw, 68px) !important;
  }

  .hero-copy {
    max-width: 590px;
    padding-left: 0 !important;
  }

  .hero-copy h1 {
    max-width: 10.5ch;
    font-size: clamp(3.25rem, 4.25vw, 4.65rem);
    line-height: 1.04;
    letter-spacing: -.035em;
  }

  .hero-lead { max-width: 510px; }
  .hero-visual { min-height: 460px; }
  .visual-orbit { width: 390px; height: 390px; }
  .orbit-two { width: 490px; height: 490px; }
  .tech-card { width: min(100%, 440px); }

  .hero-section > .hero-bottom.container {
    padding: 1.25rem clamp(28px, 4.2vw, 68px) 0 !important;
  }
}

@media (min-width: 1400px) {
  .hero-section > .container.hero-content,
  .hero-section > .hero-bottom.container {
    width: min(100% - 96px, 1320px) !important;
  }
  .hero-section > .container.hero-content { gap: 6rem; }
}

@media (max-width: 991.98px) {
  .hero-section > .container.hero-content {
    width: min(100% - 36px, 760px) !important;
    margin-inline: auto !important;
  }
  .hero-copy h1 { max-width: 13ch; }
}

@media (max-width: 575.98px) {
  .hero-section > .container.hero-content {
    width: calc(100% - 32px) !important;
  }
}

.edge-trigger-left { display: none !important; }
.edge-trigger-right { right: 0; left: auto; border-radius: 14px 0 0 14px; }
.resource-drawer {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid rgba(255,255,255,.1);
  transform: translateX(105%);
}
.resource-drawer.is-open { transform: translateX(0); }