/* ==========================================
   ECOSANGIL - CSS UNIFICADO Y OPTIMIZADO
   Versión 2026 - Todos los estilos en un solo archivo
   ========================================== */

/* ==========================================
   VARIABLES CSS - PALETA NARANJA
   ========================================== */
:root {
  /* Colores Principales */
  --primary-orange: #ff9933;
  --primary-coral: #ff8c42;
  --primary-dark-orange: #ff7f2a;
  --primary-light-orange: #ffa94d;
  --primary-yellow: #ffb84d;
  --dark-bg: #1e293b;
  --darker-bg: #0f172a;
  --light-bg: #fff5e6;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;

  /* Gradientes Naranjas */
  --gradient-1: linear-gradient(135deg, #ff8c42 0%, #ff7f2a 100%);
  --gradient-2: linear-gradient(135deg, #ffa94d 0%, #ff8c42 100%);
  --gradient-3: linear-gradient(135deg, #ffb84d 0%, #ff9933 100%);
  --gradient-4: linear-gradient(135deg, #ff7f2a 0%, #ff9933 100%);
  --gradient-main: linear-gradient(135deg, #ff8c42 0%, #ff9933 100%);

  /* Sombras 3D */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 40px rgba(255, 140, 66, 0.5);

  /* Bordes y Radios */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;

  /* Transiciones */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET MODERNO
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family:
    "Inter",
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.ecosangil-modern {
  font-family:
    "Inter",
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;

 
  overflow-x: hidden;
}

.container-modern,
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ==========================================
   SPLASH SCREEN - CAMIÓN ANIMADO
   ========================================== */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

:root {
  --scene-h: 100vh;
  --road-h: 220px;
  --truck-h: 450px;
  --drive-time: 7s;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
  overflow: hidden;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.scene {
  width: 100vw;
  height: var(--scene-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(#87d6ff 0%, #dff6ff 55%, #c6f0ff 100%);
}

.clouds {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(255, 255, 255, 0.85) 0 35px,
      transparent 36px
    ),
    radial-gradient(
      circle at 18% 22%,
      rgba(255, 255, 255, 0.85) 0 45px,
      transparent 46px
    ),
    radial-gradient(
      circle at 78% 16%,
      rgba(255, 255, 255, 0.75) 0 38px,
      transparent 39px
    ),
    radial-gradient(
      circle at 84% 18%,
      rgba(255, 255, 255, 0.75) 0 52px,
      transparent 53px
    );
  opacity: 0.9;
  animation: cloudsMove 22s linear infinite;
}

@keyframes cloudsMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-140px);
  }
}

.splash-title {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: 180px;
  font-weight: 900;
  color: #ff8800;
  text-transform: uppercase;
  letter-spacing: 12px;
  text-shadow:
    4px 4px 0px rgba(255, 255, 255, 0.9),
    8px 8px 0px rgba(0, 0, 0, 0.3);
  z-index: 10;
  margin: 0;
  animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--road-h);
  background: linear-gradient(#3b3b3b, #242424);
  z-index: 1;
}

.road::before {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0 70px,
    transparent 70px 140px
  );
  /* filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35)); */
  animation: laneSync var(--drive-time) linear infinite;
}

@keyframes laneSync {
  0% {
    background-position: 0 0;
  }
  40% {
    background-position: -560px 0;
  }
  60% {
    background-position: -560px 0;
  }
  100% {
    background-position: -1120px 0;
  }
}

.road::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.truckWrap {
  position: absolute;
  bottom: calc(var(--road-h) - 130px);
  left: 0;
  height: var(--truck-h);
  display: flex;
  align-items: flex-end;
  will-change: transform;
  animation: drive var(--drive-time) linear infinite;
  z-index: 2;
  perspective: 800px;
  transform-style: preserve-3d;
}

.truck {
  height: var(--truck-h);
  width: auto;
  display: block;
  /* filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.35)); */
  user-select: none;
  pointer-events: none;
  animation: bounce 0.55s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
  transform-origin: center center;
}

.shadow {
  position: absolute;
  left: 18%;
  bottom: -10px;
  width: 60%;
  height: 18px;
  background: rgba(0, 0, 0, 0.25);
  /* filter: blur(10px); */
  border-radius: 999px;
}

.truckWrap::after {
  content: "";
  position: absolute;
  left: -25px;
  bottom: 55px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  /* filter: blur(1px); */
  opacity: 0;
  animation: smoke 0.9s ease-out infinite;
}

@keyframes smoke {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 0.5;
  }
  100% {
    transform: translate(-55px, -18px) scale(1.6);
    opacity: 0;
  }
}

@keyframes drive {
  0% {
    transform: translateX(-100%);
  }
  40% {
    transform: translateX(calc(50vw - 500px));
  }
  60% {
    transform: translateX(calc(50vw - 500px));
  }
  100% {
    transform: translateX(100vw);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: scale(1) rotate(6deg) skewX(-3deg) rotateY(-35deg);
  }
  50% {
    transform: scale(1.01) rotate(6deg) skewX(-3deg) rotateY(-35deg);
  }
}

.main-content-wrapper {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
  color: var(--text-dark);
  background-color: var(--white);
}

.main-content-wrapper.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   NAVEGACIÓN FLOTANTE
   ========================================== */
.nav-floating {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
  width: calc(100% - 40px);
  max-width: 1400px;
  pointer-events: auto !important;
}

.nav-container {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 12px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

.logo-modern:hover {
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (background-clip: text) {
  .logo-text {
    color: #ff8c42;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.logo-icon {
  font-size: 1.8rem;
  /* filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); */
}

.nav-links-modern {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links-modern > li {
  position: relative;
}

.nav-link {
  color: var(--dark-bg);
  font-weight: 500;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown .nav-link i.fa-angle-down {
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.dropdown:hover .nav-link i.fa-angle-down {
  transform: rotate(180deg);
}

.submenu-modern {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 12px 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  list-style: none;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .submenu-modern {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-modern li {
  padding: 0;
}

.submenu-modern li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  color: var(--dark-bg);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  text-decoration: none;
}

.submenu-modern li a:hover {
  background: rgba(30, 64, 175, 0.1);
  color: #ff9933;
  padding-left: 24px;
}

.submenu-modern li a i {
  font-size: 0.85rem;
  opacity: 0.7;
}

.submenu-header {
  padding: 12px 16px 8px 20px;
  margin: 8px 8px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff9933;
  border-top: 1px solid rgba(30, 64, 175, 0.15);
  border-radius: 4px 4px 0 0;
}

.submenu-header:first-child {
  border-top: none;
  margin-top: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-bg);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================
   HERO FULLSCREEN MODERNO
   ========================================== */
.hero-modern {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  background: #f69218;
  padding: 116px 12px 60px 20px;
}

.hero-modern::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: transparent;
  background-size: cover;
  z-index: 1;
  display: none;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("../../file.php?f=img%2Findex%2Fbanner_index.jpeg") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.hero-modern::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50px);
  top: 0;
  width: 210px;
  height: 100%;
  background: #f69218;
  z-index: 2;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 1000' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0H95C155 70 155 150 95 220C35 290 35 370 95 440C155 510 155 590 95 660C35 730 35 810 95 880C155 950 155 980 95 1000H0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 1000' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0H95C155 70 155 150 95 220C35 290 35 370 95 440C155 510 155 590 95 660C35 730 35 810 95 880C155 950 155 980 95 1000H0Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-background {
  position: absolute;
  overflow: hidden;
  z-index: none;
  pointer-events: none !important;
  display: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);//ciruclitos
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
  pointer-events: none !important;
  z-index:0 ;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-1);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-2);
  bottom: -150px;
  left: -100px;
  animation-delay: 2s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -45px) scale(1.08);
  }
  50% {
    transform: translate(-40px, 30px) scale(0.93);
  }
  75% {
    transform: translate(35px, 40px) scale(1.05);
  }
}

.hero-content-modern {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 50%;
  margin: 0;
  margin-left: clamp(10px, 4vw, 20px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: slideDown 0.6s ease-out;
}

.hero-title-modern {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.title-line {
  display: block;
  color: var(--white);
}

.highlight-gradient {
  background: linear-gradient(135deg, #faf38c 0%, #fff496 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* filter: brightness(1.2); */
  text-shadow: none;
}

@supports not (background-clip: text) {
  .highlight-gradient {
    color: #fac38c;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 5px 14px rgba(255, 153, 51, 0.45);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: 0;
  margin-right: 0;
  animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-cta-group {
  display: flex;
  gap: 50px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: slideUp 0.8s ease-out 0.6s both;
}

.hero-cta-group .btn-modern {
  width: auto;
  flex: 0 0 auto;
  max-width: max-content;
  white-space: nowrap;
}

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

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

.hero-stats {
  display: flex;
  gap: 50px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  margin: 0;
  animation: slideUp 0.8s ease-out 0.8s both;
}

@media (max-width: 992px) {
  .hero-modern {
    min-height: auto;
    justify-content: center;
    padding: 120px 12px 56px 20px;
  }

  .hero-bg-image {
    width: 100%;
    left: 0;
    opacity: 0.22;
  }

  .hero-modern::before {
    width: 100%;
    opacity: 0.24;
  }

  .hero-modern::after {
    display: none;
  }

  .hero-content-modern {
    max-width: min(760px, 100%);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group,
  .hero-stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero-modern {
    padding: 108px 10px 44px 16px;
  }

  .hero-badge {
    margin-bottom: 22px;
    padding: 9px 18px;
  }

  .hero-cta-group {
    gap: 16px;
    margin-bottom: 34px;
  }

  .hero-cta-group .btn-modern {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .hero-stats {
    gap: 22px;
  }

  .stat-divider {
    height: 28px;
  }
}

.stat-mini {
  min-width: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.stat-mini .stat-number {
  display: block;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffe7b0 0%, #fff7dc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 16px rgba(255, 240, 201, 0.3);
  /* filter: brightness(1.2); */
}

@supports not (background-clip: text) {
  .stat-mini .stat-number {
    color: #fff2c7;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.stat-mini .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.96);
  font-weight: 600;
  text-align: center;
  width: 100%;
  opacity: 1;
  margin-top: 4px;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: rgba(250, 170, 109, 0.45);
}

.scroll-indicator {
  z-index: 10;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ffd166;
  text-shadow: 0 0 18px rgba(255, 153, 51, 0.65);
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: scroll-indicator-intro 4.8s ease-out forwards;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 209, 102, 0.95);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 0 18px rgba(255, 153, 51, 0.45);
  animation: scroll-indicator-bob 1.2s ease-in-out 3;
}

.wheel {
  width: 4px;
  height: 10px;
  background: #ff9933;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 24px;
    opacity: 0;
  }
}

@keyframes scroll-indicator-intro {
  0% {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
  }
  12% {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  72% {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scroll-indicator-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ==========================================
   BOTONES MODERNOS
   ========================================== */
.btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary-modern,
.btn-primary-sespa {
  background: var(--gradient-1);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary-modern:hover,
.btn-primary-sespa:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-glass,
.btn-secondary-sespa {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-glass:hover,
.btn-secondary-sespa:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

.btn-gradient:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  background: var(--gradient-1);
  color: var(--white);
  padding: 16px;
  font-size: 1.05rem;
}

.btn-submit:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: #ff9933;
  border: 2px solid #ff9933;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-normal);
  font-size: 0.95rem;
}

.btn-outline i {
  color: #ff9933;
}

.btn-outline:hover {
  background: #ff9933;
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.2);
}

.btn-outline:hover i {
  color: white;
}

.btn-glass-dark {
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.btn-glass-dark:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ==========================================
   SECCIONES MODERNAS
   ========================================== */
.section-header-modern {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  background: var(--gradient-1);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-tech {
  background: var(--gradient-3);
}

.badge-contact {
  background: var(--gradient-2);
}

.section-title-modern {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #ff8c42 0%, #ff7f2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 700;
}

@supports not (background-clip: text) {
  .text-gradient {
    color: #ff8c42;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.section-description {
  font-size: 1.1rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================
   SERVICIOS MODERNOS
   ========================================== */
.services-modern {
  padding: 120px 0;
  background: var(--light-bg);
  overflow: visible !important;
}

.services-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.service-card-modern {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.service-card-modern:hover .card-glow {
  opacity: 0.05;
}

.card-primary .service-icon-modern {
  background: var(--gradient-1);
}

.card-secondary .service-icon-modern {
  background: var(--gradient-2);
}

.card-tertiary .service-icon-modern {
  background: var(--gradient-3);
}

.card-quaternary .service-icon-modern {
  background: var(--gradient-4);
}

.service-icon-modern {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.service-card-modern h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af !important;
  margin-bottom: 16px;
}

.service-card-modern p {
  color: #334155 !important;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin: 20px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155 !important;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.feature-list i {
  color: #ff9933;
  font-size: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff9933;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 16px;
  transition: var(--transition-fast);
}

.card-link:hover {
  gap: 12px;
}

/* ==========================================
   CARRUSEL DISEÑO EXPANDIDO
   ========================================== */
.carousel-container {
  position: relative;
  width: 100%;
  height: 820px;
  perspective: 1500px;
  overflow: visible;
  padding: 30px 0 60px 0;
  margin-top: 10px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.services-grid-modern.carousel-mode {
  display: block;
  position: relative;
  overflow: visible !important;
  height: 620px;
  padding: 0;
}

.services-grid-modern.carousel-mode .service-card-modern {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.services-grid-modern.carousel-mode .service-card-modern.active {
  width: 400px;
  height: auto;
  min-height: 500px;
  margin: -250px 0 0 -200px;
  opacity: 1;
  z-index: 10;
  transform: translateX(0) translateY(0) scale(1) translateZ(0);
  pointer-events: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  padding: 28px 28px 24px;
}

.services-grid-modern.carousel-mode .service-card-modern.left {
  width: 290px;
  height: 430px;
  margin: -215px 0 0 -145px;
  opacity: 0.7;
  z-index: 5;
  transform: translateX(-440px) translateY(30px) scale(0.85) translateZ(-150px);
  /* filter: brightness(0.85); */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.services-grid-modern.carousel-mode .service-card-modern.right {
  width: 290px;
  height: 430px;
  margin: -215px 0 0 -145px;
  opacity: 0.7;
  z-index: 5;
  transform: translateX(440px) translateY(30px) scale(0.85) translateZ(-150px);
  /* filter: brightness(0.85); */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.services-grid-modern.carousel-mode .service-card-modern.top {
  width: 260px;
  height: 410px;
  margin: -205px 0 0 -130px;
  opacity: 0.6;
  z-index: 3;
  transform: translateX(0) translateY(-200px) scale(0.8) translateZ(-200px);
  /* filter: brightness(0.8); */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Forzar visibilidad del texto en carrusel */
.services-grid-modern.carousel-mode .service-card-modern h3 {
  color: #1e40af !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  font-size: 1.2rem !important;
  margin-bottom: 10px !important;
}

.services-grid-modern.carousel-mode .service-card-modern p {
  color: #334155 !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  margin-bottom: 12px !important;
}

.services-grid-modern.carousel-mode .service-card-modern .service-icon-modern {
  width: 58px !important;
  height: 58px !important;
  font-size: 1.4rem !important;
  margin-bottom: 14px !important;
}

.services-grid-modern.carousel-mode .service-card-modern .feature-list {
  margin: 8px 0 10px !important;
}

.services-grid-modern.carousel-mode .service-card-modern .feature-list li {
  color: #334155 !important;
  opacity: 1 !important;
  display: flex !important;
  visibility: visible !important;
  font-size: 0.85rem !important;
  margin-bottom: 6px !important;
}

.services-grid-modern.carousel-mode .service-card-modern .card-link {
  color: #ff9933 !important;
  opacity: 1 !important;
  display: inline-flex !important;
  visibility: visible !important;
  margin-top: 10px !important;
  font-size: 0.9rem !important;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 100;
}

.carousel-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff9933 0%, #ff7f2a 100%);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  z-index: 100;
  position: relative;
}

.carousel-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 30px rgba(30, 64, 175, 0.6);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-controls .carousel-btn {
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.5);
  }
}

.carousel-indicators {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(30, 64, 175, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  width: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff9933 0%, #ff7f2a 100%);
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.4);
}

.carousel-dot:hover {
  background: rgba(30, 64, 175, 0.6);
  transform: scale(1.2);
}

.carousel-counter {
  font-size: 0.95rem;
  color: #ff9933;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* ==========================================
   INNOVACIÓN
   ========================================== */
.innovation-section {
  padding: 120px 0;
  background: var(--white);
}

.innovation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.innovation-text {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 32px;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.tech-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.tech-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tech-feature h4 {
  color: var(--dark-bg);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.tech-feature p {
  color: #64748b;
  font-size: 0.95rem;
}

.innovation-visual {
  position: relative;
  height: 580px;
}

.visual-card {
  position: absolute;
  padding: 24px;
  text-align: center;
  min-width: 180px;
}

.visual-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.visual-stat {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

@supports not (background-clip: text) {
  .visual-stat {
    color: #ff8c42;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.visual-label {
  color: #64748b;
  font-size: 0.9rem;
}

.card-float-1 {
  top: 0;
  left: -20px;
  animation: float 7s ease-in-out infinite;
}

.card-float-2 {
  top: 60px;
  right: -20px;
  animation: float 8s ease-in-out infinite 1.5s;
}

.card-float-3 {
  bottom: 60px;
  left: 10px;
  animation: float 9s ease-in-out infinite 3s;
}

.card-float-4 {
  bottom: 0;
  right: 10px;
  animation: float 7.5s ease-in-out infinite 4.5s;
}

/* ==========================================
   IMPACTO
   ========================================== */
.impact-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.impact-card {
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition-normal);
}

.impact-card:hover {
  transform: translateY(-8px);
}

.impact-icon-wrapper {
  margin-bottom: 24px;
}

.impact-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.icon-blue {
  background: var(--gradient-1);
}

.icon-green {
  background: var(--gradient-3);
}

.icon-purple {
  background: var(--gradient-2);
}

.icon-orange {
  background: var(--gradient-4);
}

.impact-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.impact-number::after {
  content: "+";
}

.impact-label {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 16px;
}

.impact-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.impact-progress {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ==========================================
   CONTACTO
   ========================================== */
.contact-section {
  padding: 120px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  margin-top: 60px;
}

.contact-description {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: center;
}

.method-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-method h4 {
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-method p {
  color: #475569;
  font-size: 0.95rem;
}

.social-links-modern {
  display: flex;
  gap: 16px;
}

.social-link,
.social-link-modern {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.social-link:hover,
.social-link-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-form-container {
  background: #ffe4d1;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid #ffe4d1;
}

.contact-form-modern,
.form-glassmorphism {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group-modern label {
  display: block;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group-modern input,
.form-group-modern textarea,
.form-group-modern select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--white);
  color: #1e293b;
}

.form-group-modern input::placeholder,
.form-group-modern textarea::placeholder {
  color: #94a3b8;
}

.form-group-modern input:focus,
.form-group-modern textarea:focus,
.form-group-modern select:focus {
  outline: none;
  border-color: #ff9933;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.contact-form-help {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.9rem;
}

.contact-submit-button {
  width: 100%;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.contact-modal__dialog {
  position: relative;
  width: min(calc(100vw - 2rem), 420px);
  margin: min(12vh, 6rem) auto 0;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.contact-modal.is-error .contact-modal__icon {
  background: rgba(239, 68, 68, 0.14);
  color: #dc2626;
}

.contact-modal.is-loading .contact-modal__icon {
  background: rgba(245, 158, 11, 0.18);
  color: #d97706;
}

.contact-modal__title {
  margin-bottom: 0.5rem;
}

.contact-modal__message {
  margin-bottom: 1.25rem;
  color: #475569;
}

.contact-modal__button {
  min-width: 170px;
}

.form-row-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==========================================
   FOOTER MODERNO
   ========================================== */
.footer-modern {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 150px;
  margin-top: clamp(24px, 4vw, 48px);
  background: inherit;
  color: #000;
  padding: 0;
}

.footer-modern::before,
.footer-modern::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.footer-modern::before {
  background-image: url("../../file.php?f=assets%2Fimg%2Farboles.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 130%;
  z-index: 0;
}

.footer-modern::after {
  background-color: transparent;
  background-image: url("../../file.php?f=assets%2Fimg%2Faves-ecosangil.gif");
  background-repeat: no-repeat;
  background-position: center calc(60% + 12px);
  background-size: 100% auto;
  inset: 0;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #cc5500;
  text-shadow: 0 2px 10px rgba(204, 85, 0, 0.3);
}

.footer-description {
  color: rgba(0, 0, 0, 0.75);
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.7);
  transition: var(--transition-fast);
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
  color: #cc5500;
  padding-left: 8px;
  text-shadow: 0 2px 8px rgba(204, 85, 0, 0.4);
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  position: relative;
  z-index: 2;
  color: #000;
  font-size: 0.9rem;
  background: transparent;
  padding: clamp(18px, 2.2vw, 30px) clamp(16px, 4vw, 56px) 8px;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom > p {
  color: #000;
  text-align: left;
  justify-self: start;
}

.footer-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo-image {
  height: clamp(95px, 10vw, 120px);
  max-width: min(220px, 45vw);
  width: auto;
  object-fit: contain;
}

.footer-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
}

.footer-bottom-links {
  display: flex;
  gap: clamp(12px, 2vw, 24px);
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-links a {
  color: #000;
  transition: var(--transition-fast);
}

.footer-modern p,
.footer-modern span,
.footer-modern a {
  color: #000;
}

.footer-bottom-links a:hover {
  color: #000;
  text-shadow: none;
}

.footer-vigilados {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-vigilados-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-transform: uppercase;
}

.footer-super {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-super-img {
  height: clamp(64px, 8vw, 100px);
  width: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
  border-radius: 4px;
  padding: 2px 4px;
  vertical-align: middle;
}

.footer-super-img:hover {
  opacity: 1;
  transform: scale(1.06);
}

.footer-social a[aria-label="Facebook"],
.footer .footer-social a[aria-label="Facebook"] {
  background: #1877f2 !important;
  color: white !important;
}

.footer-social a[aria-label="Twitter"],
.footer .footer-social a[aria-label="Twitter"] {
  background: #1da1f2 !important;
  color: white !important;
}

.footer-social a[aria-label="Instagram"],
.footer .footer-social a[aria-label="Instagram"] {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  ) !important;
  color: white !important;
}

.footer-social a[aria-label="LinkedIn"],
.footer .footer-social a[aria-label="LinkedIn"] {
  background: #0a66c2 !important;
  color: white !important;
}

.footer-social a[aria-label="YouTube"],
.footer .footer-social a[aria-label="YouTube"] {
  background: #ff0000 !important;
  color: white !important;
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top-modern {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

.back-to-top-modern.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================
   HERO DE PÁGINAS INTERNAS
   ========================================== */
.page-hero-modern {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-image:
    url("/file.php?f=img%2Fservicios%2Ffondo_hero_paginas_internas.JPG");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  padding: 100px 20px 60px;
}

.page-hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none !important;
  display: block;
}

.page-hero-background .gradient-orb {
  display: none;
}

.page-hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  border-radius: 12px;
  padding: 32px 40px 24px;
}

.breadcrumb-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.breadcrumb-modern a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.breadcrumb-modern a:hover {
  color: var(--white);
}

.breadcrumb-modern .current {
  color: var(--white);
  font-weight: 600;
}

.page-title-modern {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.page-subtitle-modern {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-modern {
  padding: 60px 0;
  background: var(--white);
}

body.quienes-somos-page {
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("../../file.php?f=assets%2Fimg%2Ffondo_acerca_dee.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.quienes-somos-page .about-modern,
body.quienes-somos-page .timeline-modern,
body.quienes-somos-page .values-modern-section,
body.quienes-somos-page .cta-modern-section {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0 clamp(18px, 3.5vw, 42px);
  padding-top: 72px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}

body.quienes-somos-page .about-modern {
  margin-top: 22px;
}

body.quienes-somos-page .about-modern,
body.quienes-somos-page .values-modern-section {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 153, 51, 0.12);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(115, 73, 22, 0.07);
  margin-left: clamp(14px, 3vw, 28px);
  margin-right: clamp(14px, 3vw, 28px);
}

body.quienes-somos-page .cta-modern-section {
  margin-bottom: 22px;
}

body.quienes-somos-page .section-header-modern {
  margin-bottom: 52px;
}

body.quienes-somos-page .section-title-modern,
body.quienes-somos-page .cta-content h2 {
  letter-spacing: -0.03em;
}

body.quienes-somos-page .about-text,
body.quienes-somos-page .timeline-content-card p,
body.quienes-somos-page .value-card-modern p,
body.quienes-somos-page .cta-content p {
  max-width: 72ch;
}

body.quienes-somos-page .cta-content p {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  body.quienes-somos-page {
    background-attachment: scroll;
  }

  body.quienes-somos-page .about-modern,
  body.quienes-somos-page .timeline-modern,
  body.quienes-somos-page .values-modern-section,
  body.quienes-somos-page .cta-modern-section {
    margin: 0 12px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  body.quienes-somos-page .section-header-modern {
    margin-bottom: 38px;
  }

  body.quienes-somos-page .about-modern,
  body.quienes-somos-page .values-modern-section {
    margin-left: 12px;
    margin-right: 12px;
    border-radius: 22px;
  }
}

body.mision-vision-page {
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url("../../file.php?f=assets%2Fimg%2Ffondo_proposito_horizonte.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.mision-vision-page .about-modern {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
}

body.mision-vision-page .about-mision-bg::before {
  display: none;
}

body.mision-vision-page .footer-modern {
  background: transparent;
}

@media (max-width: 768px) {
  body.mision-vision-page {
    background-attachment: scroll;
  }
}

.about-mision-bg {
  position: relative;
  overflow: hidden;
}

.about-mision-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url("../../file.php?f=assets%2Fimg%2Ffondo_proposito_horizonte.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.about-mision-bg .container-modern {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 24px;
}

.quote-modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-left: 4px solid var(--primary-orange);
  padding: 30px;
  border-radius: var(--radius-md);
  margin-top: 40px;
  position: relative;
}

.quote-modern i {
  font-size: 2rem;
  color: var(--primary-orange);
  opacity: 0.3;
  margin-bottom: 16px;
}

.quote-modern p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--dark-bg);
  margin-bottom: 16px;
  line-height: 1.6;
}

.quote-author {
  display: block;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.about-visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 260px;
  max-width: 280px;
  border: 2px solid rgba(255, 153, 51, 0.3);
  transition: var(--transition-normal);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.36) 100%
  );
  z-index: 1;
}

.about-feature-card * {
  position: relative;
  z-index: 2;
}

.about-feature-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 153, 51, 0.3);
  border-color: rgba(255, 153, 51, 0.6);
}

.about-feature-card:hover::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.03) 0%,
    rgba(0, 0, 0, 0.14) 50%,
    rgba(0, 0, 0, 0.28) 100%
  );
}


.about-feature-card .feature-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.about-feature-card h4 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.about-feature-card p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.about-feature-card.card-1 {
  top: 30px;
  left: 10px;
  animation: float 6s ease-in-out infinite;
}

.about-feature-card.card-2 {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  animation: float 6s ease-in-out infinite 2s;
}

.about-feature-card.card-3 {
  bottom: 30px;
  left: 10px;
  animation: float 6s ease-in-out infinite 4s;
}

/* ==========================================
   TIMELINE MODERNA
   ========================================== */
.timeline-modern {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.timeline-wave-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.timeline-wave-bg svg {
  position: absolute;
  display: block;
  max-width: none;
  /* ↕ width controla la altura visible de la ola (eje Y real tras la rotación) */
  /* ↔ height controla el grosor del relleno naranja al lado izquierdo          */
  width: 2200px;
  height: 500px;
  /* Posicion estable: visible dentro de la sección y con diagonal hacia adentro */
  transform: translate(-42%, -50%) rotate(90deg);
  transform-origin: center;
  top: 50%;
  left: 0;
  opacity: 0.22;
}

.timeline-wave-bg-right svg {
  /* Misma escala que la ola izquierda, pero invertida hacia el lado derecho */
  transform: translate(42%, -50%) rotate(-90deg);
  transform-origin: center;
  top: 50%;
  left: auto;
  right: 0;
  opacity: 0.22;
}

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

.timeline-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 24px 0;
}

.timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 160px;
  transform: translateX(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 1440' preserveAspectRatio='none'%3E%3Cpath d='M100 0 C40 90 40 180 100 270 S160 450 100 630 S40 810 100 990 S160 1260 100 1440' fill='none' stroke='%23ffd6b3' stroke-width='26' stroke-linecap='round'/%3E%3Cpath d='M100 0 C40 90 40 180 100 270 S160 450 100 630 S40 810 100 990 S160 1260 100 1440' fill='none' stroke='%23ff8c42' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  opacity: 0.95;
}

.timeline-item-modern {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 56px;
  position: relative;
  isolation: isolate;
}

.timeline-side {
  position: relative;
  grid-row: 1;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 250, 244, 0.94);
  border: 1px solid rgba(255, 140, 66, 0.22);
  box-shadow: 0 18px 44px rgba(255, 127, 42, 0.12);
}

.timeline-side::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #ffb84d 0%, #ff7f2a 100%);
}

.timeline-item-modern:nth-child(odd) .timeline-media-card {
  grid-column: 1;
}

.timeline-item-modern:nth-child(odd) .timeline-content-card {
  grid-column: 3;
}

.timeline-item-modern:nth-child(odd) .timeline-media-card::after {
  right: -38px;
}

.timeline-item-modern:nth-child(odd) .timeline-content-card::after {
  left: -38px;
}

.timeline-item-modern:nth-child(even) .timeline-content-card {
  grid-column: 1;
  text-align: right;
}

.timeline-item-modern:nth-child(even) .timeline-media-card {
  grid-column: 3;
}

.timeline-item-modern:nth-child(even) .timeline-content-card::after {
  right: -38px;
}

.timeline-item-modern:nth-child(even) .timeline-media-card::after {
  left: -38px;
}

.timeline-marker {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  z-index: 2;
}

.timeline-dot {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #ffb84d 0%, #ff7f2a 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
  text-align: center;
  line-height: 1;
  box-shadow:
    0 0 0 10px rgba(255, 214, 179, 0.8),
    0 18px 30px rgba(255, 127, 42, 0.25);
}

.timeline-dot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.timeline-media-card {
  padding: 14px;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff0df 0%, #ffd7b5 100%);
  border: 1px dashed rgba(255, 127, 42, 0.32);
  flex-shrink: 0;
}

.timeline-content-card {
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-normal);
}

.timeline-content-card:hover,
.timeline-media-card:hover {
  box-shadow: 0 26px 52px rgba(255, 127, 42, 0.16);
}

/* .timeline-year se mueve al interior del .timeline-dot */

.timeline-content-card h3 {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-bottom: 12px;
}

.timeline-content-card p {
  color: #64748b;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .timeline-wrapper {
    max-width: 900px;
  }

  .timeline-wrapper::before {
    width: 132px;
  }

  .timeline-item-modern {
    grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .timeline-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .timeline-wrapper::before {
    left: 44px;
    transform: none;
    width: 52px;
  }

  .timeline-item-modern {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px 18px;
    min-height: auto;
    margin-bottom: 28px;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: auto;
    align-self: stretch;
    padding-top: 10px;
  }

  .timeline-dot {
    width: 60px;
    height: 60px;
    font-size: 0.72rem;
  }

  .timeline-side,
  .timeline-item-modern:nth-child(odd) .timeline-media-card,
  .timeline-item-modern:nth-child(even) .timeline-media-card,
  .timeline-item-modern:nth-child(odd) .timeline-content-card,
  .timeline-item-modern:nth-child(even) .timeline-content-card {
    grid-column: 2;
    text-align: left;
  }

  .timeline-item-modern:nth-child(odd) .timeline-media-card,
  .timeline-item-modern:nth-child(even) .timeline-content-card {
    grid-row: 1;
  }

  .timeline-item-modern:nth-child(odd) .timeline-content-card,
  .timeline-item-modern:nth-child(even) .timeline-media-card {
    grid-row: 2;
  }

  .timeline-side::after {
    display: none;
  }
}

/* ==========================================
   VALORES MODERNOS
   ========================================== */
.values-modern-section {
  padding: 60px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.values-modern-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    url("../../file.php?f=assets%2Fimg%2Ffondo_acerca_dee.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.values-modern-section .container-modern {
  position: relative;
  z-index: 1;
}

.values-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.value-card-modern {
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition-normal);
}

.value-card-modern:hover {
  transform: translateY(-8px);
}

.value-card-modern .value-icon,
.value-icon-modern {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-md);
  background: var(--gradient-1);
}

.value-card-modern h3 {
  font-size: 1.4rem;
  color: var(--primary-orange);
  margin-bottom: 16px;
}

.value-card-modern p {
  color: #64748b;
  line-height: 1.7;
}

/* ==========================================
   MISIÓN Y VISIÓN MODERN
   ========================================== */
.mision-vision-modern-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.mv-card-modern {
  /* background: rgba(255, 255, 255, 0.75); */
  /* border: 1px solid rgba(255, 140, 66, 0.15); */
   border-radius: var(--radius-lg); 
  padding: 48px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;/* 
  box-shadow: var(--shadow-sm); */
}

.mv-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.mv-card-modern:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mv-icon-modern {
  width: 80px;
  height: 80px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 24px;
}

.vision-modern .mv-icon-modern {
  background: var(--gradient-2);
}

.mv-card-modern h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 20px;
}

.mv-text-modern {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.8;
}

.values-section-modern {
  text-align: center;
  padding: 60px 0;
}

.values-section-modern .section-badge {
  margin-bottom: 16px;
}

.values-section-modern .section-title-modern {
  color: var(--dark-bg) !important;
  margin-bottom: 32px;
}

@supports not (background-clip: text) {
  .values-section-modern .text-gradient {
    color: #ff8c42 !important;
    background: none;
    -webkit-text-fill-color: currentColor !important;
  }
}

.values-section-modern .text-gradient {
  background: linear-gradient(135deg, #ff8c42 0%, #ff7f2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   SERVICE PAGES
   ========================================== */
.service-content-modern {
  max-width: 1100px;
  margin: 0 auto;
}

.service-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.service-icon-large {
  width: 120px;
  height: 120px;
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}

.service-description {
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .service-intro-responsive {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon badge"
      "title title"
      "text1 text1"
      "text2 text2";
    gap: 14px 18px;
    align-items: center;
  }

  .service-intro-responsive .service-intro-copy {
    display: contents;
  }

  .service-intro-responsive .service-icon-large {
    grid-area: icon;
    width: 88px;
    height: 88px;
    font-size: 2.5rem;
  }

  .service-intro-responsive .service-intro-badge {
    grid-area: badge;
    margin: 0;
    align-self: center;
    justify-self: start;
  }

  .service-intro-responsive .service-intro-title {
    grid-area: title;
    margin: 0;
  }

  .service-intro-responsive .service-intro-text-1 {
    grid-area: text1;
    margin-bottom: 16px;
  }

  .service-intro-responsive .service-intro-text-2 {
    grid-area: text2;
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .service-intro-responsive {
    gap: 12px 14px;
  }

  .service-intro-responsive .service-icon-large {
    width: 76px;
    height: 76px;
    font-size: 2.1rem;
  }

  .service-intro-responsive .service-intro-title {
    line-height: 1.15;
  }
}

.service-features {
  margin-bottom: 60px;
}

.service-features h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 32px;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat( 2, minmax(0, 1fr) );
  gap: 28px;
}

.feature-card-modern {
  background: rgba(255, 153, 51, 0.05);
  border: 1px solid rgba(255, 153, 51, 0.15);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card-modern:hover {
  background: rgba(255, 153, 51, 0.08);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card-visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  align-self: stretch;
  position: relative;
  min-height: 340px;
  background: linear-gradient(160deg, rgba(255, 153, 51, 0.12), rgba(30, 64, 175, 0.08));
  border: 1px solid rgba(30, 64, 175, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.feature-card-visual.card-recovery {
  box-shadow: 0 18px 40px rgba(234, 88, 12, 0.18);
}

.feature-card-visual.card-reception {
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
}

.feature-card-visual.card-compost {
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.16);
}

.feature-card-visual.card-disposal {
  box-shadow: 0 18px 40px rgba(220, 38, 38, 0.16);
}

.feature-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.18), transparent 42%, rgba(30, 64, 175, 0.12));
  pointer-events: none;
  z-index: 1;
}

.feature-card-visual .feature-image {
  height: 100%;
  min-height: 100%;
  flex: 1;
  margin-bottom: 0;
  border: 0;
  border-radius: inherit;
}

.feature-card-visual .feature-image img {
  width: 100%;
  height: 100%;
  object-position: 78% center;
  transform: scale(1.18);
  transform-origin: center;
  transition: transform 0.5s ease;
}

.feature-card-visual:hover .feature-image img {
  transform: scale(1.24);
}

.feature-card-visual-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.feature-card-visual-badge.badge-recovery {
  background: rgba(255, 247, 237, 0.96);
  color: #c2410c;
}

.feature-card-visual-badge.badge-recovery i {
  color: #ea580c;
}

.feature-card-visual-badge.badge-reception {
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
}

.feature-card-visual-badge.badge-reception i {
  color: #2563eb;
}

.feature-card-visual-badge.badge-compost {
  background: rgba(240, 253, 244, 0.96);
  color: #15803d;
}

.feature-card-visual-badge.badge-compost i {
  color: #16a34a;
}

.feature-card-visual-badge.badge-disposal {
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.feature-card-visual-badge.badge-disposal i {
  color: #dc2626;
}

.feature-card-visual-badge i {
  color: var(--primary-orange);
}

.feature-card-visual-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 56px 24px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
  color: var(--white);
}

.feature-card-visual-caption.overlay-recovery {
  background: linear-gradient(180deg, transparent 0%, rgba(194, 65, 12, 0.94) 100%);
}

.feature-card-visual-caption.overlay-reception {
  background: linear-gradient(180deg, transparent 0%, rgba(29, 78, 216, 0.94) 100%);
}

.feature-card-visual-caption.overlay-compost {
  background: linear-gradient(180deg, transparent 0%, rgba(21, 128, 61, 0.94) 100%);
}

.feature-card-visual-caption.overlay-disposal {
  background: linear-gradient(180deg, transparent 0%, rgba(185, 28, 28, 0.94) 100%);
}

.feature-card-visual .feature-card-visual-caption h4 {
  margin-bottom: 0;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.feature-card-visual-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .feature-card-visual {
    min-height: 280px;
  }
}

.feature-image {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: #f8fafc;
  border: 1px solid rgba(30, 64, 175, 0.12);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
  color: #ffffff !important;
  font-size: 2rem;
}

.feature-card-modern h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(30, 64, 175, 0.12);
}

.feature-card-modern p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.8;
  flex: 1;
}

.service-benefits {
  margin-bottom: 60px;
}

.service-benefits h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 32px;
}

.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #334155;
  font-size: 1rem;
  padding: 16px;
  background: rgba(255, 153, 51, 0.04);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-orange);
}

.benefits-list li i {
  font-size: 1.3rem;
  color: var(--primary-orange);
  flex-shrink: 0;
}

.service-cta {
  background: var(--gradient-1);
  border-radius: var(--radius-lg);
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.service-cta-content {
  position: relative;
  z-index: 2;
}

.service-cta .shape1,
.service-cta .shape2,
.service-cta .shape3,
.service-cta .shape4,
.service-cta .shape5,
.service-cta .shape6,
.service-cta .shape7,
.service-cta .shape8 {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.service-cta .shape1 {
  width: 380px;
  height: 300px;
  background: rgba(0, 243, 11, 0.18);
  top: -26%;
  left: -12%;
  border-radius: 60% 40% 60% 40%;
}

.service-cta .shape2 {
  width: 340px;
  height: 260px;
  background: rgba(35, 118, 123, 0.2);
  bottom: -34%;
  left: 10%;
  border-radius: 50% 60% 40% 60%;
}

.service-cta .shape3 {
  width: 320px;
  height: 340px;
  background: rgba(0, 16, 237, 0.2);
  right: -12%;
  top: 34%;
  border-radius: 60% 40% 50% 70%;
}

.service-cta .shape4 {
  width: 260px;
  height: 220px;
  background: rgba(253, 253, 246, 0.4);
  top: 8%;
  left: 42%;
  border-radius: 70% 40% 60% 50%;
}

.service-cta .shape5 {
  width: 200px;
  height: 170px;
  background: rgba(249, 16, 9, 0.12);
  top: -10%;
  right: 18%;
  border-radius: 45% 65% 40% 60%;
}

.service-cta .shape6 {
  width: 180px;
  height: 140px;
  background: rgba(0, 0, 0, 0.08);
  bottom: 6%;
  right: 6%;
  border-radius: 60% 40% 65% 35%;
}

.service-cta .shape7 {
  width: 150px;
  height: 130px;
  background: rgba(246, 158, 30, 0.25);
  top: 44%;
  left: 4%;
  border-radius: 65% 35% 50% 60%;
}

.service-cta .shape8 {
  width: 120px;
  height: 110px;
  background: rgba(255, 255, 255, 0.22);
  bottom: 8%;
  left: 30%;
  border-radius: 40% 60% 55% 45%;
}

.service-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 16px;
}

.service-cta p {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.service-cta .btn-primary-modern {
  background: linear-gradient(135deg, #ff8c42 0%, #ff7f2a 100%);
  color: var(--white);
}
.eco-loader__banner {
  position: absolute;
  width: 180px;
  pointer-events: none;
  transform-origin: center;
  z-index: 1;
}

.eco-loader__banner svg {
  width: 100%;
  height: auto;
}
.eco-loader__truck {
  z-index: 3; /* ENCIMA */
}

.commitment-gallery-section {
  margin: 70px 0;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 153, 51, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 245, 230, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(255, 153, 51, 0.15);
  box-shadow: var(--shadow-lg);
}

.commitment-gallery-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 18px;
}

.commitment-gallery-header p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.commitment-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.commitment-gallery-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 26px;
  background: #f8fafc;
  box-shadow: var(--shadow-md);
}

.commitment-gallery-card.tall {
  min-height: 100%;
}

.commitment-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commitment-gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.86) 100%);
  color: var(--white);
}

.commitment-gallery-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.gallery-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(255, 220, 160, 0.95);
  font-weight: 500;
}

/* ── Mascota clasificación de residuos ── */
.clasificacion-wrapper {
  position: relative;
  padding-top: 100px;
}

.clasificacion-mascota {
  position: absolute;
  top: 80%;
  right: 10%;
  z-index: 2;
}

.clasificacion-mascota img {
  height: 330px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

@media (max-width: 960px) {
  .clasificacion-mascota {
    right: 20px;
  }
  .clasificacion-mascota img {
    height: 100px;
  }
}

@media (max-width: 640px) {
  .clasificacion-wrapper {
    position: relative;
    padding-top: 0;
  }
  .clasificacion-mascota {
    position: absolute;
    top: 91%;
    right: 2%;
    display: flex;
    justify-content: center;
    margin: 16px 0 -60px;
    z-index: 2;
  }
  .clasificacion-mascota img {
    height: 150px;
  }
}

/* ── Divisores de bloque Social / Ambiental ── */
.service-section-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  margin: 52px 0 36px;
  border-left: 5px solid var(--primary-orange);
  background: rgba(255, 153, 51, 0.06);
}

.service-section-header.ambiental {
  border-left-color: #15803d;
  background: rgba(21, 128, 61, 0.06);
}

.service-section-header-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 153, 51, 0.12);
  color: var(--primary-orange);
}

.service-section-header.ambiental .service-section-header-icon {
  background: rgba(21, 128, 61, 0.12);
  color: #15803d;
}

.service-section-header-text .section-badge {
  display: inline-block;
  margin-bottom: 8px;
}

.service-section-header-text h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.2;
}

.service-section-header-text p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

@media (max-width: 640px) {
  .service-section-header {
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px;
  }
}

@media (max-width: 960px) {
  .commitment-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid-modern{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .commitment-gallery-section {
    padding: 22px;
    border-radius: 22px;
  }

  .commitment-gallery-grid {
    grid-template-columns: 1fr;
  }

  .commitment-gallery-card {
    min-height: 220px;
    border-radius: 20px;
  }
}

@media (max-width: 768px) {
  .service-cta .shape1 {
    width: 250px;
    height: 200px;
    top: -24%;
    left: -20%;
  }

  .service-cta .shape2 {
    width: 220px;
    height: 170px;
    bottom: -24%;
    left: 0;
  }

  .service-cta .shape3 {
    width: 220px;
    height: 240px;
    right: -24%;
    top: 42%;
  }

  .service-cta .shape4 {
    width: 180px;
    height: 150px;
    top: 10%;
    left: 36%;
  }

  .service-cta .shape5 {
    width: 140px;
    height: 120px;
    top: -6%;
    right: 12%;
  }

  .service-cta .shape6 {
    width: 120px;
    height: 100px;
    bottom: 4%;
    right: 3%;
  }

  .service-cta .shape7 {
    width: 100px;
    height: 88px;
    top: 54%;
    left: 3%;
  }

  .service-cta .shape8 {
    width: 90px;
    height: 80px;
    bottom: 9%;
    left: 41%;
  }
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-modern-section {
  padding: 60px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.cta-modern-section::before {
  display: none;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark, #1e293b);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary, #64748b);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   CONTACT PAGE MODERN
   ========================================== */
.contact-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info-modern {
  position: sticky;
  top: 120px;
}

.contact-items-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item-modern {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 20px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: var(--transition-normal);
}

.contact-item-modern:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(8px);
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item-modern h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.contact-item-modern p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-modern h4 {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ==========================================
   TRANSPARENCIA
   ========================================== */
.transparency-stats-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card-modern {
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition-normal);
}

.stat-card-modern:hover {
  transform: translateY(-4px);
}

.stat-icon-modern {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.stat-icon-modern.blue {
  background: var(--gradient-1);
}

.stat-icon-modern.green {
  background: var(--gradient-3);
}

.stat-icon-modern.purple {
  background: var(--gradient-2);
}

.stat-icon-modern.orange {
  background: var(--gradient-4);
}

.stat-content-modern h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-orange);
  margin-bottom: 8px;
}

.stat-content-modern p {
  color: #64748b;
  font-size: 0.95rem;
}

.transparency-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.intro-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
}

.transparency-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  color: var(--dark-bg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-button:hover {
  background: rgba(255, 153, 51, 0.1);
}

.tab-button.active {
  background: var(--gradient-1);
  color: var(--white);
  border-color: var(--primary-orange);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.transparency-card-modern {
  padding: 32px 20px;
  margin-bottom: 24px;
}

.card-header-modern {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.card-icon-modern {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  flex-shrink: 0;
}

.card-header-modern h3 {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin: 0;
}

.documents-list-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-item-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.doc-item-modern:hover {
  background: rgba(255, 153, 51, 0.1);
  transform: translateX(4px);
}

.doc-icon-modern {
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.doc-info-modern {
  flex: 1;
  margin-left: 16px;
}

.doc-info-modern h4 {
  font-size: 1rem;
  color: var(--dark-bg);
  margin-bottom: 4px;
}

.doc-info-modern p {
  font-size: 0.85rem;
  color: #64748b;
}

.doc-action-modern {
  padding: 8px 20px;
  background: var(--gradient-1);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.doc-action-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.external-links {
  margin-top: 60px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.external-link-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 20px;
  transition: var(--transition-normal);
}

.external-link-card:hover {
  transform: translateY(-4px);
}

/* ==========================================
   PQR & CERTIFICADOS & OTROS COMPONENTES
   ========================================== */
.pqr-info-section,
.certificates-section,
.faq-section {
  padding: 40px 0;
  background: var(--white);
}

.pqr-types-grid,
.certificates-grid,
.faq-accordion {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

.pqr-type-card,
.certificate-type-card,
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pqr-type-card:hover,
.certificate-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.certificate-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px;
  background: rgba(255, 153, 51, 0.05);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--dark-bg);
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: rgba(255, 153, 51, 0.1);
}

.faq-answer {
  padding: 16px;
  color: #64748b;
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================
   NOTICIAS
   ========================================== */
.news-search-bar {
  margin-bottom: 40px;
}

.search-input-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input-wrapper input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.filter-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.filter-tag {
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--gradient-1);
  color: var(--white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin: 40px 0;
}

.news-card {
  overflow: hidden;
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.news-card:hover .news-card-image img {
  transform: scale(1.1);
}

.news-category-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
}

.news-category-badge.ambiental {
  background: #10b981;
}

.news-category-badge.servicios {
  background: #3b82f6;
}

.news-category-badge.comunidad {
  background: #f59e0b;
}

.news-category-badge.institucional {
  background: #8b5cf6;
}

.news-card-content {
  padding: 24px;
}

.news-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 16px;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */
.paginacion {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.page-btn {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  color: var(--dark-bg);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  background: var(--gradient-1);
  color: var(--white);
  border-color: var(--primary-orange);
}

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-widget {
  background: var(--white);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links li a {
  display: block;
  padding: 12px;
  color: var(--dark-bg);
  transition: var(--transition-fast);
}

.sidebar-links li a:hover {
  background: rgba(255, 153, 51, 0.1);
  color: var(--primary-orange);
  padding-left: 20px;
}

/* ==========================================
   RESPONSIVE - CARRUSEL
   ========================================== */
@media (max-width: 992px) {
  .carousel-container {
    height: 900px;
    perspective: 1200px;
    padding: 0 0 60px 0;
  }

  .services-grid-modern.carousel-mode {
    height: 780px;
  }

  .services-grid-modern.carousel-mode .service-card-modern.active {
    width: 340px;
    height: 650px;
    margin: -325px 0 0 -170px;
  }

  .services-grid-modern.carousel-mode .service-card-modern.left,
  .services-grid-modern.carousel-mode .service-card-modern.right {
    width: 250px;
    height: 520px;
    margin: -260px 0 0 -125px;
    transform: translateX(-360px) translateY(30px) scale(0.85)
      translateZ(-150px);
  }

  .services-grid-modern.carousel-mode .service-card-modern.right {
    transform: translateX(360px) translateY(30px) scale(0.85) translateZ(-150px);
  }

  .services-grid-modern.carousel-mode .service-card-modern.top {
    width: 230px;
    height: 500px;
    margin: -250px 0 0 -115px;
    transform: translateX(0) translateY(-180px) scale(0.8) translateZ(-200px);
  }
}

@media (max-width: 1280px) {
  .nav-links-modern {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    flex-direction: column;
    gap: 0;
  }

  .nav-links-modern.active {
    display: flex;
  }

  .nav-links-modern > li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav-links-modern > li:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 14px 12px;
    width: 100%;
    justify-content: space-between;
  }

  .dropdown:hover .submenu-modern {
    opacity: 1;
    visibility: visible;
  }

  .dropdown .submenu-modern {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
    display: none;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    box-shadow: none;
    transition: max-height 0.28s ease, padding 0.28s ease;
  }

  .dropdown .submenu-modern.open {
    display: block;
    max-height: 1200px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 1px;
    box-shadow: var(--shadow-lg);
    opacity: 1 !important;
    visibility: visible !important;
  }

  .dropdown:hover .nav-link i.fa-angle-down {
    transform: none;
  }

  .dropdown.active .nav-link i.fa-angle-down {
    transform: rotate(180deg);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .footer-modern {
    min-height: 210px;
    background: inherit;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 18px 16px 10px;
    gap: 12px;
  }

  .footer-logo-center {
    order: 1;
  }

  .footer-right-col {
    order: 2;
    align-items: center;
    width: 100%;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }

  .footer-vigilados {
    justify-content: center;
    width: 100%;
  }

  .footer-super-img {
    height: clamp(40px, 12vw, 58px);
  }

  .footer-bottom > p {
    order: 3;
    text-align: center;
    justify-self: center;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-logo-image {
    height: clamp(82px, 24vw, 120px);
    max-width: min(260px, 70vw);
  }

  .footer-modern::before {
    background-size: auto 165%;
    background-position: center bottom;
  }

  .footer-modern::after {
    background-size: clamp(680px, 170vw, 1100px) auto;
    background-position: center calc(100% - 80px);
    opacity: 0.95;
  }

  .carousel-container {
    height: 900px;
    perspective: 1000px;
    padding: 0 0 60px 0;
  }

  .services-grid-modern.carousel-mode {
    height: 780px;
  }

  .services-grid-modern.carousel-mode .service-card-modern.active {
    width: 300px;
    height: 640px;
    margin: -320px 0 0 -150px;
  }

  .services-grid-modern.carousel-mode .service-card-modern.left,
  .services-grid-modern.carousel-mode .service-card-modern.right {
    width: 220px;
    height: 500px;
    margin: -250px 0 0 -110px;
    transform: translateX(-280px) translateY(40px) scale(0.82)
      translateZ(-180px);
  }

  .services-grid-modern.carousel-mode .service-card-modern.right {
    transform: translateX(280px) translateY(40px) scale(0.82) translateZ(-180px);
  }

  .services-grid-modern.carousel-mode .service-card-modern.top {
    width: 200px;
    height: 480px;
    margin: -240px 0 0 -100px;
    transform: translateX(0) translateY(-160px) scale(0.75) translateZ(-220px);
    opacity: 0.5;
  }

  .carousel-controls {
    gap: 15px;
    margin-top: 30px;
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }

  .innovation-grid,
  .contact-grid,
  .contact-modern-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .innovation-visual {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row-modern {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --truck-h: 240px;
    --road-h: 120px;
  }

  .splash-title {
    font-size: 70px;
    letter-spacing: 4px;
    top: 10%;
  }

  .truckWrap {
    bottom: calc(var(--road-h) - 60px);
  }

  .hero-modern {
    padding: 100px 6px 50px;
  }

  .hero-title-modern {
    font-size: clamp(1.3rem, 6vw, 2rem) !important;
  }

  .hero-subtitle {
    font-size: clamp(0.7rem, 3vw, 0.9rem) !important;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 8px;
  }

  .hero-stats {
    gap: 6px;
  }

  .stat-mini {
    min-width: 60px;
  }
}

/* ==========================================
   ACCESIBILIDAD
   ========================================== */
.carousel-btn:focus,
.carousel-dot:focus,
button:focus,
a:focus {
  outline: 3px solid #ff9933;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .truckWrap,
  .truck,
  .road::before,
  .clouds {
    animation: none !important;
  }
}

/* Animación suave al cargar */
.carousel-wrapper {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   BOTONES GENERALES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn i {
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.3);
}

.btn-primary i {
  color: white !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 51, 0.4);
}

/* ==========================================
   PQR - PETICIONES, QUEJAS Y RECLAMOS
   ========================================== */
.pqr-info-section {
  margin-bottom: 40px;
}

.info-alert {
  background: linear-gradient(135deg, #fff5e6 0%, #ffffff 100%);
  border-left: 4px solid var(--primary-orange);
  padding: 25px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.info-alert i {
  font-size: 28px;
  color: var(--primary-orange);
  flex-shrink: 0;
}

.info-alert h3 {
  color: var(--primary-dark-orange);
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-alert p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.pqr-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.pqr-type-card {
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pqr-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.pqr-type-card:hover {
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

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

.pqr-type-card i {
  font-size: 48px;
  color: var(--primary-orange);
  margin-bottom: 20px;
  display: block;
}

.pqr-type-card h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

.pqr-type-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.response-time {
  display: inline-block;
  background: var(--light-bg);
  color: var(--primary-dark-orange);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.pqr-form-section {
  padding: 40px 20px;
  margin: 40px 0;
}

.pqr-form-section h2 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.pqr-form-section > p {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
}

.pqr-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group small {
  color: var(--text-light);
  font-size: 0.85rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-orange);
}

.checkbox-group label {
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

.form-acciones {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.pqr-consult-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: var(--radius-md);
  padding: 40px;
  margin: 40px 0;
  border: 2px solid rgba(255, 153, 51, 0.1);
}

.pqr-consult-section h2 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.pqr-consult-section > p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

.pqr-faq-section {
  background: linear-gradient(135deg, #fffaf5 0%, #ffffff 100%);
  border: 2px solid rgba(255, 153, 51, 0.1);
  border-radius: var(--radius-md);
  padding: 40px;
  margin: 40px 0;
}

.consult-form {
  max-width: 600px;
}

.consult-input-group {
  display: flex;
  gap: 15px;
}

.consult-input-group input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.consult-input-group input:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.pqr-channels {
  margin: 50px 0;
}

.pqr-channels h2 {
  color: var(--text-dark);
  margin-bottom: 30px;
  font-size: 1.8rem;
  text-align: center;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.channel-card {
  background: white;
  border: 2px solid rgba(255, 153, 51, 0.1);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: var(--transition-normal);
}

.channel-card:hover {
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.channel-card i {
  font-size: 42px;
  color: var(--primary-orange);
  margin-bottom: 20px;
  display: block;
}

.channel-card h4 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.channel-card p {
  color: var(--text-light);
  margin: 8px 0;
  font-weight: 500;
}

.channel-card small {
  color: var(--text-light);
  font-size: 0.85rem;
  display: block;
  margin-top: 15px;
  line-height: 1.6;
}

/* ==========================================
   PÁGINAS DE CONTENIDO - LAYOUT
   ========================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  align-items: start;
}

.single-column-layout {
  max-width: 100%;
  margin: 0 auto;
}

.main-content {
  padding: 40px 20px;
}

.content-header {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 3px solid rgba(255, 153, 51, 0.1);
}

.content-header h1 {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.content-header h1 i {
  color: var(--primary-orange);
  font-size: 1.8rem;
}

.content-header .subtitle,
.subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.page-header {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 3px solid rgba(255, 153, 51, 0.1);
}

.page-header h1 {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.page-header .subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.content-section {
  padding: 40px 0;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  padding: 30px 20px;
  transition: var(--transition-normal);
}

.sidebar-widget:hover {
  transform: translateY(-4px);
}

.sidebar-widget h3 {
  color: var(--text-dark);
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(255, 153, 51, 0.2);
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

.sidebar-links a {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-weight: 500;
}

.sidebar-links a:hover {
  background: var(--light-bg);
  color: var(--primary-orange);
  padding-left: 18px;
}

.sidebar-links a i {
  color: var(--primary-orange);
  font-size: 14px;
}

.cta-widget {
  background: var(--gradient-main);
  color: white;
  text-align: center;
}

.cta-widget h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-secondary {
  background: white;
  color: var(--primary-orange);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 25px;
  }
  
  .content-header h1 {
    font-size: 1.8rem;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
}

/* ==========================================
   FAQ - PREGUNTAS FRECUENTES
   ========================================== */
.faq-search {
  margin: 30px 0;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 20px;
}

.search-box input {
  width: 100%;
  padding: 16px 20px 16px 55px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.1);
}

.faq-categories {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0;
}

.faq-category-btn {
  padding: 12px 24px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-category-btn:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.faq-category-btn.active {
  background: var(--gradient-main);
  border-color: var(--primary-orange);
  color: white;
}

.faq-category-btn i {
  font-size: 18px;
}

.faq-section {
  margin: 50px 0;
}

.faq-section h2 {
  color: var(--text-dark);
  margin-bottom: 30px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.faq-section h2 i {
  color: var(--primary-orange);
  font-size: 1.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  overflow: hidden;
  transition: var(--transition-normal);
  margin-bottom: 15px;
}

.faq-item:hover {
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 20px 25px;
  background: white;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-orange);
}

.faq-question i {
  font-size: 20px;
  color: var(--primary-orange);
  transition: var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer > * {
  padding: 0 25px 25px 25px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

.faq-answer ul {
  list-style: none;
  padding-left: 0;
}

.faq-answer ul li {
  color: var(--text-light);
  line-height: 1.8;
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}

.faq-answer ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
}

.faq-answer ul li strong {
  color: var(--text-dark);
}

.faq-answer a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.faq-answer a:hover {
  color: var(--primary-dark-orange);
  text-decoration: underline;
}

.info-box {
  background: linear-gradient(135deg, #fff5e6 0%, #ffffff 100%);
  border: 2px solid rgba(255, 153, 51, 0.2);
  border-radius: var(--radius-md);
  padding: 35px;
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin: 50px 0;
}

.info-box i {
  font-size: 42px;
  color: var(--primary-orange);
  flex-shrink: 0;
}

.info-box h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.info-box p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-box {
  background: var(--gradient-main);
  border-color: var(--primary-orange);
}

.cta-box i {
  color: white;
}

.cta-box h3,
.cta-box p {
  color: white;
}

.cta-box p {
  margin-bottom: 20px;
}

/* ==========================================
   EMPRESAS ALIADAS SECTION - NUEVO CARRUSEL CSS
   ========================================== */
.partners-section {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff9933' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.partners-section .section-badge.badge-partners {
  background: linear-gradient(135deg, #ff9933 0%, #ff7f2a 100%);
  color: white;
}

.section-header-center {
  text-align: center;
  margin-bottom: 80px;
}

.section-header-center .section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Carrusel CSS puro para empresas aliadas */
.partners-carousel {
  --slides: 5;       /* Cantidad total de slides */
  --h: 400px;        /* Altura fija */
  
  width: 100%;
  height: var(--h);
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin-top: 20px;
}

.partners-carousel .carousel-inner {
  display: flex;
  height: 100%;
  width: calc(var(--slides) * 100%);
  animation: partners-slide 25s infinite ease-in-out;
  will-change: transform;
}

.partners-carousel .carousel-item {
  position: relative;
  flex: 0 0 calc(100% / var(--slides));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.partners-carousel .carousel-caption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 500px;
  padding: 40px;
  gap: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  color: var(--text-dark);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.partners-carousel .partner-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 10px 30px rgba(255, 153, 51, 0.3);
  margin-bottom: 10px;
}

.partners-carousel .carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.2;
}

.partners-carousel .carousel-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

.partners-carousel .partner-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.partners-carousel .partner-tags .tag {
  background: var(--gradient-main);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.25);
}

.partners-carousel .carousel-button {
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.partners-carousel .carousel-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 153, 51, 0.4);
}

/* Animación del carrusel */
@keyframes partners-slide {
  0%, 16% { transform: translateX(0); }
  20%, 36% { transform: translateX(-20%); }
  40%, 56% { transform: translateX(-40%); }
  60%, 76% { transform: translateX(-60%); }
  80%, 96% { transform: translateX(-80%); }
  100% { transform: translateX(0); }
}

/* Responsive para Empresas Aliadas */
@media (max-width: 768px) {
  .partners-section {
    padding: 80px 0;
  }
  
  .section-header-center {
    margin-bottom: 60px;
  }
  
  .partners-carousel {
    --h: 350px;
  }
  
  .partners-carousel .carousel-caption {
    width: 90%;
    padding: 30px 20px;
    gap: 15px;
  }
  
  .partners-carousel .partner-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .partners-carousel .carousel-title {
    font-size: 1.4rem;
  }
  
  .partners-carousel .carousel-text {
    font-size: 0.9rem;
  }
  
  .partners-carousel .partner-tags .tag {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  
  .partners-carousel .carousel-button {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .pqr-types-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-acciones {
    flex-direction: column;
  }
  
  .form-acciones .btn {
    width: 100%;
  }
  
  .consult-input-group {
    flex-direction: column;
  }
  
  .consult-input-group .btn {
    width: 100%;
  }
  
  .channels-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-categories {
    justify-content: flex-start;
  }
  
  .faq-category-btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }
  
  .info-box {
    flex-direction: column;
  }
  
  .contact-buttons {
    flex-direction: column;
  }
  
  .contact-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   AJUSTES ANTI-SUPERPOSICION CMS
   ========================================== */
[data-cms-section] :is(h1, h2, h3, h4, h5, h6, p, span, strong, li, a) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

[data-cms-section] img {
  max-width: 100%;
  height: auto;
}

.services-grid-modern.carousel-mode .service-card-modern {
  display: none !important;
}

.carousel-container {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 32px !important;
}

.carousel-wrapper {
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
}

.services-grid-modern.carousel-mode {
  height: auto !important;
  min-height: 0 !important;
}

.services-grid-modern.carousel-mode .service-card-modern.active {
  display: flex !important;
  flex-direction: column;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  margin: 0 auto !important;
  width: min(100%, 560px) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 24px 22px 20px !important;
  overflow: hidden;
}

.services-grid-modern.carousel-mode .service-card-modern p,
.services-grid-modern.carousel-mode .service-card-modern li,
.feature-card-modern p,
.contact-method p,
.tech-feature p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services-grid-modern.carousel-mode .service-card-modern.left .feature-list,
.services-grid-modern.carousel-mode .service-card-modern.right .feature-list,
.services-grid-modern.carousel-mode .service-card-modern.top .feature-list,
.services-grid-modern.carousel-mode .service-card-modern.left .card-link,
.services-grid-modern.carousel-mode .service-card-modern.right .card-link,
.services-grid-modern.carousel-mode .service-card-modern.top .card-link {
  display: none !important;
}

.services-grid-modern.carousel-mode .service-card-modern.left,
.services-grid-modern.carousel-mode .service-card-modern.right,
.services-grid-modern.carousel-mode .service-card-modern.top {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 992px) {
  .services-grid-modern.carousel-mode .service-card-modern.active {
    width: min(100%, 560px) !important;
    padding: 24px 22px 20px !important;
  }
}

@media (max-width: 768px) {
  .services-grid-modern.carousel-mode .service-card-modern.active {
    width: min(100%, 460px) !important;
    padding: 20px 18px 16px !important;
  }

  .services-grid-modern.carousel-mode .service-card-modern.active h3 {
    line-height: 1.25 !important;
  }

  .services-grid-modern.carousel-mode .service-card-modern.active p {
    line-height: 1.6 !important;
  }

  .tech-feature,
  .contact-method {
    align-items: flex-start;
    gap: 14px;
  }
}

/* Servicios: apilar flotantes en esquina para no tapar imagenes */
body[data-page-slug^="servicios-"] .back-to-top-modern {
  right: 30px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  z-index: 996;
}

@media (max-width: 1024px) {
  body[data-page-slug^="servicios-"] .back-to-top-modern {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-height: 720px) {
  body[data-page-slug="inicio"] .back-to-top-modern {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
}

/* ==========================================
   SERVICIOS V3 - INDEX
   ========================================== */
.services-grid-modern.services-grid-v3 {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  counter-reset: serviceCard;
}

.services-grid-modern.services-grid-v3 .service-card-modern {
  grid-column: span 4;
  background: linear-gradient(165deg, #ffffff 0%, #fff6ea 100%);
  border: 1px solid rgba(255, 153, 51, 0.2);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.08);
  position: relative;
  padding: 30px 28px 24px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
  counter-increment: serviceCard;
}

.services-grid-modern.services-grid-v3 .service-card-modern::before {
  content: "0" counter(serviceCard);
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(30, 64, 175, 0.58);
  background: rgba(30, 64, 175, 0.08);
  border: 1px solid rgba(30, 64, 175, 0.16);
  padding: 5px 9px;
  border-radius: 999px;
}

.services-grid-modern.services-grid-v3 .service-card-modern:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 46px rgba(33, 37, 41, 0.13);
  border-color: rgba(255, 153, 51, 0.4);
}

.services-grid-modern.services-grid-v3 .service-card-modern:nth-child(1),
.services-grid-modern.services-grid-v3 .service-card-modern:nth-child(2) {
  grid-column: span 6;
}

.services-grid-modern.services-grid-v3 .service-icon-modern {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 18px;
}

.services-grid-modern.services-grid-v3 .service-card-modern h3 {
  font-size: 1.46rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.services-grid-modern.services-grid-v3 .service-card-modern p {
  font-size: 1rem;
  line-height: 1.62;
  margin-bottom: 16px;
}

.services-grid-modern.services-grid-v3 .feature-list {
  margin: 0 0 14px;
}

.services-grid-modern.services-grid-v3 .feature-list li {
  font-size: 0.94rem;
  margin-bottom: 8px;
}

.services-grid-modern.services-grid-v3 .card-link {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .services-grid-modern.services-grid-v3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .services-grid-modern.services-grid-v3 .service-card-modern,
  .services-grid-modern.services-grid-v3 .service-card-modern:nth-child(1),
  .services-grid-modern.services-grid-v3 .service-card-modern:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 700px) {
  .services-grid-modern.services-grid-v3 {
    grid-template-columns: 1fr;
  }

  .services-grid-modern.services-grid-v3 .service-card-modern {
    padding: 24px 20px 18px;
    border-radius: 20px;
  }

  .services-grid-modern.services-grid-v3 .service-card-modern h3 {
    font-size: 1.24rem;
  }
}


