/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #180C3E;
  --blue-mid: #311659;
  --blue-light: #9DB0FF;
  --blue-pale: #eff1f9;
  --purple: #4F0556;
  --purple-light: #74137D;
  --purple-ultralight: #c31ad3;
  --purple-pale: #fce8fe;
  --gray-100: #F6F4F4;
  --gray-200: #eaedf2;
  --gray-400: #9aa3b2;
  --gray-600: #5a6478;
  --gray-800: #2d3448;
  --black: #000000;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(35, 47, 96, .08);
  --shadow-md: 0 8px 32px rgba(35, 47, 96, .13);
  --shadow-lg: 0 20px 60px rgba(35, 47, 96, .18);
  --radius: 12px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
  max-width: 100vw;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
  overflow-wrap: break-word;
  word-wrap: break-word;
  /* cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='28' height='28'%3E%3Cg stroke='white' stroke-width='1.2' stroke-linejoin='round'%3E%3Cpolygon fill='%23fcd34d' points='1,1 23,9 13,13' /%3E%3Cpolygon fill='%23faba00' points='1,1 13,13 9,23' /%3E%3C/g%3E%3C/svg%3E") 1 1, auto; */
}

/* 
a,
button,
input[type="submit"],
.dot,
.slider-arrow {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='28' height='28'%3E%3Cg stroke='%23faba00' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpolygon fill='%234c5ea8' points='1,1 23,9 13,13' /%3E%3Cpolygon fill='%23232F60' points='1,1 13,13 9,23' /%3E%3C/g%3E%3C/svg%3E") 1 1, pointer !important;
}
*/

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

#Somos p,
#Conversemos p {
  text-align: justify;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--blue-dark);
  line-height: 1.2;
}

.section-title span {
  color: var(--purple);
}

.section-sub {
  color: var(--gray-600);
  font-size: 1.05rem;
  margin-top: .6rem;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--white);
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
}

.tag img {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

@keyframes gradientFluid {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn-primary {
  background: linear-gradient(270deg, var(--purple), var(--purple-light), #9b51e0, var(--purple));
  background-size: 300% 300%;
  animation: gradientFluid 6s ease infinite;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(250, 186, 0, .35);
}

.btn-primary:hover {
  animation: gradientFluid 3s ease infinite;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(250, 186, 0, .4);
}

.btn-blue {
  background: linear-gradient(270deg, var(--blue-mid), var(--blue-light), #2b5876, var(--blue-mid));
  background-size: 300% 300%;
  animation: gradientFluid 6s ease infinite;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(46, 61, 125, .35);
}

.btn-blue:hover {
  animation: gradientFluid 3s ease infinite;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(46, 61, 125, .4);
}

.btn-outline {
  position: relative;
  z-index: 1;
  border: none !important;
  color: var(--white);
  /* The transparent animated background */
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  background-size: 300% 300%;
  animation: gradientFluid 8s ease infinite;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.7);
  clip-path: polygon(
      /* Outer shape clockwise */
      0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px), 0 0,
      /* Slice into inner shape */
      2px 2px,
      /* Inner shape counter-clockwise */
      2px calc(100% - 18px), 18px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 18px, calc(100% - 18px) 2px, 2px 2px);
  z-index: 2;
  transition: all 0.3s ease;
}

.btn-outline::after {
  display: none;
}

.btn-outline:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
  background-size: 300% 300%;
  animation: gradientFluid 4s ease infinite;
}

.btn-outline:hover::before {
  background: var(--white);
}

.btn-outline.btn-outline-dark {
  color: var(--primary);
  background: linear-gradient(270deg, rgba(114, 28, 116, 0.05), rgba(114, 28, 116, 0.15), rgba(114, 28, 116, 0.05));
}

.btn-outline.btn-outline-dark::before {
  background: rgba(114, 28, 116, 0.4);
}

.btn-outline.btn-outline-dark:hover {
  background: linear-gradient(270deg, rgba(114, 28, 116, 0.1), rgba(114, 28, 116, 0.3), rgba(114, 28, 116, 0.1));
}

.btn-outline.btn-outline-dark:hover::before {
  background: var(--primary);
}

.empresa-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .empresa-btns {
    flex-direction: column;
    width: 100%;
  }

  .empresa-btns .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: -4px;
  padding-top: 4px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.header-cta .btn i,
.whatsapp-float i,
.whatsapp-btn i {
  min-width: 1em;
  text-align: center;
  display: inline-block;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
}

#main-nav {
  margin: 0 auto;
}

.header-cta {
  /* Keeps CTA aligned to the right if needed, but flex takes care of it when nav has auto margin */
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.logo-img {
  height: 60px;
  width: 200px;
  aspect-ratio: 234 / 80;
  display: block;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  position: relative;
  transition: color var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width var(--transition);
}

nav a:hover,
nav a.active {
  color: var(--purple);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta .btn {
  padding: 0 1.4rem;
  height: 44px;
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  outline: none;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 71px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  background: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 999;
  padding: 1.5rem 0;
  transform: translateY(-110%);
  transition: transform var(--transition);
}

.mobile-nav.open {
  transform: translateY(0);
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav a {
  display: block;
  padding: .9rem 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.mobile-nav a:hover {
  color: var(--purple);
  background: var(--purple-pale);
}

/* Resaltado del elemento activo de nivel superior en móvil (Inicio, Nosotros, Proyectos, etc.) */
.mobile-nav>ul>li>a.active {
  color: var(--purple) !important;
  background: var(--purple-pale) !important;
  border-left: 4px solid var(--purple) !important;
  font-weight: 700 !important;
  padding-left: calc(1.5rem - 4px) !important;
}

/* El botón padre 'Servicios' actúa como categoría expandible: NUNCA lleva fondo morado ni borde activo */
.mobile-nav .mobile-dropdown-toggle,
.mobile-nav .mobile-dropdown-toggle.active,
.mobile-nav a.mobile-dropdown-toggle,
.mobile-nav a.mobile-dropdown-toggle.active,
.mobile-dropdown-toggle,
.mobile-dropdown-toggle.active {
  background: transparent !important;
  border-left: none !important;
  padding-left: 1.5rem !important;
  color: var(--blue-dark) !important;
  font-weight: 600 !important;
}

.mobile-nav .mobile-dropdown-toggle i,
.mobile-dropdown-toggle i {
  color: var(--purple) !important;
}

.mobile-nav .mobile-submenu {
  display: none;
  background: var(--gray-100);
}

.mobile-nav .mobile-submenu.open {
  display: flex;
}

.mobile-nav .mobile-submenu a {
  padding-left: 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.mobile-nav .mobile-submenu a:hover {
  color: var(--purple);
  background: rgba(79, 5, 86, 0.04);
}

/* Submenú de servicios activo: cambio de color de nombre a morado y fondo destacado */
.mobile-nav .mobile-submenu a.active {
  color: var(--purple) !important;
  font-weight: 700 !important;
  background: #fce8fe !important;
  border-left: 4px solid var(--purple) !important;
  padding-left: calc(2.5rem - 4px) !important;
  text-decoration: none !important;
}

.mobile-social {
  padding: 0.5rem;
  text-align: center;
  margin-top: 1rem;
}

.mobile-social h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--blue-dark);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.mobile-social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.mobile-nav .mobile-social-icons a {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: 0;
  border-bottom: none;
}

.mobile-nav .mobile-social-icons a:hover {
  background: var(--blue-dark);
  color: var(--white);
}

/* ===== HERO SLIDER ===== */
#hero {
  position: relative;
  margin-top: 62px;
  height: calc(100vh - 72px);
  min-height: 540px;
  overflow: hidden;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform .8s cubic-bezier(.77, 0, .18, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Zoom infinito solo para imÃƒÂ¡genes (no video) */
img.slide-img {
  animation: heroZoom 12s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}


.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(24, 12, 62, 0.85) 40%, rgba(24, 12, 62, 0.0) 100%);
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 10;
}

.slide-text {
  color: var(--white);
  max-width: 100%;
  animation: fadeUp .8s ease both;
}

.slide-text .tag {
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .3);
}

.slide-text h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 750px;
}

.slide-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 2rem;
}



/* Slider controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .4);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease, background .3s ease;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
}

#hero:hover .slider-arrow {
  opacity: 1;
  visibility: visible;
}

.slider-arrow:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  left: 2rem;
}

.slider-arrow.next {
  right: 2rem;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .7rem;
  z-index: 10;
}

.dot {
  width: 50px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--purple);
}

.dot.active::after {
  animation: fillProgress var(--slide-duration, 6s) linear forwards;
}

@keyframes fillProgress {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

.typewriter-text::before {
  content: '\200B';
  /* Zero-width space to maintain line-height when empty */
}

/* ===== SERVICES DARK CARDS ===== */
.services-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.service-card-dark {
  padding: 1.5rem 2rem;
  display: block;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  position: relative;
  cursor: pointer;
  z-index: 1;
}

/* The border (external) */
.service-card-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
  z-index: -2;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* The background */
.service-card-dark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--blue-dark);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  z-index: -1;
  transition: all 0.4s ease;
}

.service-card-dark-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.service-card-dark-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, padding-top 0.4s ease, opacity 0.4s ease;
}

.service-card-dark-body .btn {
  transform-origin: left center;
}

.service-card-dark.active .service-card-dark-body {
  max-height: 400px;
  padding-top: 1.5rem;
  opacity: 1;
}

.chevron-icon {
  font-size: 1.25rem;
  color: var(--gray-400);
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card-dark.active .chevron-icon {
  transform: rotate(180deg);
  color: var(--purple-light);
}

.service-card-dark:hover {
  transform: translateY(-10px) scale(1.02);
}

.service-card-dark:hover::before,
.service-card-dark.active::before {
  background: #d82b68;
  /* External border becomes magenta */
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 27px, 100% 100%, 27px 100%, 0 calc(100% - 27px));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.service-card-dark:hover .chevron-icon {
  color: var(--purple-light);
}

/* ALERTA CARD STYLES */
.service-card-alert::after {
  background: #3f0845;
}

.service-card-alert::before {
  background: rgba(216, 43, 104, 0.3);
}

.service-icon-dark {
  background-color: rgba(255, 255, 255, 0.06);
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.service-card-dark:hover .service-icon-dark,
.service-card-dark.active .service-icon-dark {
  background-color: rgba(216, 43, 104, 0.1);
}

.service-icon-dark i {
  font-size: 1.75rem;
  color: transparent;
  -webkit-text-stroke: 1.5px #d82b68;
  transition: transform 0.3s ease;
}

.service-card-dark:hover .service-icon-dark i,
.service-card-dark.active .service-icon-dark i {
  transform: scale(1.1);
}

.service-card-dark h3 {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s ease;
  margin: 0;
  flex: 1;
}

.service-card-dark:hover h3,
.service-card-dark.active h3 {
  color: var(--purple-light);
}

.service-card-dark p {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid-dark {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid-dark {
    grid-template-columns: 1fr;
  }
}




/* ===== VALORES BLOCK ===== */
.valores-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.valor-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.valor-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple-light);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.valor-text h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.valor-text p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== NOSOTROS ===== */
#Somos {
  padding: 4rem 0;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

#Somos::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(35, 47, 96, 0.05);
  pointer-events: none;
}

#Somos::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(250, 186, 0, 0.05);
  pointer-events: none;
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nosotros-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.nosotros-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nosotros-img-wrap:hover img {
  transform: scale(1.08);
}


.nosotros-text .tag img {
  height: 1.2em;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.nosotros-text .section-title {
  margin-bottom: 1.5rem;
}

.nosotros-text p {
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.nosotros-text p.lead {
  font-size: 1.2rem;
}

.nosotros-text .btn {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .nosotros-text .btn {
    margin-top: 0;
  }
}

.valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.valor-item {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 1rem;
}

.valor-item i {
  color: var(--purple);
  font-size: 1.2rem;
  margin-top: .1rem;
  flex-shrink: 0;
}

.valor-item strong {
  font-size: .9rem;
  color: var(--blue-dark);
  display: block;
}

.valor-item span {
  font-size: .82rem;
  color: var(--white);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--blue-dark);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 3.5rem 1rem;
  margin-top: 4rem;
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  cursor: default;
  transition: var(--transition);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--white);
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.stat-item:hover .stat-num {
  color: var(--purple-ultralight);
  transform: scale(1.1);
}

.stat-desc {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.stat-item:hover .stat-desc {
  color: var(--purple-ultralight);
}

@media (min-width: 769px) {
  .stat-desc {
    color: var(--purple-ultralight);
    opacity: 1;
    /* Override rgba opacity if necessary */
  }
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 0;
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-num {
    color: var(--purple-ultralight);
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(10, 36, 99, 0.1);
    padding-bottom: 1.5rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* ===== SERVICIOS ===== */
#Servicios {
  padding: 6rem 0;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

#Servicios::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

#Servicios::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.servicios-header {
  text-align: center;
  margin-bottom: 2rem;
}

.servicios-header .section-title {
  color: var(--white);
}

.servicios-header .section-sub {
  color: rgba(255, 255, 255, .65);
}

.servicios-header .tag {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .2);
}

.servicios-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .servicios-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .servicios-grid-v2 {
    grid-template-columns: 1fr;
  }
}

/* ===== CLIENTES ===== */
#Clientes {
  padding: 3rem 0 4rem;
  background: var(--gray-100);
  overflow: hidden;
}

.clientes-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -1rem;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clientes-marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.clientes-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
  flex-shrink: 0;
  width: max-content;
}

.clientes-marquee:hover .clientes-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.cliente-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 140px;
  width: 160px;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cliente-logo:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: var(--shadow-md);
  border-color: #5B1063;
}

.cliente-logo img {
  max-height: 120px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ===== VIDEOS ===== */
#Videos {
  position: relative;
  padding: 6rem 0;
  background-color: var(--white);
  background-image: radial-gradient(circle, rgba(35, 47, 96, 0.08) 2px, transparent 2.5px);
  background-size: 40px 40px;
  background-position: 0 0;
}

#Videos::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(250, 186, 0, 0.6) 2px, transparent 2.5px);
  background-size: 40px 40px;
  background-position: 0 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  -webkit-mask-image: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  mask-image: radial-gradient(250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black, transparent);
  z-index: 1;
}

#Videos:hover::before {
  opacity: 1;
}

#Videos .container {
  position: relative;
  z-index: 2;
}

.videos-header {
  margin-bottom: 3rem;
}

/* Slider Container */
.videos-slider-container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.videos-slider-viewport {
  overflow: hidden;
  padding: 15px 0;
  /* vertical padding to avoid clipping shadow when card goes up */
  margin: -15px 0;
}

.videos-slider-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
  width: 100%;
  margin: 0 -15px;
  /* Offset slide paddings */
}

.video-slide {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding: 0 15px;
  /* Gap between slides */
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background-color: var(--black);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.video-card-body h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.45;
}

/* Slider Arrows */
.videos-slider-arrow {
  position: absolute;
  top: calc(50% - 50px);
  /* Centrado vertical respecto al video */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.videos-slider-arrow:hover {
  background: var(--purple);
  color: var(--blue-dark);
}

.videos-slider-arrow.prev {
  left: -25px;
}

.videos-slider-arrow.next {
  right: -25px;
}

/* Slider Dots */
.videos-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.video-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
}

.video-dot.active {
  background: var(--purple);
  transform: scale(1.2);
}

.videos-footer {
  text-align: center;
  margin-top: 3rem;
}

.btn-yt {
  background: #ff0000;
  color: var(--white) !important;
  border-radius: 50px;
  padding: .75rem 2rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.btn-yt:hover {
  background: #cc0000;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .videos-slider-container {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .video-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 10px;
  }

  .videos-slider-wrapper {
    margin: 0 -10px;
  }

  .videos-slider-arrow {
    width: 44px;
    height: 44px;
  }

  .videos-slider-arrow.prev {
    left: 10px;
  }

  .videos-slider-arrow.next {
    right: 10px;
  }
}

/* ===== UBICACIÃƒâ€œN ===== */
#ubicacion {
  padding: 6rem 0;
  background-color: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg width='1000' height='600' viewBox='0 0 1000 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-100,500 C150,400 350,550 600,450 C850,350 1100,450 1100,450' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M-100,100 C100,200 400,50 700,150 C900,250 1100,100 1100,100' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M200,-100 C300,100 100,300 400,500 C600,650 800,400 800,700' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M800,-100 C700,200 900,400 600,600' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M-50,300 C200,200 400,400 1050,200' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M400,-50 C500,200 300,400 1050,500' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3Cpath d='M0,0 C300,100 700,0 1000,100' fill='none' stroke='%23ffffff' stroke-width='0.8' opacity='0.25'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

#ubicacion .section-title span {
  color: var(--white);
}

#ubicacion .section-sub {
  color: rgba(255, 255, 255, 0.9);
  /* White with slight transparency for subtitle feel */
}

.parallax-divider {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.parallax-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 47, 96, 0.15);
  /* Subtle blue tint */
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: calc(100% + 360px);
  background-image: url('../images/img_parallax_2.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  will-change: transform;
  z-index: 0;
}

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.ubicacion-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ubic-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.ubic-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.ubic-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ubic-item-text strong {
  font-size: .85rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ubic-item-text p {
  color: var(--gray-800);
  font-weight: 500;
  margin-top: .2rem;
  word-break: break-word;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 500px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CONTACTO ===== */
#Conversemos {
  padding: 4rem 0;
  background: var(--white);
}


#Conversemos .contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 0rem;
}

.contacto-info .section-title {
  margin-bottom: 1rem;
}

.contacto-info p {
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: .8rem;
  margin-top: 2rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  background: #020618;
  border-radius: var(--radius);
  padding: 2.5rem;
  /*box-shadow: var(--shadow-sm);*/
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.2rem;
}

.contact-form .form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-100);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  padding: .85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color var(--transition);
  outline: none;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--purple);
}

.contact-form .form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.highlight-select {
  border-color: var(--purple) !important;
  box-shadow: 0 0 0 4px rgba(250, 186, 0, 0.1);
  color: var(--purple) !important;
  font-weight: 700;
}

/* ===== FOOTER ===== */
footer {
  background: var(--purple);
  /* dark blue premium background */
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  border-top: 4px solid var(--purple-light);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 35px;
  height: 2px;
  background: var(--purple);
}

.footer-col-brand .footer-logo-img {
  height: 80px;
  width: auto;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  background: transparent;
  padding: 4px;
}

.footer-desc {
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col ul {
  list-style: none;
}

.footer-col-menu ul li {
  margin-bottom: 0.8rem;
}

.footer-col-menu ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-col-menu ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-list li i {
  color: var(--white);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-list li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.contact-list li a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-icons a:hover {
  background: var(--white);
  color: var(--purple);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-brand-name {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.footer-brand-name:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-link-bold {
  font-weight: 700;
  color: var(--white);
  transition: var(--transition);
}

.footer-link-bold:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .7rem;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  cursor: pointer;
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37, 211, 102, .55);
}

.whatsapp-tooltip {
  background: var(--gray-800);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  }

  50% {
    box-shadow: 0 6px 36px rgba(37, 211, 102, .7), 0 0 0 12px rgba(37, 211, 102, .12);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {

  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .header-inner {
    justify-content: space-between;
  }

  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
  }

  nav,
  .header-cta .btn {
    display: none;
  }

  .slide-text {
    max-width: 100%;
  }

  .slide-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nosotros-grid,
  .contacto-grid,
  .ubicacion-grid {
    grid-template-columns: 1fr;
  }

  .nosotros-grid {
    gap: 2.5rem;
  }

  .nosotros-img-wrap img {
    height: 320px;
  }

  .nosotros-badge {
    right: 1rem;
    bottom: -1rem;
  }

  .nosotros-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #Somos p {
    text-align: center;
  }

  .nosotros-text p,
  .nosotros-text p.lead {
    font-size: 1rem;
  }

  .valores {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }


  /* Clientes marquee mobile */
  .cliente-logo {
    height: 120px;
    width: 140px;
    padding: 0.8rem;
  }

  .cliente-logo img {
    max-height: 90px;
    max-width: 120px;
  }

  .clientes-track {
    gap: 1rem;
  }


  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .footer-col-menu {
    display: none;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-col-brand .footer-logo-img {
    margin: 0 auto 1.2rem;
    display: block;
  }

  .footer-desc {
    margin: 0 auto;
  }

  .contact-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
    text-align: center;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: .9rem;
  }

  .slider-arrow.prev {
    left: .8rem;
  }

  .slider-arrow.next {
    right: .8rem;
  }

  .parallax-divider {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .slide-text {
    max-width: 100%;
  }

  .slide-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }

  .slide-text h1 {
    font-size: clamp(1.5rem, 7vw, 1.5rem);
  }

  .slide-text p {
    font-size: .95rem;
  }

  .logo-img {
    height: 50px;
    width: auto;
  }

  .header-inner {
    height: 60px;
  }

  #header {
    height: calc(60px + 4px);
  }

  .mobile-nav {
    top: 60px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contacto-info-card,
  .contacto-form-card {
    padding: 1.5rem;
  }


  .servicios-grid-v2 {
    grid-template-columns: 1fr;
  }


  .map-wrap {
    height: 280px;
  }

  .footer-grid span {
    font-size: clamp(1.5rem, 10vw, 2.5rem);
    max-width: 100%;
    overflow: hidden;
  }

  /* Disable parallax on mobile for performance */
  .parallax-divider {
    background-attachment: scroll;
    height: 180px;
  }

}


/* ==========================================================================
   DROPDOWN NAVIGATION & MULTI-PAGE ADDITIONS
   ========================================================================== */

/* 1. Desktop Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform var(--transition);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  min-width: 320px;
  padding: 0.6rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--blue-dark);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.25s ease;
  position: relative;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* Disable the bottom line effect inside dropdown menu */
.dropdown-menu a::after {
  display: none !important;
}

.dropdown-menu a:hover {
  color: var(--purple);
  background: var(--blue-pale);
  padding-left: 1.8rem;
}

.dropdown-menu a.active {
  color: var(--purple) !important;
  background: #fce8fe !important;
  padding-left: 1.8rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Hover triggers dropdown on Desktop */
@media (min-width: 993px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

/* 2. Mobile Dropdown and Submenu Accordion */
.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  display: none;
  background: var(--blue-pale);
  padding: 0;
  list-style: none;
}

.mobile-submenu.open {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 0.85rem 2.5rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--gray-800) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  background: transparent !important;
}

.mobile-submenu a:hover {
  color: var(--purple) !important;
  background: rgba(79, 5, 86, 0.04) !important;
}

.mobile-submenu a.active {
  color: var(--purple) !important;
  background: #fce8fe !important;
  border-left: 4px solid var(--purple) !important;
  font-weight: 700 !important;
  padding-left: calc(2.5rem - 4px) !important;
  text-decoration: none !important;
}

/* 3. Services Video Grid (For Lechadas & Tratamientos) */
.services-video-section {
  background: var(--blue-pale);
  padding: 5rem 0;
  margin-top: 5rem;
}

.services-video-section-title {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.services-video-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--purple);
  border-radius: 2px;
}

.services-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .services-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-video-grid {
    grid-template-columns: 1fr;
  }
}

.service-video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.service-video-info {
  padding: 1.2rem;
}

.service-video-info h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--blue-dark);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.4;
}

/* 4. Contact Page Styles */
.contacto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contacto-info-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contacto-info-card>p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contacto-details-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 0rem;
}

.contacto-detail-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.contacto-detail-icon {
  width: 35px;
  height: 35px;
  background: var(--blue-pale);
  color: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto-detail-text h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  color: var(--blue-dark);
  margin-bottom: 0.2rem;
}

.contacto-detail-text p,
.contacto-detail-text a {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.5;
}

.contacto-detail-text a:hover {
  color: var(--purple);
}

/* Grupos de contacto por ciudad */
.contacto-detail-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.contacto-detail-group+.contacto-detail-group {
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .contacto-detail-group+.contacto-detail-group {
    margin-top: 0;
  }
}

.contacto-detail-group .contacto-section-subtitle {
  font-family: 'Poppins', sans-serif;
  color: var(--blue-dark);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  width: fit-content;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 0.25rem;
}

/* Mapa en seccion global-contact */
.contacto-map-section {
  padding: 4rem 0;
}

.contacto-map-section .contacto-map-wrapper {
  margin-top: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.1);
  height: 300px;
  box-shadow: none;
}

.contacto-map-section h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contacto-map-wrapper {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  height: 240px;
}

.contacto-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* File input (CV upload) */
.file-input {
  padding: 0.8rem;
  background-color: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: 4px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-sizing: border-box;
}

.contacto-form-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--purple);
}

.contacto-form-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin-bottom: 1.8rem;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contacto-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contacto-form .form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.contacto-form .form-group input,
.contacto-form .form-group select,
.contacto-form .form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: all 0.25s ease;
  outline: none;
}

.contacto-form .form-group input:focus,
.contacto-form .form-group select:focus,
.contacto-form .form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(250, 186, 0, 0.15);
}

.contacto-form-card .btn {
  margin-top: 1rem;
  justify-content: center;
  padding: 0.9rem 2.5rem;
}

.form-alert {
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.form-alert.success {
  background: #def7ec;
  color: #03543f;
  border: 1px solid #bcf0da;
  display: block;
}

.form-alert.error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #fbd5d5;
  display: block;
}

/* Ocultar iconos de contacto en el footer en mÃ³viles */
@media (max-width: 768px) {
  .contact-list li i {
    display: none;
  }
}





/* ===== PROYECTOS DESTACADOS ===== */
.proyectos-section {
  padding: 5rem 0;
  background: var(--blue-dark);
  /* Mismo azul que el footer */
  position: relative;
  overflow: hidden;
}

/* Efecto de líneas cuadriculadas base */
.proyectos-section::before,
.global-contact-section::before,
#Clientes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  z-index: 0;
  pointer-events: none;
}

/* Efecto hover iluminado por el cursor (magenta) */
.proyectos-section::after,
.global-contact-section::after,
#Clientes::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(229, 29, 116, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 29, 116, 0.25) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  z-index: 0;
  pointer-events: none;
  /* La máscara circular seguirá al mouse mediante variables CSS */
  -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x, -500px) var(--mouse-y, -500px), black, transparent);
  mask-image: radial-gradient(circle 250px at var(--mouse-x, -500px) var(--mouse-y, -500px), black, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proyectos-section:hover::after,
.global-contact-section:hover::after,
#Clientes:hover::after {
  opacity: 1;
}

.proyectos-section .container,
.global-contact-section .container {
  position: relative;
  z-index: 1;
}

/* Forzar 4 columnas en desktop para los 4 proyectos */
#Proyectos .servicios-grid-v2 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  #Proyectos .servicios-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #Proyectos .servicios-grid-v2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Ajuste de colores del texto para fondo oscuro */
.proyectos-section .section-title,
.proyectos-section .section-sub {
  color: var(--white);
}

.proyecto-card {
  background: var(--blue-dark);
  color: var(--white);
  padding: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.proyecto-card:hover {
  transform: translateY(-8px);
}

.proyecto-img-wrap {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.proyecto-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.proyecto-card:hover .proyecto-img-wrap img {
  transform: scale(1.1);
}

.proyecto-content {
  padding: 1rem;
  background: var(--purple);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.proyecto-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(270deg, var(--purple), var(--purple-light), #9b51e0, var(--purple));
  background-size: 300% 300%;
  animation: gradientFluid 6s ease infinite;
}

.proyecto-content h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}

.proyecto-desc-text {
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

.proyecto-bottom-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.proyecto-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.proyecto-content p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.proyecto-link {
  color: var(--purple-light);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
  margin-top: auto;
}

.proyecto-link:hover {
  color: var(--white);
}

/* ===== POLÃTICA DE CALIDAD ===== */
.politica-banner {
  background: var(--blue-dark);
  color: var(--white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--purple);
}

.politica-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(155, 81, 224, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.politica-container {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.politica-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--white);
  box-shadow: 0 0 25px rgba(255, 115, 0, 0.4);
  position: relative;
}

.politica-icon::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border: 2px dashed rgba(255, 115, 0, 0.5);
  border-radius: 50%;
  animation: spinSlow 15s linear infinite;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.politica-content {
  flex: 1;
}

.politica-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.politica-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

@media (max-width: 768px) {
  .politica-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

/* ===== GLOBAL CONTACT SECTION ===== */
.global-contact-section {
  padding: 4rem 0;
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.global-contact-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .global-contact-card {
    flex-direction: row;
  }
}

.contact-text-side {
  flex: 1;
  background: linear-gradient(rgba(2, 6, 24, 0.85), rgba(2, 6, 24, 0.85)), url('../images/nosotros_mision.jpg') center/cover no-repeat;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-text-side .tag {
  background: rgb(255, 255, 255);
  color: var(--purple);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.contact-text-side h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-text-side>p {
  color: var(--gray-400);
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.divider-gradient {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #c71e62 0%, #e63e7c 100%);
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .divider-gradient {
    width: 6px;
    height: auto;
    background: linear-gradient(180deg, #4F0556 0%, #74137D 100%);
  }
}

.contact-form-side {
  flex: 1.8;
  background: #ffffff;
  padding: 3rem;
}

.contact-form .form-row {
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .contact-form .form-row {
    flex-direction: row;
  }

  .contact-form .form-group {
    flex: 1;
  }
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form .form-row .form-group {
  margin-bottom: 0;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1e2d;
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
  background: #ffffff;
  color: #1a1e2d;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #a0aec0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple-light);
}

.btn-submit {
  background: linear-gradient(135deg, #c71e62 0%, #e63e7c 100%);
  color: #ffffff;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s, transform 0.3s;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #ffffff;
}

.contact-info-side {
  flex: 0 0 450px;
  background: #020618;
  padding: 3rem;
  color: #ffffff;
}

.contact-info-side h3 {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.info-item .icon {
  width: 48px;
  height: 48px;
  background: #23283b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item .details h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.info-item .details p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.info-divider {
  border: 0;
  border-top: 1px solid #2e354f;
  margin: 2.5rem 0;
}

.emergencies .icon {
  background: rgba(216, 43, 104, 0.15);
  color: var(--purple-light);
  border: 1px solid rgba(234, 57, 111, 0.1);
}

/* ===== VALORES HORIZONTAL CARDS ===== */
.valor-card-h {
  padding: 1.5rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  position: relative;
  cursor: default;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.valor-card-h::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-200);
  /* Normal border color */
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
  z-index: -2;
  transition: all 0.4s ease;
}

.valor-card-h::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  z-index: -1;
  transition: all 0.4s ease;
}

.valor-card-h:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 8px 20px rgba(229, 29, 116, 0.2));
}

.valor-card-h:hover::before {
  background: var(--purple);
  /* Magenta border on hover */
}

.valor-icon-h {
  background: var(--purple);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.valor-card-h:hover .valor-icon-h {
  transform: scale(1.1);
}

.valor-text-h h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
  transition: color 0.4s ease;
  text-align: left;
}

.valor-card-h:hover .valor-text-h h4 {
  color: var(--purple);
}

.valor-text-h p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  text-align: left !important;
}

/* Proyectos */
#proyectos-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  #proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #proyectos-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* Filtros en proyectos sobre fondo claro */
.portfolio-filter .btn-outline {
  color: var(--blue-dark);
  background: transparent;
}

.portfolio-filter .btn-outline::before {
  background: rgba(21, 25, 40, 0.4);
}

.portfolio-filter .btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.portfolio-filter .btn-outline:hover::before {
  background: var(--blue-dark);
}


.marca-logo {
  max-height: 50px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.marca-logo:hover {
  opacity: 1;
  filter: none;
}

@media (max-width: 768px) {
  .marca-logo {
    opacity: 1;
    filter: none;
  }
}

/* Hide Youtube and TikTok globally */
a[aria-label="Youtube"],
a[aria-label="TikTok"] {
  display: none !important;
}


.marcas-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

.mobile-dup {
  display: none;
}

@media (max-width: 768px) {

  .services-grid-dark {
    gap: 1rem;
    margin-top: 2rem;
  }

  .mobile-dup {
    display: block;
  }

  .marcas-grid-wrapper {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  }

  .marcas-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    animation: marquee-scroll 25s linear infinite;
    width: max-content;
    gap: 3rem;
  }

  .marcas-grid:hover {
    animation-play-state: paused;
  }

  .marca-logo {
    max-height: 35px;
    max-width: 100px;
  }
}

/* Mobile Portfolio Filter */
.portfolio-filter-mobile {
  display: none;
}

@media (max-width: 768px) {
  .portfolio-filter-desktop {
    display: none !important;
  }

  .portfolio-filter-mobile {
    display: block !important;
    margin-bottom: 2.5rem;
  }

  .mobile-filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.6rem;
  }

  .mobile-filter-label i {
    color: var(--purple);
    font-size: 1rem;
  }

  .mobile-select-wrapper {
    position: relative;
    width: 100%;
  }

  .mobile-select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    background: var(--purple);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(107, 33, 168, 0.25);
  }

  .modern-select {
    width: 100%;
    padding: 0.9rem 3.5rem 0.9rem 1.15rem;
    border-radius: 10px;
    border: 2px solid rgba(24, 12, 62, 0.18);
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  .modern-select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.15);
  }
}


@media (max-width: 768px) {
  .slide-content {
    align-items: flex-end;
    padding-bottom: 0rem;
  }

  .slide-text h1 {
    font-size: 1.7rem !important;
  }

  .slide-text .tag {
    font-size: 0.6rem !important;
  }

  .slide-text p {
    display: block !important;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
  }

  .industrias-section .section-title {
    font-size: 1.6rem !important;
  }

  .slide-overlay {
    background: linear-gradient(to top, rgba(24, 12, 62, 0.95) 20%, rgba(24, 12, 62, 0.1) 100%) !important;
  }

}

/* === Extracted Inline Styles === */
.w-whatsapp-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.text-purple {
  color: var(--purple);
}

.border-purple-light {
  border: 1px solid rgba(116, 19, 125, 0.4);
}

.icon-purple-small {
  color: var(--purple-light);
  font-size: 0.5rem;
  vertical-align: middle;
  margin-right: 5px;
}

.text-purple-light {
  color: var(--purple-light);
}

.slide-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #cbd5e1;
  max-width: 600px;
}


.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.typewriter-style {
  font-size: 1.5em;
  font-weight: 400;
  color: var(--blue-dark);
  letter-spacing: 0.15em;
}

.mt-1-5rem {
  margin-top: 1.5rem;
}

.py-marcas {
  padding: 1rem 0 4rem 0;
}

.text-center-mb-2 {
  text-align: center;
  margin-bottom: 2rem;
}

.section-sub-marcas {
  font-size: 1rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.proyectos-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  text-align: left;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn-proyectos {
  white-space: nowrap;
  margin-bottom: 0.6rem;
}

.tag-absolute-top-left {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
}

.tag-purple-blur {
  font-size: 0.75rem;
  background: rgba(116, 19, 125, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.tag-purple-blur i {
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  margin-right: 0.2rem;
}

.proyecto-location-text {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.proyecto-title-text {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.clientes-section-bg {
  background-color: var(--blue-dark) !important;
  padding-bottom: 5rem;
  margin-top: -5rem;
  position: relative;
  overflow: hidden;
}

.relative-z-1 {
  position: relative;
  z-index: 1;
}

.text-white {
  color: var(--white);
}

.mt-2rem {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .mt-2rem {
    margin-top: 2rem;
  }
}

.grid-valores-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

/* Valores horizontal section (fondo gris estilo Home) */
.valores-h-section {
  background-color: var(--gray-100);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.valores-h-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 350px;
  border-radius: 50%;
  background: rgba(35, 47, 96, 0.04);
  pointer-events: none;
}

.valores-h-section .grid-valores-horizontal {
  margin-top: 0;
}

.mt-4rem {
  margin-top: 4rem;
}

.bg-sustentabilidad-img {
  background-image: url('../images/proyectos_img_geotermia_1.jpeg');
}

.bg-trabaja-img {
  background-image: url('../images/img_trabaja.jpg') !important;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.d-none {
  display: none !important;
}

.w-100-flex-center {
  width: 100%;
  justify-content: center;
}

.parallax-divider-bg {
  height: 250px;
  background-image: url('../images/slide_4.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 24, 0.3);
}

.text-center-mb-1 {
  text-align: center;
  margin-bottom: 1rem;
}

/* ===== INDUSTRIAS ===== */
.industrias-section {
  padding: 1rem 0 4rem;
  background-color: var(--white);
}

.industrias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.industria-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--white);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .industria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: var(--white);
  }
}

.industria-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 0.5s ease;
}

/* Industria card background images */
.industria-bg-1 {
  background-image: url('../images/industria_img_1.jpg');
}

.industria-bg-2 {
  background-image: url('../images/industria_img_2.jpg');
}

.industria-bg-3 {
  background-image: url('../images/industria_img_3.jpg');
}

.industria-bg-4 {
  background-image: url('../images/industria_img_4.jpg');
}

.industria-bg-5 {
  background-image: url('../images/industria_img_5.jpg');
}

.industria-bg-6 {
  background-image: url('../images/industria_img_6.jpg');
}

/* Empresa img with rounded corners */
.empresa-img-rounded {
  border-radius: 8px;
}

/* Empresa grid section spacing */
.empresa-grid-mt {
  margin-top: 40px;
}

/* Section tag label (uppercase, transparent bg) */
.section-tag-label {
  background: transparent;
  padding: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section title left aligned with bottom margin */
.section-title-left {
  text-align: left;
  margin-bottom: 2rem;
}

/* Portfolio filter desktop */
.portfolio-filter-desktop {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Clientes section background */
.clientes-section {
  background-color: var(--gray-100);
  padding: 4rem 0;
}

.clientes-section-header {
  text-align: center;
}

.clientes-section-sub {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Page section extra bottom padding */
.page-section-pb {
  padding-bottom: 5.5rem;
}

/* Projects page title spacing */
.projects-title {
  margin-bottom: 2rem;
}

/* Nosotros / Sustentabilidad section spacing */
.section-mb-5 {
  margin-bottom: 5rem;
}

.section-mb-6 {
  margin-bottom: 6rem;
}

.industria-card.active .industria-bg {
  transform: scale(1.05);
}

@media (hover: hover) {
  .industria-card:hover .industria-bg {
    transform: scale(1.05);
  }
}

.industria-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 200%;
  background: linear-gradient(75deg, rgba(24, 12, 62, 0.95) 0%, rgba(24, 12, 62, 0.9) 50%, rgba(24, 12, 62, 0) 75%);
  z-index: 2;
  transition: transform 0.5s ease;
  transform: translateX(0);
}

.industria-card.active .industria-overlay {
  transform: translateX(35%);
}

@media (hover: hover) {
  .industria-card:hover .industria-overlay {
    transform: translateX(35%);
  }
}

.industria-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.industria-icon {
  font-size: 2.2rem;
  margin-bottom: auto;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}

.industria-icon-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: auto;
  width: 1em;
  height: 1em;
}

.industria-icon-stack .fa-shield {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  position: absolute;
  font-size: 1em;
}

.industria-icon-stack .fa-check {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  position: absolute;
  font-size: 0.5em;
  margin-top: 0.1em;
}

.industria-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0;
  text-transform: uppercase;
  color: var(--white);
  transition: transform 0.4s ease;
}

.industria-card.active .industria-title {
  transform: translateY(-5px);
}

@media (hover: hover) {
  .industria-card:hover .industria-title {
    transform: translateY(-5px);
  }
}

.industria-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-200);
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.industria-card.active .industria-text {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.5rem;
}

@media (hover: hover) {
  .industria-card:hover .industria-text {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.5rem;
  }
}

.industria-text span {
  flex-grow: 1;
  padding-right: 0.5rem;
}

.industria-mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .industria-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: calc(-1.5rem + 10px);
    right: calc(-1.5rem + 10px);
    width: 32px;
    height: 32px;
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    border-radius: 50%;
    z-index: 10;
    transition: transform 0.3s ease;
  }

  .industria-mobile-toggle i {
    font-family: 'Inter', sans-serif !important;
    font-weight: 100 !important;
    font-size: 2rem;
    font-style: normal;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
    /* Para alinear ópticamente el + y el × */
  }

  .industria-mobile-toggle i::before {
    content: "+" !important;
  }

  .industria-card.active .industria-mobile-toggle i::before {
    content: "\00d7" !important;
    /* Signo de multiplicación (X lineal) */
  }
}

/* ===== FEATURES BAR ===== */
.features-bar {
  background-color: #f4f4f4;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eaeaea;
}

.features-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1rem;
}

.features-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 0 1rem;
}

.feature-icon {
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.stack-icon {
  position: relative;
  width: 1em;
  height: 1em;
}

.feature-icon.stack-icon .fa-shield {
  position: absolute;
  font-size: 1em;
}

.feature-icon.stack-icon .fa-check {
  position: absolute;
  font-size: 0.5em;
  margin-top: 0.1em;
}

.feature-content h4 {
  font-size: 0.95rem;
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-content p {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  line-height: 1.3;
}

.feature-divider {
  width: 1px;
  height: 40px;
  background-color: #ccc;
  flex-shrink: 0;
}

.features-dots {
  display: none;
}

@media (max-width: 991px) {
  .features-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .features-slider::-webkit-scrollbar {
    display: none;
  }

  .feature-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    /*padding: 1rem 2rem;*/
    justify-content: center;
    text-align: left;
  }

  .feature-divider {
    display: none;
  }

  .features-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
  }

  .features-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .features-dots .dot.active {
    background-color: var(--purple);
  }
}

/* ===== SOLUCIONES INTEGRALES ===== */
.soluciones-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.soluciones-section .section-title {
  font-size: 2rem;
}

.soluciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.solucion-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 2px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: var(--gray-800);
  transition: transform 0.3s ease, filter 0.3s ease;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.solucion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #eaeaea;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  z-index: -2;
  transition: background 0.4s ease;
}

.solucion-card::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: var(--white);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  z-index: -1;
}

.solucion-card:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

.solucion-card:hover::before {
  background: var(--purple);
}

.solucion-img-wrapper {
  position: relative;
  height: 170px;
}

.solucion-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.solucion-icon-box {
  position: absolute;
  bottom: -15px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.solucion-content {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.solucion-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.solucion-number {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--purple);
  line-height: 1;
}

.solucion-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.3;
  padding-top: 0.3rem;
  transition: color 0.3s ease;
}

.solucion-card:hover .solucion-title {
  color: var(--purple);
}

.solucion-content p {
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.solucion-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.solucion-card:hover .solucion-link {
  color: var(--purple-light);
}

/* ===== 404 ERROR PAGE ===== */
.error-404-section {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-404-content {
  max-width: 880px;
  margin: 0 auto;
}

.error-404-code {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--purple) 50%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.error-404-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--blue-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

.error-404-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.error-404-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.error-404-services {
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}

.error-404-services h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: var(--blue-dark);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.error-404-services-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
}

.error-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background-color: var(--gray-100);
  color: var(--blue-dark);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.error-service-link i {
  color: var(--purple);
  transition: transform 0.3s ease;
}

.error-service-link:hover {
  background-color: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(35, 47, 96, 0.15);
}

.error-service-link:hover i {
  color: var(--purple-light);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .error-404-actions {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.85rem;
  }

  .error-404-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .error-404-services-list {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    gap: 0.75rem;
  }

  .error-service-link {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal;
    text-align: center;
    padding: 0.9rem 1.25rem;
  }
}