/* ============================================
   PUNTELEC S.A. - ESTILOS PÁGINA DE INICIO
   Diseño Industrial Moderno y Responsivo
   ============================================ */

/* Headers de Sección */
.section-header {
  margin-bottom: var(--spacing-3xl);
}

.section-header--centered {
  text-align: center;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary-muted);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-md);
  border: 2px solid var(--color-primary);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

.section-header--centered .section-title {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

.section-divider--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--button-padding-md);
  font-family: var(--font-accent);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--large {
  padding: var(--button-padding-lg);
  font-size: var(--font-size-md);
}

.btn--medium {
  padding: var(--button-padding-md);
}

.btn--hero {
  padding: 0.875rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  min-width: auto;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-primary-hover);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn--secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  transition: left var(--transition-base);
  z-index: -1;
}

.btn--secondary:hover {
  color: var(--color-primary);
  transform: var(--hover-lift);
}

.btn--secondary:hover::before {
  left: 0;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn--outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left var(--transition-base);
  z-index: -1;
}

.btn--outline:hover {
  color: var(--color-white);
  transform: var(--hover-lift);
  box-shadow: var(--shadow-primary);
}

.btn--outline:hover::before {
  left: 0;
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  font-weight: var(--font-weight-bold);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn--white::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-primary-lighter);
  transition: left var(--transition-base);
  z-index: -1;
}

.btn--white:hover {
  color: var(--color-white);
  transform: var(--hover-lift);
  box-shadow: var(--shadow-xl);
}

.btn--white:hover::before {
  left: 0;
}

.btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  box-shadow: var(--shadow-accent);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn--accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent-dark);
  transition: left var(--transition-base);
  z-index: -1;
}

.btn--accent:hover {
  transform: var(--hover-lift);
}

.btn--accent:hover::before {
  left: 0;
}

/* ==================== HERO SECTION ==================== */

.hero {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  min-height: 600px;
  overflow: hidden;
  background-color: var(--color-black);
  margin-top: var(--header-height);
  margin-bottom: 0;
}

.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms var(--ease-in-out);
}

.hero__slide.active {
  opacity: 1;
  z-index: 1;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: opacity 0.6s ease-in-out;
}

.hero__image.loading-next-quality {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(3, 117, 248, 0.2),
    rgb(0, 16, 35, 1)
  );
  z-index: 2;
}

.hero__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  padding: 0;
}

.hero__text {
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0px auto;
  padding: 0 var(--spacing-md);
  animation: fadeInUp 1s var(--ease-out) 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
  line-height: var(--line-height-tight);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.hero__title-main {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--color-white);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -1px;
}

.hero__title-sub {
  display: block;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  margin-top: var(--spacing-sm);
}

.hero__divider {
  width: 100px;
  height: 4px;
  background: var(--gradient-accent);
  margin: var(--spacing-xl) auto;
  border-radius: var(--border-radius-full);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-white);
  margin-bottom: var(--spacing-2xl);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  text-align: center;
}

.hero__cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

.btn--hero {
  padding: 0.875rem 2.25rem;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  min-width: auto;
  background: var(--color-accent-dark);
  color: var(--color-white);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn--hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-accent-darker);
  transition: left var(--transition-base);
  z-index: -1;
}

.btn--hero:hover {
  transform: var(--hover-lift);
}

.btn--hero:hover::before {
  left: 0;
}

/* ==================== WAVE ==================== */

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 4;
  transform: rotate(180deg);
}

.hero__wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.hero__wave .shape-fill {
  fill: #ffffff;
}

@media (max-width: 768px) {
  .hero__wave svg {
    height: 50px;
  }
}

/* ==================== WAVE DIVIDER SERVICIOS ==================== */

.service__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 4;
  transform: rotate(180deg);
}

.service__wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.service__wave .shape-fill {
  fill: #fff;
}

@media (max-width: 768px) {
  .service__wave svg {
    height: 50px;
  }
}

/* ==================== WAVE DIVIDER CERTIFICACIONES (V INVERTIDA) ==================== */

.certifications__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 4;
}

.certifications__wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.certifications__wave .shape-fill {
  fill: var(--color-primary-darker);
}

@media (max-width: 768px) {
  .certifications__wave svg {
    height: 80px;
  }
}
/* ==================== RESPONSIVE ==================== */

@media (max-width: 576px) {
  .btn--hero {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: auto;
    min-width: 280px;
  }

  .hero__cta {
    flex-direction: column;
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .hero__text {
    margin: 0px auto;
  }
}

@media (min-width: 769px) {
  .hero__text {
    margin: 0px auto;
  }

  .hero__title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 61, 130, 0.7),
      rgba(0, 38, 84, 0.95)
    );
  }
}

/* ==================== WAVE DIVIDER ==================== */

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 4;
  transform: rotate(180deg);
}

.hero__wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.hero__wave .shape-fill {
  fill: #ffffff;
}

@media (max-width: 768px) {
  .hero__wave svg {
    height: 50px;
  }
}

/* ==================== ABOUT BRIEF - NUEVA VERSIÓN ==================== */

.about-brief {
  padding: var(--section-padding-mobile) 0;
  background: var(--color-white);
  position: relative;
  margin-top: 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-brief {
    padding: var(--section-padding-tablet) 0;
  }
}

@media (min-width: 992px) {
  .about-brief {
    padding: var(--section-padding-desktop) 0;
  }
}

.about-brief__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (min-width: 992px) {
  .about-brief__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }

  .about-brief__robot-wrapper {
    margin-right: calc(-1 * var(--spacing-lg));
  }
}

.about-brief__content-left {
  max-width: 100%;
}

.about-brief__text-wrapper {
  margin-bottom: var(--spacing-3xl);
}

.about-brief__text {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.about-brief__text--large {
  font-size: var(--font-size-base);
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.about-brief__text strong {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

/* ==================== STATS CIRCLES - CONECTADOS ==================== */

.stats-circles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-3xl);
  position: relative;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .stats-circles {
    flex-wrap: nowrap;
  }
}

.stats-circles__line {
  position: absolute;
  top: 50%;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-accent) 50%,
    var(--color-primary) 100%
  );
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0;
  animation: lineGrow 1s ease-out 0.5s forwards;
}

@keyframes lineGrow {
  from {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
  }
}

@media (max-width: 639px) {
  .stats-circles__line {
    display: none;
  }
}

.stat-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 140px;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
}

.stat-circle.animated {
  animation: statCircleAppear 0.6s ease-out forwards;
}

@keyframes statCircleAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.stat-circle[data-stat="years"] {
  animation-delay: 0.1s;
}

.stat-circle[data-stat="certified"] {
  animation-delay: 0.3s;
}

.stat-circle[data-stat="easa"] {
  animation-delay: 0.5s;
}

.stat-circle[data-stat="tech"] {
  animation-delay: 0.7s;
}

.stat-circle__inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.stat-circle:hover .stat-circle__inner {
  transform: scale(1.1);
  box-shadow: var(--shadow-primary-hover);
  border-color: var(--color-accent);
}

.stat-circle__number {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  line-height: 1;
}

.stat-circle__plus,
.stat-circle__percent {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
}

.stat-circle__icon {
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.stat-circle:hover .stat-circle__icon {
  color: var(--color-accent);
  transform: rotate(15deg) scale(1.1);
}

.stat-circle__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  line-height: var(--line-height-snug);
}

.about-brief__cta {
  text-align: left;
}

@media (max-width: 991px) {
  .about-brief__cta {
    text-align: center;
  }
}

/* ==================== BRAZO ROBÓTICO ==================== */

.about-brief__robot-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 1; /* SOLO ESTE CAMBIO: de 0 a 1 */
  overflow: visible;
  pointer-events: none;
}

/* ELIMINADO: .about-brief__robot-wrapper.animated y @keyframes robotSlideIn */

.about-brief__robot-image {
  width: 180%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.2));
  transform-origin: center right;
}

@media (max-width: 991px) {
  .about-brief__robot-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
    transform: none;
    top: auto;
    display: none;
  }

  .about-brief__robot-image {
    width: 100%;
    max-width: 600px;
  }
}

/* ==================== SERVICIOS - DISEÑO COMPACTO PROFESIONAL ==================== */

.services {
  padding: var(--section-padding-mobile) 0;
  background: linear-gradient(135deg, #001428 0%, #002a54 50%, #001f42 100%);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(255, 140, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 61, 130, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

@media (min-width: 768px) {
  .services {
    padding: var(--section-padding-tablet) 0;
  }
}

@media (min-width: 992px) {
  .services {
    padding: var(--section-padding-desktop) 0;
  }
}

.services .section-badge {
  background: rgba(255, 140, 0, 0.12);
  color: #ffa500;
  border-color: #ff8c00;
}

.services .section-title {
  color: #ffffff;
}

.services .section-divider {
  background: linear-gradient(90deg, #ff8c00 0%, #ffb733 100%);
}

/* ==================== TUERCAS DECORATIVAS ==================== */

.services__gears {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.gear {
  position: absolute;
  opacity: 0.35;
  width: 350px;
  height: 350px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transform: rotate(-15deg);
}

.gear-1 {
  top: -80px;
  left: -80px;
}

.gear-2 {
  bottom: -80px;
  right: -80px;
  transform: rotate(25deg);
}

@media (max-width: 768px) {
  .services__gears {
    display: none;
  }
}

/* ==================== SHOWCASE CONTAINER ==================== */

.services-showcase {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .services-showcase {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
  }
}

/* ==================== NAVEGACIÓN - LATERAL EN DESKTOP ==================== */

.services-showcase__nav {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  position: relative;
}

@media (min-width: 992px) {
  .services-showcase__nav {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.5rem 0.875rem 1.5rem 3rem;
    position: sticky;
    top: 90px;
  }

  /* Línea vertical ultra fina - VERSIÓN CORREGIDA */
  .services-showcase__nav::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px; /* Aumentado de 1px a 2px para mejor visibilidad */
    height: 85%; /* Altura relativa al contenedor */
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 140, 0, 0.2) 5%,
      rgba(255, 140, 0, 0.5) 25%,
      var(--color-accent) 50%,
      rgba(255, 140, 0, 0.5) 75%,
      rgba(255, 140, 0, 0.2) 95%,
      transparent 100%
    );
    border-radius: 10px;
    z-index: 0;
  }

  /* Respaldo: si el gradiente falla, usar color sólido */
  .services-showcase__nav::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 80%;
    background: var(--color-accent);
    opacity: 0.4;
    border-radius: 10px;
    z-index: 0;
    display: none; /* Oculto por defecto, se activa si ::before falla */
  }
}

.service-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-accent);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  height: 50px;
  width: 100%;
  margin: 0.75rem 0;
}

@media (min-width: 992px) {
  .service-pill {
    justify-content: flex-start;
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin: 1rem 0;
    z-index: 1; /* Asegurar que esté sobre la línea vertical */
  }

  /* Línea horizontal ultra fina conectora */
  .service-pill::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 50%;
    width: 1.5rem;
    height: 2px; /* Aumentado de 1px a 2px */
    background: linear-gradient(
      90deg,
      rgba(255, 140, 0, 0) 0%,
      rgba(255, 140, 0, 0.4) 100%
    );
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Punto minimalista en la intersección */
  .service-pill::after {
    content: "";
    position: absolute;
    left: -1.875rem;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px; /* Aumentado para mejor visibilidad */
    height: 8px;
    background: var(--color-accent);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 140, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: 2;
  }

  /* Hover effect - línea aparece suavemente */
  .service-pill:hover::before {
    transform: translateY(-50%) scaleX(1);
    background: linear-gradient(
      90deg,
      rgba(255, 140, 0, 0.3) 0%,
      rgba(255, 140, 0, 0.6) 100%
    );
  }

  .service-pill:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  /* Active state - línea y punto completamente visibles */
  .service-pill.active::before {
    transform: translateY(-50%) scaleX(1);
    background: linear-gradient(
      90deg,
      rgba(255, 140, 0, 0.6) 0%,
      var(--color-accent) 100%
    );
    height: 2px;
  }

  .service-pill.active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.6),
      0 0 0 3px rgba(255, 140, 0, 0.2);
  }
}

.service-pill svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.service-pill span {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.service-pill:hover {
  border-color: rgba(255, 140, 0, 0.4);
  color: #ffffff;
  transform: translateX(2px);
  background: rgba(255, 140, 0, 0.05);
}

.service-pill:hover svg {
  transform: scale(1.1) translateX(2px);
}

.service-pill.active {
  background: rgba(204, 112, 0, 0.15);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(204, 112, 0, 0.2);
}

@media (min-width: 992px) {
  .service-pill.active {
    transform: translateX(6px);
  }
}

/* ==================== CONTENEDOR DE SERVICIOS ==================== */

.services-showcase__content {
  position: relative;
  min-height: 380px;
}

.service-display {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.service-display.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: all;
}

/* ==================== GRID DE DISPLAY ==================== */

.service-display__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
  box-shadow: none;
}

@media (min-width: 768px) {
  .service-display__grid {
    grid-template-columns: 40% 1fr;
    align-items: center;
    padding: 2rem;
  }
}

/* ==================== VISUAL (IMAGEN) ==================== */

.service-display__visual {
  width: 100%;
}

.service-display__image-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  aspect-ratio: 1/1;
}

.service-display__image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-display:hover .service-display__image-box img {
  transform: scale(1.05);
}

.service-display__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #cc7000;
  color: #ffffff;
  padding: 0.625rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ==================== INFO (CONTENIDO) ==================== */

.service-display__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-display__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.service-display__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.service-display__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.service-display__list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.375rem 0;
}

.service-display__list li svg {
  color: #ff8c00;
  min-width: 16px;
  flex-shrink: 0;
}

.service-display__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid #ff8c00;
  border-radius: 4px;
  color: #ffa500;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  align-self: flex-start;
}

.service-display__link svg {
  transition: transform 0.25s ease;
}

.service-display__link:hover svg {
  transform: translateX(4px);
}

/* ==================== CTA SECTION ==================== */

.services__cta {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botón CTA blanco */
.services .btn--outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.services .btn--outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #003d82 0%, #0056b3 100%);
  transition: left 0.25s ease;
  z-index: -1;
}

.services .btn--outline span {
  position: relative;
  z-index: 1;
}

.services .btn--outline:hover {
  color: #ffffff;
  border-color: #003d82;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 61, 130, 0.4);
}

.services .btn--outline:hover::before {
  left: 0;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 991px) {
  .services-showcase__nav {
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: transparent;
  }

  .service-pill {
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
  }

  .service-pill span {
    display: none;
  }

  .service-pill.active span {
    display: inline;
  }
}

@media (max-width: 767px) {
  .service-display__grid {
    padding: 1.5rem;
  }

  .service-display__title {
    font-size: 1.5rem;
  }

  .service-display__desc {
    font-size: 0.875rem;
  }

  .services-showcase__content {
    min-height: 520px;
  }
}

@media (max-width: 480px) {
  .services-showcase__nav {
    flex-direction: column;
  }

  .service-pill {
    justify-content: center;
  }

  .service-pill span {
    display: inline;
  }
}
/* Fin de servicios */

/* ==================== CERTIFICACIONES ==================== */
.certifications {
  padding: 100px 0 250px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.certifications::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(0, 61, 130, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* Grid de hexágonos */
.certifications__logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Contenedor de cada certificación */
.cert-card-hex {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.cert-card-hex:hover {
  transform: translateY(-10px);
}

/* Hexágono completo con borde */
.cert-card-hex__hexagon {
  width: 220px;
  height: 254px;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--color-primary-darker);
  padding: 3px;
  transition: all 0.4s ease;
}

.cert-card-hex:hover .cert-card-hex__hexagon {
  background: linear-gradient(
    135deg,
    var(--color-primary-darker) 0%,
    var(--color-primary) 100%
  );
  filter: drop-shadow(0 10px 25px rgba(0, 26, 61, 0.3));
}

/* Contenido interno del hexágono */
.cert-card-hex__content {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px 25px;
  text-align: center;
}

/* Logo dentro del hexágono */
.cert-card-hex__logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cert-card-hex__logo img {
  max-width: 75%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.4s ease;
}

.cert-card-hex:hover .cert-card-hex__logo img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Nombre de la certificación */
.cert-card-hex__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-darker);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Descripción */
.cert-card-hex__desc {
  font-size: 0.75rem;
  color: #6c757d;
  line-height: 1.4;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .certifications__logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 30px;
  }
}

@media (max-width: 768px) {
  .certifications {
    padding: 70px 0 120px 0;
  }

  .certifications__logos-grid {
    gap: 50px 25px;
  }

  .cert-card-hex__hexagon {
    width: 200px;
    height: 231px;
  }

  .cert-card-hex__content {
    padding: 30px 20px;
  }

  .cert-card-hex__logo {
    height: 70px;
    margin-bottom: 15px;
  }

  .cert-card-hex__name {
    font-size: 0.95rem;
  }

  .cert-card-hex__desc {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .certifications__logos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cert-card-hex__hexagon {
    width: 210px;
    height: 242px;
  }
}

/* ==================== TRABAJOS (MODO OSCURO AZUL) ==================== */

.works {
  min-height: 100dvh;
  padding: 5rem 0 3rem 0;
  background: linear-gradient(
    180deg,
    var(--color-primary-darker) 0%,
    var(--color-primary-dark) 50%,
    var(--color-primary-darker) 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fondo con efectos sutiles */
.works__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(0, 86, 179, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 140, 0, 0.04) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.works .container {
  position: relative;
  z-index: 1;
}

/* Headers en modo claro */
.section-header--light {
  margin-bottom: var(--spacing-2xl);
}

.section-badge--light {
  background: var(--color-primary-muted);
  color: var(--color-accent-light);
  border: var(--border-width-medium) solid var(--color-accent);
}

.section-title--light {
  color: var(--color-white);
}

.section-divider--blue {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  margin: 0 auto;
}

/* Showcase Grid Compacto */
.works__showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 992px) {
  .works__showcase {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
  }
}

/* Tarjeta de Trabajo Compacta */
.work-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: var(--border-width-thin) solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
  z-index: 2;
}

.work-card:hover::before {
  transform: scaleX(1);
}

.work-card:hover {
  border-color: var(--color-primary-light);
  background: rgba(255, 255, 255, 0.06);
}

/* Visual de la Tarjeta - SOLO LA IMAGEN SE TRANSFORMA */
.work-card__visual {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
  filter: brightness(1) contrast(1);
  position: relative;
  z-index: 1;
}

/* SOLO la imagen hace zoom al hover de la tarjeta */
.work-card:hover .work-card__image {
  transform: scale(1.1);
}

/* Overlay REMOVIDO - sin oscurecimiento */
.work-card__overlay {
  display: none;
}

/* Contenido Compacto */
.work-card__content {
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-xl)
    var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card__title {
  font-family: var(--font-heading);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
  transition: color var(--transition-base);
}

.work-card:hover .work-card__title {
  color: var(--color-accent-light);
}

/* Especificaciones Compactas con NARANJA */
.work-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.work-spec {
  font-size: var(--font-size-xs);
  color: var(--color-accent-light);
  font-weight: var(--font-weight-semibold);
  padding: 0.25rem 0.625rem;
  background: var(--color-accent-muted);
  border: var(--border-width-thin) solid var(--color-accent);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
}

.work-card:hover .work-spec {
  background: var(--color-accent-subtle);
  border-color: var(--color-accent-light);
  color: var(--color-accent-lighter);
}

/* Descripción Compacta */
.work-card__description {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
  flex: 1;
}

/* Link */
.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all var(--transition-base);
  align-self: flex-start;
  position: relative;
}

.work-card__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.work-card__link:hover {
  color: var(--color-accent-light);
  gap: var(--spacing-md);
}

.work-card__link:hover::after {
  width: 100%;
}

.work-card__link svg {
  transition: transform var(--transition-base);
}

.work-card__link:hover svg {
  transform: translateX(4px);
}

/* CTA con botón igual al de servicios */
.works__cta {
  text-align: center;
  margin-top: var(--spacing-xl);
}

/* Botón blanco con hover azul - IGUAL AL DE SERVICIOS */
.works .btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 18px 40px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  border-radius: 3px;
  transition: all var(--transition-base);
  display: inline-block;
  text-decoration: none;
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin-top: 30px;
}

.works .btn--outline-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left var(--transition-base);
  z-index: -1;
}

.works .btn--outline-light span {
  position: relative;
  z-index: 1;
}

.works .btn--outline-light:hover {
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: var(--hover-lift);
  box-shadow: var(--shadow-primary);
}

.works .btn--outline-light:hover::before {
  left: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .works {
    min-height: auto;
    padding: var(--section-padding-tablet) 0;
  }

  .work-card__visual {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .works {
    padding: var(--section-padding-mobile) 0;
  }

  .section-header--light {
    margin-bottom: var(--spacing-xl);
  }

  .work-card__visual {
    height: 220px;
  }

  .work-card__title {
    font-size: var(--font-size-lg);
  }

  .work-card__content {
    padding: var(--spacing-md);
  }
}

/* ==================== CTA FINAL - MODO CLARO MINIMALISTA ==================== */

.cta-final {
  position: relative;
  padding: 0 0 var(--spacing-5xl) 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  overflow: hidden;
  margin: 0;
}

/* Grid para dividir contenido y mapa */
.cta-final__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  padding-top: 140px;
}

@media (min-width: 992px) {
  .cta-final__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
  }
}

@media (max-width: 768px) {
  .cta-final__grid {
    padding-top: 100px;
  }
}

/* Contenido */
.cta-final__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 992px) {
  .cta-final__content {
    text-align: left;
    padding-right: var(--spacing-lg);
  }
}

/* Título */
.cta-final__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary-darker);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-lg);
}

.cta-final__title-highlight {
  display: inline-block;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.cta-final__title-highlight::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-full);
}

/* Subtítulo */
.cta-final__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-3xl);
  font-weight: var(--font-weight-medium);
  font-style: italic;
}

/* Botón - usa las clases globales btn btn--primary btn--large */
.cta-final__button {
  margin-top: 0;
}

.cta-final__button svg {
  transition: transform var(--transition-base);
}

.cta-final__button:hover svg {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .cta-final__button {
    width: 100%;
    max-width: 350px;
  }
}

/* Mapa */
.cta-final__map {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

@media (max-width: 991px) {
  .cta-final__map {
    height: 400px;
    order: -1; /* Mapa arriba en móvil */
  }
}

@media (max-width: 640px) {
  .cta-final__map {
    height: 350px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .cta-final {
    padding: 0 0 var(--spacing-4xl) 0;
  }

  .cta-final__title {
    margin-bottom: var(--spacing-md);
  }

  .cta-final__subtitle {
    margin-bottom: var(--spacing-2xl);
  }
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */

@media (max-width: 576px) {
  .btn--hero {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: auto;
    min-width: 280px;
  }

  .hero__cta {
    flex-direction: column;
    max-width: 100%;
    padding: 0 var(--spacing-md);
  }

  .cta-final__buttons {
    flex-direction: column;
  }

  .stats-circles {
    justify-content: center;
  }

  .stat-circle {
    min-width: 45%;
  }
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: var(--spacing-2xl);
  }

  .hero__text {
    margin: 0px auto;
  }
}

@media (min-width: 769px) {
  .hero__text {
    margin: 0px auto;
  }

  .hero__title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(3, 117, 248, 0.1),
      rgb(0, 16, 35, 1)
    );
  }
}
