*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

:root {
  --blue: #29b6e8;
  --blue-dark: #1a7fb5;
  --white: #ffffff;
  --overlay: rgba(10, 20, 35, 0.62);
}

body {
  font-family: "Poppins", sans-serif;
  background: #0a1420;
  min-height: 100vh;
  overflow-x: hidden !important;
}

/* ── HERO ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}


.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 18, 32, 0.72) 0%,
    rgba(8, 18, 32, 0.45) 60%,
    rgba(8, 18, 32, 0.3) 100%
  );
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(10, 20, 32, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo svg {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding-bottom: 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

/* ── HERO CONTENT ── */
.hero-content-wrapper {
  width: 78%;
  height: 100%;
  margin-left: auto;
  background: transparent linear-gradient(180deg, rgba(14, 14, 14, 0.168) 0%, rgba(14, 14, 14, 0.602) 100%) 0% 0% no-repeat padding-box;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 80px 40px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 5%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 8px 16px;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #61b5e4;
  flex-shrink: 0;
}

.badge span {
  color: #61b5e4;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.title-white {
  color: var(--white);
  font-size: clamp(60px, 8vw, 92px);
  display: block;
}

.title-blue {
  color: #61b5e4;
  font-size: clamp(55px, 6.5vw, 84px);
  display: block;
  margin-top: 0px;
}

.hero-columns {
  display: flex;
  align-items: flex-end;
  gap: 60px;
  margin-top: 40px;
  position: relative;
  z-index: 20;
  margin-left: -30%;
}

.hero-col-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0;
  width: 50vw;
}

.hero-col-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
}

.hero-desc {
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 0;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px 24px;
  width: fit-content;
  
  margin-left: 10%;
}

.cert-card .icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-card .icon-wrap svg {
  width: 40px;
  height: 44px;
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
}

.cert-value {
  font-size: 13px;
  color: #0f172a;
  font-weight: 700;
  margin-top: 2px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

.btn-primary {
  background: #61b5e4;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #4fa3d1;
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

/* ── PROGRESS BAR ── */
.progress-track {
  width: 50vw !important;
  min-width: 320px;
  /* max-width: 380px; */
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  width: 38%;
  height: 100%;
  background: linear-gradient(to right, #1d4ed8, #61b5e4);
  border-radius: 3px;
}

/* ── LAYOUT WRAPPER ── */
.hero-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-body {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 82px;
  position: relative;
}

/* Responsive Hero Layout */
@media (max-width: 1200px) {
  .hero-content-wrapper {
    width: 85%;
    padding: 60px 40px 60px 60px;
  }
}

@media (max-width: 991px) {
  .hero-content-wrapper {
    width: 100%;
    padding: 40px;
    border-left: none;
  }
  .hero-columns {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    margin-left: 0;
    margin-top: 40px;
  }
  .hero-col-left {
    margin-left: 0; /* Reset negative margin on mobile */
  }
  .progress-track {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .title-white { font-size: clamp(40px, 8vw, 60px); }
  .title-blue { font-size: clamp(35px, 6.5vw, 55px); }
  .btn-row {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ── CATEGORIES BAR ── */
.categories-bar {
  background: #F1F5F9;
  padding: 25px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Sombreado abajo */
  position: relative;
  z-index: 10;
}

.cat-pill {
  background: #E2E8F0;
  border: 1px solid #E2E8F0;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2d3f55;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.cat-pill:hover {
  border-color: #29b6e8;
  color: #29b6e8;
  box-shadow: 0 2px 12px rgba(41, 182, 232, 0.15);
}

/* ── SERVICES SECTION ── */
.services-section {
  background: #f4f6f8;
  padding: 80px 60px 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  color: #2d3f55;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-underline {
  width: 70px;
  height: 4px;
  background: #29b6e8;
  border-radius: 2px;
  margin: 18px auto 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(41, 182, 232, 0.13);
  transform: translateY(-4px);
}

.service-icon {
  width: 75px;
  height: 75px;
  flex-shrink: 0;
}

.service-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #1e2d40;
  line-height: 1.3;
  margin: 0;
}

.service-desc {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #5a6a7e;
  line-height: 1.7;
  font-weight: 400;
  margin: 0;
}

/* ── BRAND BANNER ── */
.brand-banner {
  background: #eef1f5;
  display: flex;
  align-items: stretch;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.brand-banner-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
  min-width: 0;
}

.brand-banner-logo {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-banner-logo svg {
  width: 771px;
  height: 162px;
  max-width: 100%;
}

.brand-banner-name {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 6vw, 88px);
  color: #1e3257;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-banner-right {
  width: 42%;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.brand-banner-right img {
  height: 100%;
  max-height: 480px;
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

/* ── VENTAJAS SECTION ── */
.ventajas-section {
  background: #ffffff;
  padding: 90px 80px;
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 100%;
}

.ventajas-left {
  flex: 1;
  min-width: 0;
}

.ventajas-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 46px);
  color: #0f1e33;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 52px;
}

.ventajas-title .highlight {
  color: #29b6e8;
}

.ventaja-item {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.ventaja-num {
  background: #0f1e33;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ventaja-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
}

.ventaja-label {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #8a9ab0;
  letter-spacing: 0.04em;
}

.ventaja-desc {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: #2d3f55;
  line-height: 1.6;
  font-weight: 400;
}

/* ── STATS GRID ── */
.ventajas-right-wrap {
  background: #5BB8E82F;
  border-radius: 20px;
  padding: 20px 20px 60px 20px;
  width: 48%;
  flex-shrink: 0;
}

.ventajas-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.ventajas-right .stat-card:nth-child(even) {
  transform: translateY(40px);
}

.stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: #0f1e33;
}

.stat-number.blue {
  color: #29b6e8;
}

.stat-label {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a8fa8;
}

/* ── HISTORIA SECTION ── */
.historia-section {
  background: #F8F6F6;
  padding: 90px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* Left col */
.historia-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.historia-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 40px);
  color: #0f1e33;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
}

.historia-desc {
  font-family: "Poppins", sans-serif;
  font-size: 14.5px;
  color: #4a5a70;
  line-height: 1.75;
  font-weight: 400;
  margin: 0;
}

.historia-left img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

/* Middle col */
.historia-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.mision-card {
  background: #5bb8e8;
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mision-card .card-icon svg {
  width: 60px;
  height: auto;
}

.mision-card .card-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mision-card .card-text {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

/* Right col */
.historia-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  height: 100%;
}

.deco-logo {
  width: 80%;
  max-width: 200px;
  height: auto;
  opacity: 1;
}

.vision-card {
  background: #0f1e33;
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.vision-card .card-icon svg {
  width: 70px;
  height: auto;
}

.vision-card .card-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vision-card .card-text {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

/* ── CONTACTO SECTION ── */
.contacto-section {
  display: flex;
  align-items: stretch;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 40px 0;
}

.contacto-left {
  background: #0f1e33;
  flex: 1;
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}

.contacto-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 38px);
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

.contacto-title .highlight {
  color: #29b6e8;
}

.contacto-desc {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 420px;
}

.contacto-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contacto-item svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.contacto-item span {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.contacto-right {
  width: 52%;
  flex-shrink: 0;
  min-height: 460px;
  position: relative;
}

.contacto-right iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 0 20px 20px 0;
}

/* ── FOOTER ── */
footer {
  background: #eef1f5;
  padding: 48px 60px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-logo svg {
  width: 180px;
  height: auto;
}

.footer-copy {
  font-family: "Poppins", sans-serif;
  font-size: 11.5px;
  color: #7a8fa8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

/* ── FOOTER ── */
.site-footer {
  background: #eef1f5;
  padding: 48px 60px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer-logo svg {
  width: 200px;
  height: auto;
}
.footer-copy {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: #8a9ab0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

#servicios{
  background-color: #F8FAFC;
}

/* Scroll offset for fixed nav */
#inicio,
#servicios,
#ventajas,
#acerca,
#contacto {
  scroll-margin-top: 80px;
}

/* ══════════════════════════════════════
     ANIMACIONES SERVAC
  ══════════════════════════════════════ */

/* ── 1. SHIMMER en ALTO RENDIMIENTO ── */
.title-blue {
  background: linear-gradient(
    90deg,
    #29b6e8 0%,
    #a8ecff 45%,
    #29b6e8 60%,
    #1a7fb5 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 250% center;
  }
}

/* ── 2. PULSE en badge dot ── */
.badge-dot {
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(41, 182, 232, 0.7);
}
@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(41, 182, 232, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(41, 182, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(41, 182, 232, 0);
  }
}

/* ── 3. REVEAL AL SCROLL ── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal {
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left {
  transform: translateX(-46px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
  transform: translateX(46px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.delay-1 {
  transition-delay: 0.1s !important;
}
.delay-2 {
  transition-delay: 0.2s !important;
}
.delay-3 {
  transition-delay: 0.3s !important;
}
.delay-4 {
  transition-delay: 0.4s !important;
}
.delay-5 {
  transition-delay: 0.5s !important;
}
.delay-6 {
  transition-delay: 0.6s !important;
}

/* ── 4. SHINE SWEEP en botón primario ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out infinite;
}
@keyframes btn-shine {
  0% {
    left: -80%;
  }
  45%,
  100% {
    left: 130%;
  }
}

/* ── 5. FLOAT en cert-card ── */
.cert-card {
  animation: float-card 4s ease-in-out infinite;
}
@keyframes float-card {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ── 6. HOVER GLOW en service-card ── */
.service-card {
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease !important;
}
.service-card:hover {
  box-shadow:
    0 14px 44px rgba(41, 182, 232, 0.22),
    0 2px 10px rgba(0, 0, 0, 0.07) !important;
  transform: translateY(-7px) !important;
}

/* ── 7. HOVER GLOW en mision + vision card ── */
.mision-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.mision-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(41, 182, 232, 0.35);
}
.vision-card {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.vision-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(15, 30, 51, 0.45);
}

/* ── 8. SLIDE HOVER en contacto items ── */
.contacto-item {
  transition: transform 0.25s ease;
  cursor: default;
}
.contacto-item:hover {
  transform: translateX(10px);
}

/* ── 9. HOVER stat cards ── */
.stat-card {
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.stat-card:hover {
  box-shadow: 0 8px 28px rgba(41, 182, 232, 0.18);
  transform: translateY(-4px);
}
.stat-number {
  transition: text-shadow 0.3s ease;
}
.stat-card:hover .stat-number {
  text-shadow: 0 0 22px rgba(41, 182, 232, 0.5);
}

/* ── 10. PROGRESS BAR animada ── */
.progress-fill {
  animation: progress-grow 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
@keyframes progress-grow {
  from {
    width: 0;
  }
  to {
    width: 38%;
  }
}

/* ── 11. CAT PILLS sweep ── */
.cat-pill {
  position: relative;
  overflow: hidden;
}
.cat-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(41, 182, 232, 0.13),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}
.cat-pill:hover::before {
  transform: translateX(100%);
}

/* ── 12. NAV links underline slide ── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #29b6e8;
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ══════════════════════════════════════
     RESPONSIVE MÓVIL
  ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-right-col {
    width: 380px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .historia-section {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .historia-right {
    grid-column: span 2;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .deco-logo {
    display: none;
  }
  .vision-card {
    flex: 1;
  }
  .ventajas-section {
    gap: 50px;
  }
  .brand-banner-logo svg {
    width: 500px;
  }
}

@media (max-width: 768px) {
  /* NAV */
  nav {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-logo svg {
    height: 28px;
  }
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 13px;
  }

  /* HERO */
  .hero-body {
    flex-direction: column;
    padding-bottom: 50px;
  }
  .hero-left-col {
    padding: 28px 20px 16px;
    width: 100%;
  }
  .hero-panel {
    padding: 24px 20px;
    max-width: 100%;
  }
  .title-white {
    font-size: clamp(44px, 13vw, 72px);
  }
  .title-blue {
    font-size: clamp(34px, 10vw, 58px);
  }
  .badge span {
    font-size: 10px;
  }
  .hero-right-col {
    width: 100%;
    padding: 0 20px 40px;
    gap: 20px;
  }
  .btn-row {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary,
  .btn-secondary {
    text-align: center;
    justify-content: center;
    padding: 16px 24px;
    font-size: 13px;
  }

  /* CATEGORIES */
  .categories-bar {
    padding: 18px 20px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cat-pill {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* SERVICES */
  .services-section {
    padding: 56px 20px 70px;
  }
  .section-title {
    font-size: 30px !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .service-card {
    padding: 28px 24px 32px;
  }

  /* BRAND BANNER */
  .brand-banner {
    flex-direction: column;
    min-height: auto;
  }
  .brand-banner-left {
    padding: 40px 20px;
    justify-content: center;
  }
  .brand-banner-logo svg {
    width: 100%;
    max-width: 320px;
  }
  .brand-banner-right {
    width: 100%;
    justify-content: center;
  }
  .brand-banner-right img {
    max-height: 320px;
  }

  /* VENTAJAS */
  .ventajas-section {
    flex-direction: column !important;
    padding: 56px 20px;
    gap: 36px;
  }
  .ventajas-left {
    width: 100%;
  }
  .ventajas-title {
    font-size: 28px !important;
    margin-bottom: 36px;
  }
  .ventajas-right-wrap {
    width: 100% !important;
  }
  .ventajas-right {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .stat-number {
    font-size: 38px !important;
  }
  .stat-card {
    padding: 32px 20px;
  }

  /* HISTORIA */
  .historia-section {
    grid-template-columns: 1fr !important;
    padding: 56px 20px;
    gap: 24px;
  }
  .historia-right {
    flex-direction: column;
  }
  .historia-mid {
    padding-top: 0 !important;
  }
  .deco-logo {
    display: none !important;
  }
  .mision-card,
  .vision-card {
    padding: 32px 24px;
  }

  /* CONTACTO */
  .contacto-section {
    flex-direction: column !important;
    margin: 0 16px 40px;
    border-radius: 16px;
  }
  .contacto-left {
    padding: 40px 24px;
  }
  .contacto-title {
    font-size: 26px !important;
  }
  .contacto-right {
    width: 100% !important;
  }
  .contacto-right iframe {
    min-height: 280px;
  }

  /* FOOTER */
  .site-footer {
    padding: 36px 20px 28px;
    gap: 18px;
  }
  .footer-logo svg {
    width: 160px;
  }
  .footer-copy {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
  .title-white {
    font-size: clamp(38px, 14vw, 60px);
  }
  .title-blue {
    font-size: clamp(28px, 11vw, 46px);
  }
  .ventajas-right {
    grid-template-columns: 1fr !important;
  }
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .historia-section {
    grid-template-columns: 1fr !important;
  }
  .section-title {
    font-size: 26px !important;
  }
  .contacto-title {
    font-size: 22px !important;
  }
}

/* ══════════════════════════════════════
     FIXES MÓVIL
  ══════════════════════════════════════ */

@media (max-width: 768px) {
  .ventaja-desc br {
    display: none !important;
  }
  /* 1. Título hero más chico en móvil */
  .title-white {
    font-size: clamp(36px, 11vw, 58px) !important;
    line-height: 0.95 !important;
  }
  .title-blue {
    font-size: clamp(28px, 9vw, 46px) !important;
    line-height: 0.95 !important;
  }

  /* 2. Nav encima de todo + hamburger z-index */
  nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999 !important;
    background: rgba(8, 18, 32, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 14px 20px !important;
    justify-content: space-between !important;
  }

  .hamburger {
    z-index: 1001 !important;
    position: relative;
  }

  /* Menu overlay encima de todo */
  .nav-links {
    z-index: 1000 !important;
  }

  /* Compensar nav fijo */
  .hero {
    padding-top: 64px;
  }

  /* 3. Historia: columna única correcta */
  .historia-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 48px 20px !important;
  }

  .historia-left,
  .historia-mid,
  .historia-right {
    width: 100% !important;
    padding-top: 0 !important;
  }

  .historia-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .deco-logo {
    display: none !important;
  }

  .mision-card,
  .vision-card {
    width: 100% !important;
    box-sizing: border-box;
  }

  .historia-img {
    width: 100% !important;
    max-height: 240px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .title-white {
    font-size: clamp(32px, 10vw, 48px) !important;
  }
  .title-blue {
    font-size: clamp(24px, 8.5vw, 38px) !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 18, 35, 0.97) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    z-index: 1000 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .nav-links.open {
    display: flex !important;
    animation: menu-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links li {
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  .nav-links li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  .nav-links a {
    display: block !important;
    padding: 22px 40px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition:
      color 0.2s,
      background 0.2s !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #29b6e8 !important;
    background: rgba(41, 182, 232, 0.08) !important;
  }

  /* Underline animation off in mobile */
  .nav-links a::after {
    display: none !important;
  }

  /* Hamburger stays on top */
  .hamburger {
    position: fixed !important;
    top: 14px !important;
    right: 20px !important;
    z-index: 1002 !important;
  }

  /* X button when open */
  .hamburger.open span {
    background: #fff !important;
  }
}

/* ══════════════════════════════════════
     HAMBURGER BUTTON
  ══════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ══════════════════════════════════════
     MENÚ MÓVIL — CORTINA DESDE ARRIBA
  ══════════════════════════════════════ */
@media (max-width: 768px) {
  /* show hamburger */
  .hamburger {
    display: flex;
  }

  /* nav fijo */
  nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(8, 18, 32, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px;
    justify-content: space-between;
  }

  .hero {
    padding-top: 64px;
  }

  /* Cortina: oculta por defecto */
  .nav-links {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 80px 0 30px !important;
    background: linear-gradient(160deg, #0a1420 0%, #0f2236 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Animación cortina */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1) !important;
    pointer-events: none;
  }

  .nav-links.open {
    clip-path: inset(0 0 0% 0) !important;
    pointer-events: all !important;
  }

  /* Items */
  .nav-links li {
    width: 100%;
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-links.open li:nth-child(1) {
    opacity: 1;
    transform: none;
    transition-delay: 0.18s;
  }
  .nav-links.open li:nth-child(2) {
    opacity: 1;
    transform: none;
    transition-delay: 0.24s;
  }
  .nav-links.open li:nth-child(3) {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
  }
  .nav-links.open li:nth-child(4) {
    opacity: 1;
    transform: none;
    transition-delay: 0.36s;
  }
  .nav-links.open li:nth-child(5) {
    opacity: 1;
    transform: none;
    transition-delay: 0.42s;
  }

  /* Links */
  .nav-links a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 18px 32px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition:
      color 0.2s,
      padding-left 0.2s !important;
  }

  /* Línea azul izquierda + slide al hover/active */
  .nav-links a::before {
    content: "";
    display: block;
    width: 3px;
    height: 20px;
    background: #29b6e8;
    border-radius: 2px;
    opacity: 0;
    transform: scaleY(0);
    transition:
      opacity 0.2s,
      transform 0.2s;
    flex-shrink: 0;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #29b6e8 !important;
    padding-left: 36px !important;
  }
  .nav-links a:hover::before,
  .nav-links a.active::before {
    opacity: 1;
    transform: scaleY(1);
  }

  /* Underline animation off */
  .nav-links a::after {
    display: none !important;
  }

  /* Logo en nav */
  .nav-logo svg {
    height: 28px;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 15px !important;
    padding: 16px 24px !important;
  }
}

/* ══════════════════════════════════════
     SECCIÓN SERVICIOS CARDS
  ══════════════════════════════════════ */
.serv-cards-section {
  background: #e8f4fb;
  padding: 70px 60px 80px;
}
.serv-cards-header {
  margin-bottom: 40px;
}
.serv-cards-title {
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
  margin-bottom: 10px;
}
.serv-cards-title span {
  color: #5bb8e8;
}
.serv-cards-subtitle {
  font-size: 18px;
  color: #0e0e0e;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
}
.serv-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.serv-card {
  border-radius: 4px;
  padding: 40px 36px 44px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.serv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.serv-card-blue {
  background: #5bb8e8;
}
.serv-card-dark {
  background: #0e0e0e;
}
.serv-card-title {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: #0e0e0e;
}
.serv-card-dark .serv-card-title {
  color: #f3f1ec;
}
.serv-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.serv-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 400;
  color: #0e0e0e;
  line-height: 1.5;
}
.serv-card-dark .serv-card-list li {
  color: #f3f1ec;
}
.serv-card-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0e0e0e;
  flex-shrink: 0;
}
.serv-card-dark .serv-card-list li::before {
  background: #f3f1ec;
}
.serv-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  align-self: flex-start;
  transition:
    opacity 0.2s,
    transform 0.2s;
  letter-spacing: 0.04em;
}
.serv-card-btn:hover {
  opacity: 0.88;
  transform: translateX(3px);
}
.serv-card-blue .serv-card-btn {
  background: #0e0e0e;
  color: #fff;
}
.serv-card-dark .serv-card-btn {
  background: #5bb8e8;
  color: #fff;
}
.serv-card-btn-arrow {
  font-size: 18px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .serv-cards-section {
    padding: 50px 30px 60px;
  }
  .serv-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .serv-cards-title {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .serv-cards-section {
    padding: 40px 20px 50px;
  }
  .serv-cards-title {
    font-size: 26px;
  }
  .serv-card-title {
    font-size: 26px;
  }
  .serv-card {
    padding: 30px 24px 34px;
  }
}
