﻿/* FUENTE LOCAL: Lexend Deca (variable font) */
@font-face {
  font-family: 'Lexend Deca';
  src: url('../assets/fonts/Lexend_Deca/LexendDeca-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

/* RESET Y CONFIGURACIÓN BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*Variables globales*/
:root {
  --dark-color: black;
  --light-color: #f4f4f4;
  --transition: all 0.3s ease;
  --border-radius-sm: 0.3125rem;
  --border-radius-md: 0.625rem;
  --border-radius-lg: 0.9375rem;
  --shadow-md: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.08);
  --color-primary: #1098bb;
  --color-secondary: #3598b0;
  --color-text: black;
  --color-agua: #1098bb;
  --color-alumbrado: #c6602f;
  --color-edificios: #4caf50;
  --color-residuos: #5f3e1b;
  --color-pavimentos: #b90e1a;
  --dashboard-width: 80%;
}

html {
  scroll-behavior: smooth;
}

/* Clase para contenido accesible solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

/*Fuente y texto predeterminado*/
body {
  font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  overflow-x: hidden;
}

/*Contenedor estándar*/
.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* VIDEO HERO */
.video-background {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  height: 100vh;
}

.video-background video,
.video-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mostrar solo video desktop por defecto */
.video-background .video-mobile {
  display: none;
}

.video-background .video-desktop {
  display: block;
}

/* HEADER */
.header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  backdrop-filter: blur(0.625rem);
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  isolation: isolate;
}

.header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.125rem 1.25rem rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.logo:hover,
.menu-toggle:hover {
  transform: scale(1.02);
}

.logo img {
  height: 4.375rem;
  transition: var(--transition);
}

.header.scrolled .logo img {
  height: 3.4375rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #205f90;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  display: inline-block;
}

.nav-link:hover {
  transform: scale(1.02);
}

/* Dropdown Menu Para Tablets y Móviles*/
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-toggle::after,
.footer-dropdown-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(0.625rem);
  min-width: 12.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.625rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1001;
  margin-top: 0.5rem;
}

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

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #205f90;
  white-space: nowrap;
  border-radius: 0;
}

.nav-dropdown-menu .nav-link:hover {
  background: rgba(16, 152, 187, 0.1);
}

.nav-dropdown-menu li:first-child .nav-link {
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.nav-dropdown-menu li:last-child .nav-link {
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
}

.nav-link-login {
  background: var(--color-primary);
  color: var(--light-color);
  padding: 1.32rem 1.5rem 0.5rem;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  margin-top: -0.9rem;
}

.nav-link-login:hover {
  background: #0052a3;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 102, 204, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 1.875rem;
  height: 1.5625rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: var(--transition);
}

.hamburger {
  width: 100%;
  height: 0.1875rem;
  background: #205f90;
  border-radius: 0.125rem;
  transition: var(--transition);
}

.menu-toggle.active .hamburger:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active .hamburger:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 0;
  color: var(--light-color);
}

.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: 0.125rem solid var(--color-secondary);
  width: 2.5rem;
  height: 3.75rem;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUpCentered 1s ease-out 0.4s backwards;
}

.scroll-down:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) scale(1.1);
}

.scroll-arrow {
  position: absolute;
  top: 0.625rem;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 0.125rem solid var(--color-secondary);
  border-bottom: 0.125rem solid var(--color-secondary);
  transform: translateX(-50%) rotate(45deg);
  animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
  0% { top: 0.625rem; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 1.875rem; opacity: 0; }
}

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

@keyframes fadeInUpCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(1.875rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* SECCIONES */
.section,
.page-content {
  background: #ffffff;
}

.section {
  padding: 6.25rem 1.25rem;
  position: relative;
  z-index: 1;
}

.page-content {
  padding: 3.375rem 0 3.125rem;
}

.section h2,
.alumbrado-servicios-title,
.agua-servicios-title,
.edificios-servicios-title,
.pavimentos-servicios-title,
.residuos-servicios-title,
.municipios-title,
.tecnologias-title,
.demo-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
  overflow-wrap: break-word;
}

.page-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.section p,
.page-content p {
  font-size: 1.2rem;
  color: var(--color-text);
  text-align: justify;
  overflow-wrap: break-word;
}

.section-image {
  padding: 3.125rem 1.25rem;
  text-align: center;
  background: #ffffff;
  width: 100%;
  overflow: hidden;
}

.section-img,
.alumbrado-iconos-img,
.agua-iconos-img,
.edificios-iconos-img,
.pavimentos-iconos-img,
.residuos-iconos-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   PÁGINA FAQs
   ======================================== */

/* Sección 1: Hero */
.faqs-page{
  padding: 0 0 3.125rem;
}

.faqs-hero {
  padding: 5rem 0 3.75rem;
  background: #ffffff;
}

.faqs-hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.faqs-hero-image {
  flex: auto;
  max-width: 21.875rem;
}

.faqs-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.faqs-hero-text {
  flex: 1;
}

.faqs-hero-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: black;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.faqs-hero-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
  padding-left: 2rem;
  text-align: justify;
}

/* Sección 2: Acordeón */
.faqs-accordion-section {
  padding: 3.75rem 0 5rem;
  background: white;
}

.faqs-accordion-title {
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 3rem 0;
}

.faqs-accordion {
  max-width: 56.25rem;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.faq-toggle:checked + .faq-question .faq-icon {
  transform: rotate(180deg);
}

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

.faq-toggle:checked ~ .faq-answer {
  max-height: 31.25rem;
  padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
  text-align: justify;
}

/* Sección 3: CTA Contacto */
.faqs-contact-cta {
  position: relative;
  background: white;
  padding: 7rem 0;
  overflow: visible;
}

.faqs-contact-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  gap: 2rem;
  background-color: var(--color-primary);
  border-radius: 2rem;
}

.faqs-contact-content .faqs-contact-question {
  padding-left: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.faqs-contact-button-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.faqs-contact-btn {
  background: #ffffff;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 6rem;
  margin-right: 3rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.faqs-contact-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.faqs-contact-image {
  width: 10rem;
  height: auto;
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(20%);
  z-index: 2;
  pointer-events: none;
}

/*Página Contacto*/
/* Sección 1: Hero */
.contacto-page{
  padding: 0 0 3.125rem;
}

.contacto-hero {
  padding: 5rem 0 3.75rem;
  background: #ffffff;
}

.contacto-hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-bottom: 2rem;
}

.contacto-hero-image {
  flex: auto;
  max-width: 21.875rem;
}

.contacto-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contacto-hero-text {
  flex: 1;
}

.contacto-hero-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: black;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.contacto-hero-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
  padding-left: 2rem;
  text-align: justify;
}

/* Sección 2: Formulario */
.contacto-form-section {
  padding: 3.75rem 0 5rem;
  background: white;
}

/* Notificaciones del formulario de contacto */
.form-notification { display: none; }

.notification {
  display: none;
  padding: 16px 20px;
  margin: 0 0 32px;
  border-radius: 4px;
}
.notification p { margin: 0; }

.notification--success {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.notification--error {
  background: #fdecea;
  border-left: 4px solid #f44336;
  color: #c62828;
}

.field-error {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #c62828;
}

.contacto-form {
  margin: 0 auto;
  background: #ffffff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-family: 'Lexend Deca', sans-serif;
  color: var(--dark-color);
  background: #e8e8e8;
  border: 0.125rem solid transparent;
  border-radius: var(--border-radius-md);
  transition: var(--transition);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  background: #f5f5f5;
  border-color: var(--color-primary);
}

.form-textarea {
  resize: vertical;
  overflow: auto;
  min-height: 7.5rem;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  cursor: pointer;
  accent-color: var(--color-primary);
  margin-top: 0.125rem;
}

.form-checkbox-label {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

.form-link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.form-link:hover {
  color: var(--color-secondary);
}

.form-button {
  padding: 0.4rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 0.25rem 0.75rem rgba(185, 14, 26, 0.2);
  flex: 1;
}

.form-button:hover {
  transform: translateY(-2px);
}

.form-button:active {
  transform: translateY(0);
}


/* ========================================
   PÁGINAS LEGALES
   ======================================== */

/* Sección 1: Hero */
.legal-page {
  padding: 0 0 5rem;
  max-width: 75rem;
  margin: 0 auto;
}

.legal-section {
  padding: 2rem 0;
}

.legal-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.legal-subtitle {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.4;
}

h3.legal-subtitle {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

.legal-text {
  font-size: 1.1rem;
  line-height: 2;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.legal-page ul {
  margin: 1.5rem 0 2rem 0;
  padding-left: 2rem;
  line-height: 2;
}

.legal-page ul li {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 2;
  list-style-type: none;
  position: relative;
  padding-left: 1.5rem;
}

.legal-page ul li::before {
  content: "●";
  color: var(--color-primary);
  font-size: 1.2rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* Carrusel Circular */
.carousel-circular-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 592.4 / 468.18;
}

.carousel-background {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.carousel-logo-center {
  position: absolute;
  left: 48%;
  top: 15%;
  transform: translate(-50%, -50%);
  width: 10%;
  height: auto;
  pointer-events: none;
  z-index: 10;
}

.carousel-image-center {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 5;
}

.carousel-circular {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-circular.dragging {
  cursor: grabbing;
  transition: none;
}

.carousel-item-circular {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.carousel-circular.dragging .carousel-item-circular {
  transition: none;
}

.carousel-building {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transform: translate(-50%, -75%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-circular.dragging .carousel-building {
  transition: none;
}

.section-divider {
  height: 2.5rem;
  background-color: var(--color-secondary);
}

.section-divider2 {
  height: 1.25rem;
  background-color: rgb(189, 206, 211);
}

.section-divider3 {
  height: 1.25rem;
  background-color: #ffd3be;
}

.section-divider4 {
  height: 1.25rem;
  background-color: rgb(221, 248, 255);
}

.section-divider5 {
  height: 1.25rem;
  background-color: #a8d2ff;
}

.section-divider6 {
  height: 1.25rem;
  background-color: #cacaca;
}

.section-divider7 {
  height: 1.25rem;
  background-color: #c5b9ac;
}

.section-divider8 {
  height: 1.25rem;
  background-color: #b17d80;
}

.section-divider9 {
  height: 7rem;
  background: linear-gradient(to right, #ffffff, var(--color-secondary) 40%, var(--color-secondary) 60%, #ffffff);
}

/* PLATAFORMA INTEGRAL */
.platform-section {
  position: relative;
  background: #ffffff;
}

.platform-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 60%;
  background: url("https://multimedia.indivasaas.com/FONDO_BINARIO.webp") right top/cover no-repeat;
  mask-image: radial-gradient(circle at top right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at top right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 80%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.platform-section .container {
  position: relative;
  z-index: 2;
}

.platform-intro {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 3rem;
  align-items: center;
}

.platform-content {
  padding-right: 2rem;
}

.platform-title {
  font-size: 2.2rem;
  margin: 0 0 2rem;
  color: var(--dark-color);
  font-weight: 400;
}

.platform-paragraph {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  text-align: justify;
}

.platform-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-image img {
  width: var(--dashboard-width);
  height: auto;
  border-radius: var(--border-radius-md);
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-md);
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.platform-card {
  position: relative;
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 0 2px transparent, inset 0 -20px 20px -20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.platform-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 -20px 20px -20px rgba(0, 0, 0, 0.3);
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 0.125rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.platform-card:nth-child(1),
.platform-card:nth-child(2) {
  grid-column: span 6;
}

.platform-card:nth-child(3),
.platform-card:nth-child(4),
.platform-card:nth-child(5) {
  grid-column: span 4;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
}

.card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  width: 8rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0;
  text-align: center;
}

.platform-card:nth-child(1) .card-title {
  color: var(--color-alumbrado);
}
.platform-card:nth-child(2) .card-title {
  color: var(--color-edificios);
}
.platform-card:nth-child(3) .card-title {
  color: var(--color-pavimentos);
}
.platform-card:nth-child(4) .card-title {
  color: var(--color-agua);
}
.platform-card:nth-child(5) .card-title {
  color: var(--color-residuos);
}

.card-header-img {
  width: 50%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.card-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* CONTENIDO PRINCIPAL */
.main-content {
  background: #ffffff;
}

.content-block-1 {
  padding: 4rem 2rem;
  background: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-logo {
  max-width: 12.5rem;
  height: auto;
  margin-left: -1.25rem;
}

.content-title {
  font-size: 2.4rem;
  color: #000000;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

.title-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

.title-highlight-alumbrado {
  color: var(--color-alumbrado);
  font-weight: 700;
}

.title-highlight-agua {
  color: var(--color-agua);
  font-weight: 700;
}

.title-highlight-edificios {
  color: var(--color-edificios);
  font-weight: 700;
}

.title-highlight-residuos {
  color: var(--color-residuos);
  font-weight: 700;
}

.title-highlight-pavimentos {
  color: var(--color-pavimentos);
  font-weight: 700;
}

.title-bold {
  font-weight: 700;
}

.title-evolution {
  background-color: rgba(16, 152, 187, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.title-evolution-pavimentos {
  font-weight: 700;
  background-color: rgba(198, 96, 47, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.title-evolution-agua {
  font-weight: 700;
  background-color: rgba(60, 144, 235, 0.342);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.title-evolution-edificios {
  font-weight: 700;
  background-color: rgba(96, 204, 69, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.title-evolution-residuos {
  font-weight: 700;
  background-color: rgba(95, 62, 27, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

.title-evolution-alumbrado {
  font-weight: 700;
  background-color: rgba(198, 96, 47, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-sm);
}

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

.content-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
  text-align: justify;
}

.extra-bold {
  font-weight: 900;
  color: #000;
}

/* SECCIÓN GESTIÓN MUNICIPAL APP
   ======================================== */

.gestion-app-section {
  padding: 0;
  overflow: hidden;
}

.gestion-app-inner {
  background: linear-gradient(to top, var(--color-primary) 0%, #ffffff 60%);
  padding: 4rem 1.25rem;
}

.gestion-app-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gestion-app-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}

.gestion-app-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-primary);
  margin: 0;
}

.gestion-app-pantallas {
  text-align: center;
  margin-bottom: 0;
}

.gestion-app-pantallas img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: bottom;
  margin-bottom: -2rem;
}

.gestion-app-cards {
  display: grid;
  grid-template-columns: 70% 25%;
  align-items: end;
  gap: 2rem;
  padding-bottom: 2rem;
}

.gestion-app-card {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.gestion-app-card.gestion-app-card-info{
  margin-left: 2rem;
}

.gestion-app-card.gestion-app-card-qr{
  padding: 1rem 0;
}

.gestion-app-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: black;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.gestion-app-card-text {
  font-size: 1rem;
  line-height: 1.8;
  color: black;
  margin: 0 0 1rem;
  text-align: justify;
}

.gestion-app-card-text:last-child {
  margin-bottom: 0;
}

.gestion-app-card-qr .gestion-app-card-title {
  text-align: center;
}

.gestion-app-qr-links {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.gestion-app-qr-link {
  display: block;
  width: 100%;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gestion-app-qr-link:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.gestion-app-qr-img {
  width: 100%;
  height: auto;
  display: block;
}

/* APLICACIÓN */
.aplicacion-section {
  background: var(--light-color);
  padding: 6.25rem 1.25rem;
}

.aplicacion-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 3rem;
  align-items: end;
}

.aplicacion-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aplicacion-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.movil-img {
  max-width: 15%;
  height: auto;
  border-radius: var(--border-radius-md);
  flex-shrink: 0;
}

.aplicacion-title {
  font-size: 2.2rem;
  color: var(--dark-color);
  font-weight: 400;
  margin: 0;
  flex: 1;
}

.aplicacion-paragraph {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

.aplicacion-right {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.aplicacion-img {
  width: 100%;
  height: auto;
}

/* TECNOLOGÍAS */
.tecnologias-block {
  position: relative;
  background: url("https://multimedia.indivasaas.com/FONDO_BINARIO.webp") center/cover no-repeat;
}

.tecnologias-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.98) 70%, rgba(255, 255, 255, 1) 100%);
  z-index: 1;
}

.tecnologias-block .container {
  position: relative;
  z-index: 2;
}

.tecnologias-title {
  text-align: center;
  font-weight: 400;
}

.tecnologias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.tecnologia-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tecnologia-item:hover,
.carousel-item:hover,
.alumbrado-card:hover {
  transform: translateY(-5px);
}

.tecnologia-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tecnologia-icon {
  width: 8rem;
  height: auto;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.tecnologia-name {
  font-size: 1.5rem;
  color: #000000;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tecnologia-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  text-align: justify;
}

/* CARRUSEL DE TECNOLOGÍAS DETALLADO */
.tecnologias-carousel-section {
  background: #ffffff;
  margin-bottom: 2rem;
  isolation: isolate;
  position: relative;
  z-index: 1;
  box-shadow: 0 1rem 1.5rem -0.75rem rgba(0, 0, 0);
}

.tecnologias-carousel {
  position: relative;
  max-width: 75rem;
  margin: 0 auto;
  contain: layout style;
}

.tech-carousel-track-container {
  overflow: visible;
  position: relative;
  min-height: 28rem;
  isolation: isolate;
  contain: layout style;
}

.tech-carousel-track {
  display: flex;
  position: relative;
  height: 100%;
}

.tech-carousel-card {
  min-width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: #f4f4f4;
  border-radius: 1.25rem;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  display: none;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.tech-carousel-card.active {
  display: flex;
}

.tech-card-left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  z-index: 1;
}

.tech-card-icon {
  width: 3.75rem;
  height: 3.75rem;
  object-fit: contain;
}

.tech-card-title-header {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-align: left;
}

.tech-card-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.1);
  margin-top: -2.25rem;
  z-index: -0.5;
}

.tech-card-right {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding-left: 2rem;
}

.tech-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.tech-card-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
  text-align: justify;
}

/* Puntos de navegación del carrusel de tecnologías */
.tech-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 11rem 0 0.5rem;
}

.tech-carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tech-carousel-dot.active {
  background: #000;
  transform: scale(1.5);
}

/* ========================================
   SECCIÓN INTELIGENCIA ARTIFICIAL
   ======================================== */

.ia-section {
  background: #ffffff;
  padding-top: 5rem;
  margin-bottom: 8rem;
}

.ia-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 0 3rem 7rem;
}

.ia-header-icon {
  width: 8rem;
  height: auto;
  flex-shrink: 0;
}

.ia-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ia-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.2;
}

.ia-subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0;
}

.ia-parallax {
  background: url("https://multimedia.indivasaas.com/FONDO-IA.jpg") center center / cover no-repeat;
  padding: 4rem 1.25rem;
}

.ia-row-top {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  margin-bottom: 2rem;
}

.ia-image-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ia-main-image {
  width: 65%;
  height: auto;
  display: block;
}

.ia-card {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.12);
}

.ia-card-title {
  font-size: 2.29rem;
  font-weight: 400;
  color: var(--dark-color);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
  flex-wrap: wrap;
}

.ia-voz-icon {
  width: 2.5rem;
  height: auto;
  flex-shrink: 0;
}

.ia-card-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin: 0 0 1rem;
  text-align: justify;
}

.ia-card-text:last-child {
  margin-bottom: 0;
}

/* ========================================
   SECCIÓN TELEGESTIÓN
   ======================================== */

.telegestion-section {
  background: url("https://multimedia.indivasaas.com/FONDO-TELEGESTION.jpg") center center / cover no-repeat;
  background-attachment: fixed;
  padding: 5rem 1.25rem;
  margin-bottom: 8rem;
}

.telegestion-card {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 3rem;
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
}

.telegestion-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.telegestion-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--dark-color);
  margin: 0;
  line-height: 1.3;
}

.telegestion-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
  text-align: justify;
}

.telegestion-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegestion-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* GESTIÓN MUNICIPAL */
.gestion-municipal-section {
  background: var(--light-color);
}

.gestion-municipal-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark-color);
}

.gestion-municipal-paragraph {
  font-size: 1.2rem;
  color: var(--color-text);
  text-align: justify;
}

/* MUNICIPIOS */
.municipios-section {
  background: #ffffff;
  padding: 6.25rem 0 9.375rem;
}

.municipios-title {
  text-align: center;
  font-weight: 700;
  padding: 0 1.25rem;
}

.municipios-carousel-wrapper {
  background: var(--light-color);
  padding: 3rem 0;
  width: 100%;
}

.municipios-carousel-wrapper .container {
  position: relative;
  display: block;
}

.municipios-carousel {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.carousel-item {
  flex: 0 0 calc((100% - 6rem) / 5);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--light-color);
  border-radius: var(--border-radius-md);
}

.municipio-escudo {
  width: 9rem;
  height: 9rem;
  margin-bottom: 0.75rem;
  object-fit: contain;
  display: block;
}

.carousel-item .municipio-nombre {
  text-align: center;
  font-size: 1.2rem;
  color: var(--dark-color);
  margin: 0;
  font-weight: 400;
}

/* FOOTER */
.footer {
  position: relative;
  width: 100%;
}

.footer-main {
  position: relative;
  min-height: 25rem;
  background: linear-gradient(to right, transparent 0%, transparent 33.33%, #ffffff 33.33%, #ffffff 100%);
  overflow: hidden;
}

.footer-main::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 33.33%;
  height: 100%;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0.9) 100%),
    url("https://multimedia.indivasaas.com/FONDO_FOOTER.webp");
  background-size: cover;
  background-position: left center;
  z-index: 0;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: linear-gradient(to right, rgba(53, 152, 176, 0.6) 0%, rgba(53, 152, 176, 0.6) 23.33%, rgba(53, 152, 176, 0) 86.66%);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 3rem;
  padding: 4rem 1.25rem 3rem;
  align-items: start;
}

.footer-logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 7.5rem;
}

.footer-nav {
  grid-column: 2;
  justify-self: center;
}

.footer-nav-list {
  display: flex;
  flex-direction: row;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-list > li {
  position: relative;
}

/* Footer Dropdown */
.footer-dropdown {
  position: relative;
}

.footer-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 993px) {
  .footer-dropdown:hover .footer-dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .footer-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 180px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
    z-index: 100;
    list-style: none;
    padding: 0;
  }

  .footer-dropdown:hover .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
  }
}

.footer-dropdown-menu li {
  border-bottom: 1px solid rgba(32, 95, 144, 0.1);
}

.footer-dropdown-menu li:last-child {
  border-bottom: none;
}

.footer-dropdown-menu .footer-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

.footer-dropdown-menu .footer-link:hover {
  background: rgba(53, 152, 176, 0.1);
  color: var(--color-secondary);
}

.footer-link,
.legal-link {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-link:hover,
.legal-link:hover {
  color: var(--color-secondary);
}


.footer-social {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-self: end;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  border-radius: 50%;
  color: #ffffff;
  transition: var(--transition);
}

.social-link:hover {
  background: #25303c;
  transform: scale(1.1);
}

.footer-legal {
  grid-column: 4;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-address {
  padding: 0.5rem 0;
  background: var(--color-secondary);
}

.footer-address .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-copyright,
.footer-location {
  color: #ffffff;
  margin: 0;
  font-size: 0.95rem;
}

.footer-copyright {
  text-align: left;
}

.footer-location {
  text-align: right;
}

.footer-bottom {
  height: 3rem;
  background: #25303c;
}
/* SOLICITA DEMO */
.demo-cta {
  background: #ffffff;
  padding: 4rem 2rem;
}

.demo-container {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  padding: 3rem 2rem;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  min-width: 46.875rem;
}

.demo-img-left,
.demo-img-right {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: var(--border-radius-md);
}

.demo-title {
  color: #000000;
  margin: 0;
  font-weight: 400;
}

.demo-btn {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  min-width: 37.5rem;
  padding: 0.3rem 3rem;
  outline: 0.0625rem solid rgba(0, 0, 0, 0.2);
  outline-offset: 0.3125rem;
  border-radius: var(--border-radius-lg);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.demo-btn:hover {
  background: #0d7a94;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.75rem rgba(16, 152, 187, 0.3);
}

/* ========================================
   PÁGINA ALUMBRADO PÚBLICO
   ======================================== */

.alumbrado-intro, .agua-intro, .edificios-intro, .residuos-intro, .pavimentos-intro {
  padding: 60px 20px;
  background: #ffffff;
}

.alumbrado-intro-grid, .agua-intro-grid, .edificios-intro-grid, .residuos-intro-grid, .pavimentos-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.alumbrado-intro-left, .agua-intro-left, .edificios-intro-left, .residuos-intro-left, .pavimentos-intro-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.alumbrado-logo, .agua-logo, .edificios-logo, .residuos-logo, .pavimentos-logo {
  width: 30%;
  height: auto;
  object-fit: contain;
}

.alumbrado-title, .agua-title, .edificios-title, .residuos-title, .pavimentos-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--dark-color);
  line-height: 1.3;
  margin: 0;
}

.alumbrado-intro-right, .agua-intro-right, .edificios-intro-right, .residuos-intro-right, .pavimentos-intro-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.edificios-imagen, .residuos-imagen {
  height: auto;
  object-fit: cover;
  transform: scaleX(-1);
  width:70%;
}

.agua-imagen, .pavimentos-imagen {
  height: auto;
  object-fit: cover;
  transform: scaleX(1);
  width: 65%;
}

.alumbrado-imagen {
  height: auto;
  object-fit: cover;
  transform: scaleX(1);
  width: 50%;
}

.alumbrado-description, .agua-description, .edificios-description, .residuos-description, .pavimentos-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  margin: 0;
}

.alumbrado-servicios, .agua-servicios, .edificios-servicios, .residuos-servicios, .pavimentos-servicios {
  padding: 5rem 0;
  background: var(--light-color);
}

.alumbrado-servicios-title, .agua-servicios-title, .edificios-servicios-title, .residuos-servicios-title, .pavimentos-servicios-title {
  font-weight: 400;
  line-height: 1.4;
  margin: 0 auto 3rem;
  max-width: 37.5rem;
}

.title-line-left {
  text-align: left;
}

.title-line-right {
  text-align: right;
}

.alumbrado-iconos, .agua-iconos, .edificios-iconos, .residuos-iconos, .pavimentos-iconos {
  width: 100%;
  margin-bottom: 3rem;
}

.alumbrado-cards-grid, .agua-cards-grid, .edificios-cards-grid, .residuos-cards-grid, .pavimentos-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.alumbrado-card, .agua-card, .edificios-card, .residuos-card, .pavimentos-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alumbrado-card:hover, .agua-card:hover, .edificios-card:hover, .residuos-card:hover, .pavimentos-card:hover {
  box-shadow: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.12);
}

.alumbrado-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-alumbrado);
  margin: 0 0 1rem;
}

.agua-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-agua);
  margin: 0 0 1rem;
}

.edificios-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-edificios);
  margin: 0 0 1rem;
}

.pavimentos-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-pavimentos);
  margin: 0 0 1rem;
}

.residuos-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-residuos);
  margin: 0 0 1rem;
}

.alumbrado-card-text, .agua-card-text, .edificios-card-text, .residuos-card-text, .pavimentos-card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  text-align: justify;
}

.alumbrado-mejoras, .agua-mejoras, .edificios-mejoras, .residuos-mejoras, .pavimentos-mejoras {
  padding: 5rem 0;
  background: var(--light-color);
}

.mejoras-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 0;
}

.mejoras-grid-bottom {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 3rem;
  margin-top: 3rem;
}

.mejoras-header {
  grid-column: 1;
}

.mejoras-header-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.mejoras-imagen {
  width: auto;
  height: 100%;
  max-height: 12.5rem;
  object-fit: contain;
  justify-self: start;
}

.mejoras-titulo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mejoras-titulo-left,
.mejoras-titulo-right {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--dark-color);
  line-height: 1.3;
}

.mejoras-titulo-left {
  text-align: left;
}

.mejoras-titulo-right {
  text-align: right;
}

.mejoras-empty {
  grid-column: 2;
}

.mejoras-texto {
  grid-column: 1;
  padding-right: 2rem;
  display: flex;
  align-items: center;
}

.mejoras-texto p {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #555;
  text-align: left;
  margin: 0;
}

.mejoras-lista-container {
  grid-column: 2;
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
}

.mejoras-alumbrado-lista, .mejoras-agua-lista, .mejoras-edificios-lista, .mejoras-residuos-lista, .mejoras-pavimentos-lista {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mejoras-alumbrado-lista li, .mejoras-agua-lista li, .mejoras-edificios-lista li, .mejoras-residuos-lista li, .mejoras-pavimentos-lista li {
  position: relative;
  background: var(--light-color);
  border-radius: 8px;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--dark-color);
}

.mejoras-alumbrado-lista li::before,
.mejoras-agua-lista li::before,
.mejoras-edificios-lista li::before,
.mejoras-residuos-lista li::before,
.mejoras-pavimentos-lista li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.mejoras-alumbrado-lista li::before { background-color: var(--color-alumbrado); }
.mejoras-agua-lista li::before { background-color: var(--color-agua); }
.mejoras-edificios-lista li::before { background-color: var(--color-edificios); }
.mejoras-residuos-lista li::before { background-color: var(--color-residuos); }
.mejoras-pavimentos-lista li::before { background-color: var(--color-pavimentos); }

.mejoras-alumbrado-lista li strong,
.mejoras-agua-lista li strong,
.mejoras-edificios-lista li strong,
.mejoras-residuos-lista li strong,
.mejoras-pavimentos-lista li strong {
  margin: 0 0.25em;
}

.mejoras-alumbrado-lista li:last-child, .mejoras-agua-lista li:last-child, .mejoras-edificios-lista li:last-child, .mejoras-residuos-lista li:last-child, .mejoras-pavimentos-lista li:last-child {
  margin-bottom: 0;
}

/* Quinta sección: ¿Por qué elegir esta solución? */
.alumbrado-porque, .agua-porque, .edificios-porque, .residuos-porque, .pavimentos-porque {
  padding: 5rem 0;
  background: #ffffff;
}

.porque-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--dark-color);
  margin: 0 0 3rem;
  line-height: 1.4;
}

.porque-title strong {
  font-weight: 700;
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.porque-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;  
}

.porque-img {
  width: auto;
  height: 12.5rem;
}

.porque-item .porque-texto {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: center;
  margin: 0;
  max-width: 11.25rem;
}

/* Alumbrado - Sexta Sección */
.alumbrado-sexta {
  position: relative;
  background: linear-gradient(
    to bottom,
    #c7845d 0,
    #c7845d 2.5rem,
    var(--color-alumbrado) 2.5rem,
    var(--color-alumbrado) calc(100% - 1.25rem - 1.875rem),
    #e6bca8 calc(100% - 1.25rem - 1.875rem),
    #e6bca8 calc(100% - 1.875rem),
    #d8a080 calc(100% - 1.875rem),
    #d8a080 100%
  );
  padding: 5rem 0;
  overflow: hidden;
}

.edificios-sexta {
  position: relative;
  background: linear-gradient(
    to bottom,
    #a3d4a3 0,
    #a3d4a3 2.5rem,
    var(--color-edificios) 2.5rem,
    var(--color-edificios) calc(100% - 1.25rem - 1.875rem),
    #c6ffb8 calc(100% - 1.25rem - 1.875rem), 
    #c6ffb8 calc(100% - 1.875rem),
    #bbe2a4 calc(100% - 1.875rem),
    #bbe2a4 100%
  );
  padding: 5rem 0;
  overflow: hidden;
}

.pavimentos-sexta {
  position: relative;
  background: linear-gradient(
    to bottom,
    #bb8686 0,
    #bb8686 2.5rem,
    var(--color-pavimentos) 2.5rem,
    var(--color-pavimentos) calc(100% - 1.25rem - 1.875rem),
    #cf8a94 calc(100% - 1.25rem - 1.875rem),
    #cf8a94 calc(100% - 1.875rem),
    #974452 calc(100% - 1.875rem),
    #974452 100%
  );
  padding: 5rem 0;
  overflow: hidden;
}

.alumbrado-sexta::before, .edificios-sexta::before, .pavimentos-sexta::before {
  content: '';
  position: absolute;
  top: 0;
  right: -25rem;
  width: 35%;
  height: 100%;
  background: url('/assets/FONDO-MAYA-BLANCA.svg') right center / cover no-repeat;
  transform: scale(1.2);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}

.alumbrado-sexta .container, .edificios-sexta .container, .pavimentos-sexta .container {
  position: relative;
  z-index: 2;
}

.sexta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -1rem;
  gap: 2rem;
}

.sexta-badge {
  margin: 0 0 0 2.5rem;
  flex-shrink: 0;
}

.sexta-escudo {
  width: 5rem;
  height: auto;
  display: block;
}

.sexta-title-ciudad {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  flex: 1;
}

.sexta-title-caso {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
  text-align: right;
  flex-shrink: 0;
}

.sexta-content {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 2rem;
  align-items: start;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.sexta-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333333;
  margin: 0 0 1.5rem 0;
}

.sexta-text p:last-child {
  margin-bottom: 0;
}

.sexta-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.25rem;
  padding-right: 1rem;
}

/* ========================================
   COLORES ESPECÍFICOS POR PÁGINA
   ======================================== */

.page-alumbrado .scroll-down {
  border-color: var(--color-alumbrado);
}

.page-alumbrado .scroll-arrow {
  border-right-color: var(--color-alumbrado);
  border-bottom-color: var(--color-alumbrado);
}

.page-pavimentos .scroll-down {
  border-color: var(--color-pavimentos);
}

.page-pavimentos .scroll-arrow {
  border-right-color: var(--color-pavimentos);
  border-bottom-color: var(--color-pavimentos);
}

.page-agua .scroll-down {
  border-color: var(--color-agua);
}

.page-agua .scroll-arrow {
  border-right-color: var(--color-agua);
  border-bottom-color: var(--color-agua);
}

.page-residuos .scroll-down {
  border-color: var(--color-residuos);
}

.page-residuos .scroll-arrow {
  border-right-color: var(--color-residuos);
  border-bottom-color: var(--color-residuos);
}

.page-edificios .scroll-down {
  border-color: var(--color-edificios);
}

.page-edificios .scroll-arrow {
  border-right-color: var(--color-edificios);
  border-bottom-color: var(--color-edificios);
}

.edificios-animation-section {
  background: #ffffff;
  padding: 4rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edificios-animation-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.edificios-animation-section h2 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  text-align: center;
}

.edificios-animation-section .section-intro {
  font-size: 1.2rem;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 43.75rem;
}

.animation-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  overflow: hidden;
}

#animation_container {
	position:relative;
	margin:auto;
	left:0;right:0;
	top:0;bottom:0;
  }

#canvas {
  display: block !important;
  margin: 0 auto !important;
  background-color: rgba(255, 255, 255, 1.00);
}

#dom_overlay_container {
  pointer-events: none !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

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

/* ========================================
   TABLET HORIZONTAL (993px – 1360px)
   ======================================== */
@media (max-width: 85rem) and (min-width: 62.0625rem) {
  /* Corregir desbordamiento horizontal del hero */
  .video-background {
    width: 100%;
    margin-left: 0;
  }

  /* Nav dropdown: desactivar hover, activar con click */
  .nav-dropdown:hover .nav-dropdown-toggle::after { transform: none; }
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
  }
  .nav-dropdown.active .nav-dropdown-toggle::after { transform: rotate(180deg); }
  .nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Footer dropdown: desactivar hover, activar con click */
  .footer-dropdown:hover .footer-dropdown-toggle::after { transform: none; }
  .footer-dropdown:hover .footer-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
  }
  .footer-dropdown.active .footer-dropdown-toggle::after { transform: rotate(180deg); }
  .footer-dropdown.active .footer-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
  }

  /* Corregir desbordamiento de mejoras en páginas de servicios */
  .mejoras-grid-top { grid-template-columns: 1fr 1fr; }
  .mejoras-grid-bottom { grid-template-columns: 3fr 7fr; }
}

@media (max-width: 62rem) and (min-width: 48.0625rem) {
  /* Header - menú siempre visible sin animación */
  .menu-toggle { display: none; }
  
  .nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    transition: none;
    padding-top: 0;
  }
  
  .nav-list { 
    gap: 1rem;
    flex-direction: row;
  }
  
  .nav-list li {
    border-bottom: none;
  }
  
  .nav-link { 
    font-size: 0.9rem; 
    padding: 0.5rem 0.8rem; 
  }
  
  .nav-link-login { 
    padding: 1.2rem 1rem 0.5rem; 
  }
  
  /* Dropdown de servicios con click en tablets */
  .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(0.625rem);
    min-width: 12.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.625rem);
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, max-height 0.3s ease;
  }
  
  .nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 31.25rem;
  }
  
  .nav-dropdown.active .nav-dropdown-toggle::after {
    transform: rotate(180deg);
  }
  
  .nav-dropdown-menu .nav-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    background: transparent;
  }
  
  .nav-dropdown-menu .nav-link:hover {
    background: rgba(16, 152, 187, 0.1);
  }
  
  /* Footer */
  .footer-logo img { height: 6.25rem; }
  .footer-nav-list { gap: 1.5rem; }

  .footer-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 180px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
  }

  .footer-dropdown.active .footer-dropdown-menu {
    max-height: 25rem;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .footer-dropdown.active .footer-dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .footer-dropdown-menu .footer-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    text-align: center;
  }

  .footer-dropdown-menu .footer-link:hover {
    background: rgba(53, 152, 176, 0.1);
  }

  .tech-carousel-track-container{
    margin-bottom: 9rem;
  }

  .tech-carousel-card{
    flex-direction: column;
    gap: 2rem;
  }

  .tech-carousel-dots {
    padding-top: 18rem;
  }

  .platform-cards { grid-template-columns: repeat(2, 1fr); }
  .platform-card:nth-child(1)  { grid-column: span 2; }
  .platform-card:nth-child(2),
  .platform-card:nth-child(3),
  .platform-card:nth-child(4),
  .platform-card:nth-child(5) { grid-column: span 1; }

  .content-paragraphs{margin-top: 2rem;}
  .page-content{padding-top: 3.375rem;}

  .alumbrado-intro-grid, .pavimentos-intro-grid, .agua-intro-grid, .edificios-intro-grid, .residuos-intro-grid { gap: 2rem; }
  .alumbrado-logo, .pavimentos-logo, .agua-logo, .edificios-logo, .residuos-logo { width: 35%; }
  .alumbrado-title, .pavimentos-title, .agua-title, .edificios-title, .residuos-title { font-size: 2rem; }
  .alumbrado-description, .pavimentos-description, .agua-description, .edificios-description, .residuos-description { font-size: 1rem; }
  .alumbrado-servicios, .pavimentos-servicios, .agua-servicios, .edificios-servicios, .residuos-servicios { padding: 3.75rem 0; }
  .alumbrado-servicios-title, .pavimentos-servicios-title, .agua-servicios-title, .edificios-servicios-title, .residuos-servicios-title { font-size: 2rem; max-width: 31.25rem; }
  .alumbrado-cards-grid, .pavimentos-cards-grid, .agua-cards-grid, .edificios-cards-grid, .residuos-cards-grid { gap: 1.5rem; }
  .alumbrado-card, .pavimentos-card, .agua-card, .edificios-card, .residuos-card { padding: 1.5rem; }
  .alumbrado-card-title, .pavimentos-card-title, .agua-card-title, .edificios-card-title, .residuos-card-title { font-size: 1.3rem; }
  .alumbrado-card-text, .pavimentos-card-text, .agua-card-text, .edificios-card-text, .residuos-card-text { font-size: 0.95rem; }
  .alumbrado-mejoras, .pavimentos-mejoras, .agua-mejoras, .edificios-mejoras, .residuos-mejoras { padding: 3.75rem 0; }
  .mejoras-grid-top { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 0; }
  .mejoras-grid-bottom { grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
  .mejoras-header { grid-column: 1; }
  .mejoras-empty { display: none; }
  .mejoras-texto { grid-column: 1; padding-right: 0; display: block; align-items: unset; }
  .mejoras-lista-container { grid-column: 1; padding: 1rem; }
  .mejoras-titulo-left,
  .mejoras-titulo-right { font-size: 2rem; text-align: center;}
  .mejoras-texto p { font-size: 1rem; }
  .mejoras-alumbrado-lista li, .mejoras-agua-lista li, .mejoras-edificios-lista li, .mejoras-pavimentos-lista li, .mejoras-residuos-lista li { font-size: 1rem; padding: 0.5rem 1rem 0.5rem 2.25rem; margin-bottom: 0.5rem; }

  .alumbrado-porque, .pavimentos-porque, .agua-porque, .edificios-porque, .residuos-porque { padding: 3.75rem 0; }
  .porque-title { font-size: 2rem; margin-bottom: 2.5rem; }
  .porque-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .porque-texto { font-size: 0.95rem; }

  /*Casos de éxito de Servicios*/
  .alumbrado-sexta, .pavimentos-sexta, .edificios-sexta{ padding: 3.75rem 0; }
  .sexta-header { gap: 1.5rem; }
  .sexta-escudo { width: 4.375rem; }
  .sexta-title-ciudad { font-size: 2rem; }
  .sexta-title-caso { font-size: 2rem; }
  .sexta-content { gap: 1.5rem; padding: 1.5rem; }
  .sexta-text p { font-size: 0.95rem; }

  /* IA - tablet */
  .ia-section { padding-top: 3rem; }
  .ia-header-icon { width: 6rem; }
  .ia-title { font-size: 2rem; }
  .ia-subtitle { font-size: 1.2rem; }
  .ia-card-title { font-size: 1.3rem; }

  /* Telegestión - tablet */
  .telegestion-card { padding: 2rem; }
  .telegestion-title { font-size: 1.6rem; }

  /*Gestión municipal - tablet*/
  .gestion-app-cards { gap: 1.5rem;}
  .gestion-app-card.gestion-app-card-qr { margin-bottom: 12rem;}

  /* Animación - tablet portrait */
  .animation-wrapper { display: flex; justify-content: center; width: 100%; }
  #animation_container { 
    width: 90% !important; 
    height: auto !important;
    aspect-ratio: 4/3;
    margin: 0 auto !important;
  }
  #canvas {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 48rem) {
  .header { top: 0.625rem; }
  .logo img { height: 3.125rem; }
  .header.scrolled .logo img { height: 2.8125rem; }
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 17.5rem;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(0.625rem);
    box-shadow: -0.3125rem 0 0.9375rem rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding-top: 5rem;
    z-index: 999;
    isolation: isolate;
  }

  .nav.active { right: 0; }

  .nav-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0;
  }

  .nav-list li {
    border-bottom: 0.0625rem solid rgba(32, 95, 144, 0.1);
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0;
  }

  .nav-link:hover {
    background: rgba(32, 95, 144, 0.05);
    transform: translateX(0.3125rem);
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.active .nav-dropdown-menu { max-height: 31.25rem; }
  .nav-dropdown-toggle::after { transition: transform 0.3s ease; }
  .nav-dropdown.active .nav-dropdown-toggle::after { transform: rotate(180deg); }

  .nav-dropdown-menu .nav-link {
    padding-left: 2.5rem;
    font-size: 1rem;
    background: rgba(32, 95, 144, 0.03);
  }

  .nav-dropdown-menu .nav-link:hover {
    background: rgba(32, 95, 144, 0.08);
    transform: translateX(0.625rem);
  }

  .nav-link-login {
    margin-top: 0;
    border-radius: 0 0.9375rem 0.9375rem 0;
    padding: 1rem 1.5rem;
  }

  .nav-link-login:hover { background: #25303c; }

  .section h2,
  .section p,
  .page-content h1,
  .page-content p { text-align: center; }
  .section h2 { font-size: 2rem; }

  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-logo { max-width: 9.375rem; margin-left: -1.25rem; }
  .content-title { font-size: 2.04rem; }
  .content-image { width: 100%; }

  .tecnologias-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .tecnologias-title { font-size: 2rem; }

  /* Carrusel responsive - mobile */
  .tecnologias-carousel-section { padding: 3.75rem 0; }
  .tech-carousel-track-container { min-height: 50rem; }
  .tech-carousel-card { 
    flex-direction: column; 
    gap: 2rem; 
    padding: 1.5rem;
  }
  .tech-card-left,
  .tech-card-right { 
    flex: 1; 
    padding-left: 0;
  }
  .tech-card-header { gap: 0.8rem; }
  .tech-card-icon { width: 3.125rem; height: 3.125rem; }
  .tech-card-title-header { font-size: 1.5rem; }
  .tech-card-image { height: 18.75rem; }
  .tech-card-title { font-size: 1.6rem; }
  .tech-card-description { font-size: 1rem; }

  .footer-main { background: #ffffff; min-height: auto; }
  .footer-main::before { width: 100%; opacity: 0.1; }
  .footer-overlay { background: linear-gradient(to bottom, rgba(53, 152, 176, 0.8) 0%, rgba(53, 152, 176, 0) 100%); }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
  }

  .footer-logo { grid-column: 1; grid-row: 1; justify-self: center; }
  .footer-logo img { height: 5rem; }
  .footer-social { grid-column: 1; grid-row: 2; flex-direction: row; justify-self: center; }
  .footer-nav { grid-column: 1; grid-row: 3; }
  .footer-nav-list { flex-direction: column; gap: 0.8rem; }

  .footer-dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .footer-dropdown.active .footer-dropdown-menu { max-height: 25rem; }
  .footer-dropdown.active .footer-dropdown-toggle::after { transform: rotate(180deg); }

  .footer-dropdown-menu .footer-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: rgba(53, 152, 176, 0.08);
  }

  .footer-dropdown-menu .footer-link:hover { background: rgba(53, 152, 176, 0.18); }

  .footer-legal { grid-column: 1; grid-row: 4; gap: 0.8rem; }
  .footer-address .container { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-copyright,
  .footer-location { text-align: center; font-size: 0.85rem; }

  .demo-cta { padding: 3rem 1.5rem; }
  .demo-container { padding: 2rem 1.5rem; }
  .demo-header { gap: 2rem; margin-bottom: 2rem; min-width: 28.125rem; }
  .demo-img-left,
  .demo-img-right { width: 6rem; height: 5.625rem; }
  .demo-title { font-size: 1.8rem; }
  .demo-btn { min-width: 21.875rem; padding: 0.55rem 2.5rem; outline-offset: 0.25rem; }

  .platform-intro { grid-template-columns: 1fr; gap: 2rem; }
  .platform-content { padding-right: 0; }
  .platform-title { font-size: 1.8rem; }
  .platform-cards { grid-template-columns: 1fr; }
  .platform-card:nth-child(1),
  .platform-card:nth-child(2),
  .platform-card:nth-child(3),
  .platform-card:nth-child(4),
  .platform-card:nth-child(5) { grid-column: span 1; font-size: 1rem;}

  .aplicacion-grid { grid-template-columns: 1fr; gap: 2rem; }
  .aplicacion-header { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
  .aplicacion-title { font-size: 1.8rem; }
  .aplicacion-right { margin-top: 2rem; }

  /* Gestión App - tablet */
  .gestion-app-title { font-size: 2.2rem; }
  .gestion-app-subtitle { font-size: 1.4rem; }
  .gestion-app-pantallas img { max-width: 85%; }
  .gestion-app-cards { grid-template-columns: 70% 30%; }
  .gestion-app-card-title { font-size: 1.15rem; }

  .municipios-title { font-size: 2rem; }
  .carousel-track { gap: 1rem; }
  .carousel-item { flex: 0 0 calc((100% - 2rem) / 3); flex-shrink: 0;}

  .carousel-circular-container { max-width: 46.875rem; }
  .carousel-label { font-size: 0.625rem; }
  .carousel-building { width: 8.4375rem; }
  .carousel-image-center { width: 100%; }

  /* Edificios animación - tablet */
  .edificios-animation-section { padding: 3rem 0; }
  .edificios-animation-section h2 { font-size: 2rem; }
  .edificios-animation-section .section-intro { font-size: 1.1rem; margin-bottom: 2rem; }
  .animation-wrapper { display: flex; justify-content: center; width: 100%; }
  #animation_container { 
    width: 90% !important; 
    height: auto !important;
    aspect-ratio: 4/3;
    margin: 0 auto !important;
  }
  #canvas {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .alumbrado-intro, .agua-intro, .edificios-intro, .pavimentos-intro, .residuos-intro { padding: 2.5rem 1.25rem; }
  .alumbrado-intro-grid, .agua-intro-grid, .edificios-intro-grid, .pavimentos-intro-grid, .residuos-intro-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  .alumbrado-intro-left, .agua-intro-left, .edificios-intro-left, .pavimentos-intro-left, .residuos-intro-left { gap: 1rem; }
  .alumbrado-logo, .agua-logo, .edificios-logo, .pavimentos-logo, .residuos-logo { width: 40%; }
  .alumbrado-title, .agua-title, .edificios-title, .pavimentos-title, .residuos-title { font-size: 1.6rem; }
  .alumbrado-description, .agua-description, .edificios-description, .pavimentos-description, .residuos-description { font-size: 0.95rem; line-height: 1.6; }
  .alumbrado-servicios, .agua-servicios, .edificios-servicios, .pavimentos-servicios, .residuos-servicios { padding: 2.5rem 0; }
  .alumbrado-servicios-title, .agua-servicios-title, .edificios-servicios-title, .pavimentos-servicios-title, .residuos-servicios-title { font-size: 1.6rem; max-width: 100%; margin-bottom: 2rem; }
  .alumbrado-iconos, .agua-iconos, .edificios-iconos, .pavimentos-iconos, .residuos-iconos { margin-bottom: 2rem; }
  .alumbrado-cards-grid, .agua-cards-grid, .edificios-cards-grid, .pavimentos-cards-grid, .residuos-cards-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2rem; }
  .alumbrado-card, .agua-card, .edificios-card, .pavimentos-card, .residuos-card { padding: 1.5rem; }
  .alumbrado-card-title, .agua-card-title, .edificios-card-title, .pavimentos-card-title, .residuos-card-title { font-size: 1.25rem; text-align: center; }
  .alumbrado-card-text, .agua-card-text, .edificios-card-text, .pavimentos-card-text, .residuos-card-text { font-size: 0.9rem; line-height: 1.6; }
  .alumbrado-mejoras, .agua-mejoras, .edificios-mejoras, .pavimentos-mejoras, .residuos-mejoras { padding: 2.5rem 0; }
  .mejoras-grid-top { gap: 1.5rem; }
  .mejoras-grid-bottom { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .mejoras-header-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .mejoras-imagen { max-height: 9.375rem; justify-self: center; }
  .mejoras-titulo-wrapper { align-items: center; text-align: center; }
  .mejoras-titulo-left,
  .mejoras-titulo-right { font-size: 1.5rem; text-align: center; }
  .mejoras-texto { grid-column: 1; display: block; align-items: unset; padding-right: 0; }
  .mejoras-texto p { font-size: 0.95rem; line-height: 1.6; }
  .mejoras-lista-container { grid-column: 1; padding: 1rem; }
  .mejoras-alumbrado-lista li, .mejoras-agua-lista li, .mejoras-edificios-lista li, .mejoras-pavimentos-lista li, .mejoras-residuos-lista li { font-size: 0.95rem; padding: 0.5rem 1rem 0.5rem 2.25rem; margin-bottom: 0.5rem; }

  .alumbrado-porque, .agua-porque, .edificios-porque, .pavimentos-porque, .residuos-porque { padding: 2.5rem 0; }
  .porque-title { font-size: 1.6rem; margin-bottom: 2rem; }
  .porque-grid { grid-template-columns: 1fr; gap: 2rem; }
  .porque-texto { font-size: 0.9rem; }

  .alumbrado-sexta, .agua-sexta, .edificios-sexta, .pavimentos-sexta, .residuos-sexta { padding: 2.5rem 0; }
  .sexta-header { flex-direction: column; align-items: flex-start; margin-bottom: 2rem; }
  .sexta-badge { margin-bottom: 1rem; }
  .sexta-escudo { width: 3.75rem; }
  .sexta-title-ciudad { font-size: 1.8rem; }
  .sexta-title-caso { font-size: 1.8rem; text-align: left; }
  .sexta-content { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .sexta-text p { font-size: 0.9rem; }

  /* FAQs responsive - tablet */
  .faqs-hero { padding: 60px 0 40px; }
  .faqs-hero-content { flex-direction: column; gap: 2rem; text-align: center; }
  .faqs-hero-image { max-width: 250px; margin: 0 auto; }
  .faqs-hero-title { font-size: 2rem; }
  .faqs-hero-paragraph { padding-left: 0; }
  .faqs-accordion-section { padding: 40px 0 60px; }
  .faqs-accordion-title { font-size: 2.5rem; }
  .faq-question { font-size: 1.1rem; padding: 1.2rem 1.5rem; }
  .faq-answer p { font-size: 0.95rem; }
  .faq-toggle:checked ~ .faq-answer { padding: 0 1.5rem 1.2rem 1.5rem; }
  .faqs-contact-content { flex-direction: column; align-items: center; text-align: center; padding: 2rem 0; }
  .faqs-contact-question { font-size: 1.8rem; }
  .faqs-contact-button-wrapper { justify-content: center; width: 100%; }
  .faqs-contact-btn { padding: 1rem 4rem; }
  .faqs-contact-image { width: 130px; transform: translateY(15%); }

  /* Contact form responsive - tablet */
  .contacto-form-section { padding: 50px 0; }
  .contacto-form { padding: 2.5rem; max-width: 600px; }
  .form-label { font-size: 0.95rem; }
  .form-input { font-size: 0.95rem; padding: 0.85rem; }
  .form-textarea { min-height: 100px; }
  .form-footer { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .form-checkbox-group { justify-content: center; }
  .form-button { width: 100%; padding: 1rem; }

  /* Páginas legales responsive */
  .legal-page { padding: 0 1rem 3rem; }
  .legal-title { font-size: 2rem; margin-top: 2rem; }
  .legal-subtitle { font-size: 1.5rem; margin: 2rem 0 1rem; }
  h3.legal-subtitle { font-size: 1.2rem; margin: 1.5rem 0 1rem; }
  .legal-text { font-size: 1rem; line-height: 1.9; text-align: left; }
  .legal-page ul { padding-left: 1rem; }
  .legal-page ul li { font-size: 0.95rem; line-height: 1.8; }

  /* IA - mobile */
  .ia-section { padding-top: 2.5rem; }
  .ia-header { gap: 1rem; }
  .ia-header-icon { width: 5rem; }
  .ia-title { font-size: 1.8rem; }
  .ia-subtitle { font-size: 1.1rem; }
  .ia-parallax { background-attachment: scroll; padding: 2.5rem 1.25rem; }
  .ia-row-top { grid-template-columns: 1fr; }
  .ia-card { padding: 1.5rem; }
  .ia-card-title { font-size: 1.2rem; }

  /* Telegestión - mobile */
  .telegestion-section { background-attachment: scroll; padding: 3rem 1.25rem; }
  .telegestion-card { grid-template-columns: 1fr; padding: 1.5rem; }
  .telegestion-title { font-size: 1.5rem; }
  .telegestion-paragraph { font-size: 1rem; }
}

@media (max-width: 48rem) and (min-width: 30.0625rem) {
  .footer-content { gap: 1.8rem; }
  .footer-logo img { height: 70px; }
  .footer-nav-list { gap: 0.9rem; }
}

@media (max-width: 30rem) {
  /* Video móvil - ancho 100% pantalla, alto automático */
  .video-background .video-mobile {
    display: block;
  }
  
  .video-background .video-desktop {
    display: none;
  }
  
  .video-background {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    height: auto;
  }
  
  .video-background video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-background img {
    /* width: 100%; */
    height: 60vh;
    object-fit: cover;
  }
  
  /* DASHBOARD 20% más pequeño - Variable CSS: --dashboard-width */
  :root {
    --dashboard-width: 64%;
  }
  
  /* Hero ajustado a contenido del video */
  .hero { 
    min-height: auto;
    padding: 0;
  }
  
  /* Section divider9 altura móvil */
  .section-divider9 { height: 4rem; }
  
  .logo img { height: 35px; }
  .section h2,
  .section p,
  .page-content h1,
  .page-content p,
  .content-title,
  .content-paragraph,
  .alumbrado-servicios-title,
  .agua-servicios-title,
  .edificios-servicios-title,
  .pavimentos-servicios-title,
  .residuos-servicios-title,
  .municipios-title,
  .tecnologias-title,
  .demo-title,
  .aplicacion-title,
  .aplicacion-paragraph { text-align: center; }
  .scroll-down { width: 35px; height: 50px; bottom: 30px; }

  .content-block-1,
  .tecnologias-block { padding: 2rem 1rem; }
  .content-logo { max-width: 120px; margin-left: -20px; }
  .content-title { font-size: 1.68rem; }
  .content-paragraph { font-size: 0.95rem; }
  
  /* Platform cards font-size móvil */
  .platform-card:nth-child(1) .card-title,
  .platform-card:nth-child(2) .card-title,
  .platform-card:nth-child(3) .card-title,
  .platform-card:nth-child(4) .card-title,
  .platform-card:nth-child(5) .card-title { font-size: 1rem; }

  .tecnologias-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .tecnologias-title { font-size: 1.5rem; }
  .tecnologia-icon { width: 60px; height: 60px; }
  .tecnologia-name { font-size: 1.2rem; }
  .tecnologia-description { font-size: 0.9rem; }

  /* Carrusel responsive - mobile */
  .tecnologias-carousel-section { padding: 3rem 0 3rem; }
  .tech-carousel-track-container { min-height: 42rem; }
  .tech-carousel-card { 
    flex-direction: column; 
    gap: 1.5rem; 
    padding: 1rem;
  }
  .tech-card-left { gap: 1rem; }
  .tech-card-header { gap: 0.6rem; padding: 0.5rem 0; }
  .tech-card-icon { width: 40px; height: 40px; }
  .tech-card-title-header { font-size: 1.2rem; }
  .tech-card-image { height: 220px; }
  .tech-card-right { padding-left: 0; gap: 1rem; }
  .tech-card-title { font-size: 1.3rem; }
  .tech-card-description { font-size: 0.9rem; line-height: 1.6; }
  .tech-carousel-dots { padding-top: 13rem;}

  .aplicacion-title { font-size: 1.5rem; }
  .aplicacion-paragraph { font-size: 0.95rem; }
  .movil-img { max-width: 30%; }

  /* Gestión App - mobile */
  .gestion-app-inner { padding: 2.5rem 1.25rem; }
  .gestion-app-title { font-size: 1.8rem; }
  .gestion-app-subtitle { font-size: 1.2rem; }
  .gestion-app-pantallas img { max-width: 100%; margin-bottom: 0;}
  .gestion-app-cards {
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
  }
  .gestion-app-card { padding: 1.5rem; }
  .gestion-app-card.gestion-app-card-info {margin-left: 0;}
  .gestion-app-card-title { font-size: 1.1rem; }
  .gestion-app-card-text { font-size: 0.95rem; }
  .gestion-app-qr-img { max-width: 60%; margin: 0 auto; }

  .municipios-title { font-size: 1.5rem; }
  .municipios-carousel-wrapper { padding: 2rem 0; }
  .municipios-carousel { overflow-x: hidden; }
  .carousel-track { gap: 0.75rem; }
  .carousel-item { flex: 0 0 70%; padding: 0.75rem; display: flex; justify-content: center; flex-shrink: 0;}
  .municipio-escudo { width: 6rem; height: 6rem;}
  .municipio-nombre { font-size: 0.8rem; }
  .mejoras-grid-top {display: block;}

  .footer-content { gap: 1rem; padding: 1.5rem 15px; }
  .footer-logo img { height: 60px; }
  .footer-nav-list { gap: 0.6rem; }
  .footer-link { font-size: 0.9rem; }
  .footer-social { gap: 0.8rem; }
  .social-link { width: 35px; height: 35px; }
  .social-link svg { width: 18px; height: 18px; }
  .footer-legal { gap: 0.6rem; }
  .legal-link{ font-size: 0.75rem; }
  .footer-address .container { flex-direction: column; text-align: center; gap: 0.8rem; }
  .footer-copyright,
  .footer-location { text-align: center; font-size: 0.75rem; }

  .demo-cta { padding: 2rem 1rem; }
  .demo-container { padding: 1.5rem 1rem; }
  .demo-header { 
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    min-width: auto;
    gap: 0;
  }
  .demo-img-left,
  .demo-img-right { 
    width: 35%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: cover;
  }
  .demo-title { 
    font-size: 1.3rem;
    width: 100%;
    order: 1;
  }
  .demo-img-left {
    order: -2;
  }
  .demo-img-right {
    order: -1;
  }
  .demo-btn { min-width: 280px; padding: 0.5rem 2rem; font-size: 0.95rem; outline-offset: 3px; border-radius: 12px; }

  .carousel-circular-container { max-width: 525px; }
  .carousel-label { font-size: 8px; }
  .carousel-building { width: 101.25px; }
  .carousel-image-center { width: 100%; }

  /* Edificios animación - móvil */
  .edificios-animation-section { padding: 2rem 0; min-height: auto; }
  .edificios-animation-section h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
  .edificios-animation-section .section-intro { 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }
  .animation-wrapper { padding: 0 1rem; }
  #animation_container { 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  #canvas {
    display: block !important;
    margin: 0 auto !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-alumbrado .page-content, .page-agua .page-content, .page-pavimentos .page-content, .page-residuos .page-content{padding-top: 0rem;}


  .alumbrado-porque { padding: 30px 0; }
  .porque-title { font-size: 1.3rem; margin-bottom: 1.5rem; }
  .porque-grid { gap: 1.5rem; }
  .porque-texto { font-size: 0.85rem; }

  .alumbrado-sexta { padding: 30px 0; }
  .sexta-header { flex-direction: column; align-items: center; margin-bottom: 1.5rem; gap: 1rem; }
  .sexta-title-caso { font-size: 1.5rem; text-align: left; order: -2; margin-top: 2rem;}
  .sexta-title-ciudad { font-size: 1.5rem; order: -1; }
  .sexta-badge { padding: 0.75rem; margin-bottom: 0.75rem; order: 0; }
  .sexta-escudo { width: 4rem; margin-bottom: -4rem; margin-right: 3rem; }
  .sexta-content { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .sexta-text p { font-size: 0.85rem; margin-bottom: 1rem; }

  /* FAQs responsive - mobile */
  .faqs-hero { padding: 40px 0 30px; }
  .faqs-hero-content { flex-direction: column; gap: 1.5rem; text-align: center; }
  .faqs-hero-image { max-width: 200px; margin: 0 auto; order: -1; display: block; }
  .faqs-hero-text { order: 1; }
  .faqs-hero-title { font-size: 1.6rem; order: 0; }
  .faqs-hero-paragraph { font-size: 1rem; padding-left: 0; }
  .faqs-accordion-section { padding: 30px 0 50px; }
  .faqs-accordion-title { font-size: 2rem; margin-bottom: 2rem; }
  .faq-question { font-size: 1rem; padding: 1rem 1.2rem; }
  .faq-answer p { font-size: 0.9rem; }
  .faq-toggle:checked ~ .faq-answer { padding: 0 1.2rem 1rem 1.2rem; }
  .faqs-contact-content .faqs-contact-question {text-align: center; padding: 1.5rem 0; font-size: 1.5rem;}
  .faqs-contact-button-wrapper { flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
  .faqs-contact-btn { font-size: 1rem; padding: 0.9rem 2.5rem; margin-right: 0rem;}
  .faqs-contact-image { display: none; }

  /* Contact form responsive - mobile */
  .contacto-hero { padding: 40px 0 30px; }
  .contacto-hero-content { flex-direction: column; gap: 1.5rem; text-align: center; }
  .contacto-hero-image { max-width: 200px; margin: 0 auto; order: -1; }
  .contacto-hero-text { order: 0; }
  .contacto-hero-title { font-size: 1.6rem; }
  .contacto-hero-paragraph { font-size: 1rem; padding-left: 0; }
  .contacto-form-section { padding: 30px 0; }
  .contacto-form { padding: 2rem 1.5rem; max-width: 100%; border-radius: 12px; }
  .form-group { margin-bottom: 1.2rem; }
  .form-label { font-size: 0.9rem; }
  .form-input { font-size: 0.9rem; padding: 0.8rem; }
  .form-textarea { min-height: 90px; }
  .form-footer { flex-direction: column; align-items: stretch; gap: 1rem; }
  .form-checkbox-group { justify-content: center; }
  .form-checkbox { width: 18px; height: 18px; }
  .form-checkbox-label { font-size: 0.85rem; }
  .form-button { width: 100%; padding: 1rem; font-size: 1rem; }

  /* Páginas legales responsive - mobile */
  .legal-page { padding: 0 1rem 2rem; }
  .legal-title { font-size: 1.6rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
  .legal-subtitle { font-size: 1.5rem; margin: 2rem 0 1rem; }
  h3.legal-subtitle { font-size: 1.4rem; margin: 1.5rem 0 1rem; }
  .legal-text { font-size: 0.95rem; line-height: 1.9; text-align: left; margin-bottom: 1.2rem; }
  .legal-page ul { padding-left: 0.8rem; margin: 1rem 0 1.5rem 0; }
  .legal-page ul li { font-size: 0.9rem; line-height: 1.9; margin-bottom: 1rem; padding-left: 1.3rem; }
  .legal-page ul li::before { font-size: 1rem; }

  /* IA - móvil pequeño */
  .ia-header { gap: 0.75rem; padding: 2rem 0;}
  .ia-header-icon { width: 4rem; }
  .ia-title { font-size: 1.5rem; }
  .ia-subtitle { font-size: 1rem; }
  .ia-parallax { padding: 2rem 1rem; }
  .ia-row-top { gap: 1.25rem; margin-bottom: 1.25rem; }
  .ia-card { padding: 1.25rem; }
  .ia-card-title { font-size: 1rem; }
  .ia-card-text { font-size: 0.9rem; }
  .ia-main-image { width: 50%;}

  /* Telegestión - móvil pequeño */
  .telegestion-section { padding: 2.5rem 1rem; }
  .telegestion-card { padding: 1.25rem; gap: 1.25rem; }
  .telegestion-title { font-size: 1.3rem; }
  .telegestion-paragraph { font-size: 0.95rem; }
  .telegestion-text {margin-bottom: 1rem;}
}

/* ==========================================
   BANNER DE COOKIES
   ========================================== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a2533;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cookie-banner-text {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

.cookie-banner-text a {
  color: #5cc8e0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookie-banner-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

#cookie-accept,
#cookie-reject {
  font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.6rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

#cookie-accept {
  background: var(--color-primary);
  color: #ffffff;
  border: 2px solid var(--color-primary);
}

#cookie-accept:hover {
  background: #0d7a94;
  border-color: #0d7a94;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 152, 187, 0.5);
}

#cookie-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

#cookie-reject:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

/* Botón "Configuración de cookies" en el footer */
.cookie-config-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

/* Responsive banner */
@media (max-width: 48rem) {
  .cookie-banner-inner {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    align-items: flex-start;
  }

  .cookie-banner-text {
    font-size: 0.85rem;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 30rem) {
  .cookie-banner-actions {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  #cookie-accept,
  #cookie-reject {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }
}
