/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores oficiales EMAPAV basados en el logo */
  --primary-blue: #1e3a8a;
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --water-blue: #3b82f6;
  --water-light: #93c5fd;
  --water-dark: #1d4ed8;

  /* Colores neutros */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Colores de acento */
  --yellow: #fbbf24;
  --green: #10b981;
  --red: #ef4444;

  /* Colores andinos para elementos decorativos */
  --andean-red: #dc2626;
  --andean-orange: #ea580c;
  --andean-yellow: #ca8a04;
  --andean-green: #16a34a;
  --andean-blue: #2563eb;
  --andean-purple: #7c3aed;

  /* Tipografía */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Espaciado */
  --container-max-width: 1200px;
  --section-padding: 80px 0;

  /* Bordes */
  --border-radius: 10px;
  --border-radius-lg: 16px;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-800);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilidades */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--water-light), var(--water-blue), var(--water-dark));
  color: var(--white);
}

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

.btn-white {
  background: var(--white);
  color: var(--water-blue);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--water-blue);
}

.btn-full {
  width: 100%;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d32f2f; /* Rojo oscuro */
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.btn-pdf:hover {
    background-color: #ffebee; /* Fondo rojo muy claro */
    color: #c62828; /* Rojo más intenso */
}

.btn-pdf i {
    font-size: 1.8rem; /* Icono más grande */
    line-height: 1;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--water-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

/* Estilos actualizados para el logo con imagen */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 40px;
  width: auto;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--water-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--water-blue);
  transition: width 0.3s ease;
}

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

.header-cta {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 8px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--water-light);
}

.nav-mobile.active {
  display: flex;
}

.mobile-cta {
  margin-top: 8px;
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative; /* Necesario para posicionar el patrón de fondo */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Fondo base de la sección */
  background: linear-gradient(135deg, var(--water-light), var(--water-blue), var(--water-dark));
  z-index: 1;
}

/* Pseudo-elemento para crear la trama de gotas */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* La imagen que se usará como patrón */
  background-image: url('images/emapa-icon-white2.png');
  background-repeat: repeat; /* Para que la imagen se repita */
  background-size: 120px;    /* Tamaño de cada gota en la trama (puedes ajustarlo) */
  opacity: 0.1;             /* Hacemos la trama muy sutil (puedes ajustarlo) */
  z-index: -1;              /* La ponemos detrás del contenido del hero */
}

.hero-background {
  /* Ya no necesitamos el fondo aquí, porque está en el pseudo-elemento .hero::before */
  display: none; 
}

/* El resto de tus estilos para .hero-content, .hero-title, etc., permanecen igual */

/* Elementos decorativos andinos en el hero */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.andean-pattern {
  position: absolute;
  width: 60px;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    var(--andean-red) 0px,
    var(--andean-red) 4px,
    var(--andean-orange) 4px,
    var(--andean-orange) 8px,
    var(--andean-yellow) 8px,
    var(--andean-yellow) 12px,
    var(--andean-green) 12px,
    var(--andean-green) 16px
  );
  animation: float 8s ease-in-out infinite;
}

.pattern-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.pattern-2 {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.pattern-3 {
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
}

/* Animales andinos pixel art */
.llama-pixel {
  position: absolute;
  top: 30%;
  right: 20%;
  width: 40px;
  height: 50px;
  /* Cabeza */
  background: radial-gradient(circle at 20px 15px, var(--gray-300) 8px, transparent 8px), /* Cuerpo */
    linear-gradient(var(--gray-400) 20px, var(--gray-300) 20px, var(--gray-300) 35px, transparent 35px);
  background-size: 40px 50px;
  animation: float 10s ease-in-out infinite;
  animation-delay: 1s;
}

.condor-pixel {
  position: absolute;
  top: 15%;
  left: 25%;
  width: 50px;
  height: 30px;
  /* Cuerpo */
  background: radial-gradient(ellipse at center, var(--gray-800) 15px, transparent 15px), /* Alas */
    linear-gradient(90deg, var(--gray-700) 10px, transparent 10px, transparent 40px, var(--gray-700) 40px);
  background-size: 50px 30px;
  animation: float 12s ease-in-out infinite;
  animation-delay: 3s;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.bubble-1 {
  width: 128px;
  height: 128px;
  top: 80px;
  left: 40px;
  animation-delay: 0s;
}

.bubble-2 {
  width: 96px;
  height: 96px;
  top: 160px;
  right: 80px;
  animation-delay: 1s;
}

.bubble-3 {
  width: 160px;
  height: 160px;
  bottom: 128px;
  left: 25%;
  animation-delay: 2s;
}

.bubble-4 {
  width: 112px;
  height: 112px;
  bottom: 80px;
  right: 33%;
  animation-delay: 0.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.2;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--yellow);
}

.hero-description {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  fill: var(--gray-50);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background: var(--gray-50);
}

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

.about-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  margin-top: 32px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.7;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-700);
  font-weight: 500;
}

.value-item i {
  color: var(--green);
  font-size: 1.2rem;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background: var(--white);
}

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

.service-card {
  background: var(--white);
  padding: 40px 24px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--water-light);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--water-light), var(--water-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--water-light), var(--water-blue), var(--water-dark));
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background: var(--gray-50);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item i {
  color: var(--water-blue);
  font-size: 1.5rem;
  margin-top: 4px;
}

.contact-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--gray-600);
}

.contact-map {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--gray-500);
}

.map-placeholder i {
  font-size: 4rem;
  color: var(--water-blue);
  margin-bottom: 20px;
}

.map-placeholder h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.map-placeholder p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-section p {
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--water-light);
}

/* Footer logo actualizado */
.footer-logo {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-logo-image {
  height: 60px;
  width: auto;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--gray-300);
}

.footer-contact i {
  color: var(--water-light);
  width: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 20px;
  text-align: center;
  color: var(--gray-400);
}

/* Settings Button - ahora es solo un enlace */
.settings-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--gray-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: rotate 4s linear infinite;
}

.settings-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  background: var(--water-blue);
  animation-play-state: paused;
  color: var(--white);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Customer Service Button - nuevo botón con configuraciones */
.customer-service-btn {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: bounce 3s ease-in-out infinite;
}

.customer-service-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  background: var(--water-blue);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Panel de configuraciones */
.settings-panel {
  position: fixed;
  bottom: 170px;
  left: 30px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  width: 280px;
  z-index: 1001;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.settings-panel.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.settings-panel h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-item:last-child {
  margin-bottom: 0;
}

.setting-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.setting-buttons {
  display: flex;
  gap: 8px;
}

.setting-btn {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-700);
}

.setting-btn:hover {
  background: var(--gray-50);
  border-color: var(--water-blue);
}

.setting-btn.active {
  background: var(--water-blue);
  color: var(--white);
  border-color: var(--water-blue);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-300);
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--water-blue);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Estilos para contacto con enlace a Google Maps */
.map-link {
  color: var(--water-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.map-link:hover {
  color: var(--water-dark);
  text-decoration: underline;
}

.map-btn {
  display: inline-block;
  background: var(--water-blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.map-btn:hover {
  background: var(--water-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Nueva sección de proyectos */
.projects {
  padding: var(--section-padding);
  background: var(--white);
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.carousel-slide {
  display: none;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 40px 30px 30px;
}

.slide-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}

/* Nueva sección de noticias */
.news {
  padding: var(--section-padding);
  background: var(--gray-50);
}

.news-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

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

.news .carousel-slide img {
  height: 300px;
}

.news .slide-content {
  background: var(--white);
  color: var(--gray-800);
  position: static;
  padding: 25px;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.news .slide-content h3 {
  color: var(--primary-blue);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.news .slide-content p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.news-date {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-desktop,
  .header-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .whatsapp-btn,
  .settings-btn,
  .customer-service-btn {
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .whatsapp-btn {
    right: 20px;
  }

  .settings-btn {
    left: 20px;
  }

  .customer-service-btn {
    bottom: 80px;
    left: 20px;
  }

  .settings-panel {
    bottom: 140px;
    left: 20px;
    width: 260px;
  }

  /* Responsive para carruseles */
  .carousel-slide img {
    height: 250px;
  }

  .news .carousel-slide img {
    height: 200px;
  }

  .slide-content {
    padding: 30px 20px 20px;
  }

  .slide-content h3 {
    font-size: 1.4rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .contact-map {
    padding: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  /* Responsive para carruseles */
  .carousel-slide img {
    height: 200px;
  }

  .news .carousel-slide img {
    height: 150px;
  }

  .slide-content {
    padding: 20px 15px 15px;
  }

  .slide-content h3 {
    font-size: 1.2rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }
}

/* Animaciones adicionales */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Estilos para modo oscuro */
.dark-mode {
  background: var(--gray-900);
  color: var(--gray-100);
}

.dark-mode .header {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: var(--gray-700);
}

.dark-mode .service-card,
.dark-mode .contact-map,
.dark-mode .news .slide-content,
.dark-mode .settings-panel {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

.dark-mode .service-card h3,
.dark-mode .contact-item h4,
.dark-mode .news .slide-content h3,
.dark-mode .settings-panel h3 {
  color: var(--gray-100);
}

.dark-mode .service-card p,
.dark-mode .contact-item p,
.dark-mode .news .slide-content p {
  color: var(--gray-300);
}

.dark-mode .about {
  background: var(--gray-800);
}

.dark-mode .contact {
  background: var(--gray-800);
}

.dark-mode .news {
  background: var(--gray-800);
}

/* Control de animaciones */
.no-animations * {
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
}

/* Tamaños de fuente */
.font-size-small {
  font-size: 14px;
}

.font-size-small .hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.font-size-small .section-header h2 {
  font-size: 2rem;
}

.font-size-large {
  font-size: 18px;
}

.font-size-large .hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
}

.font-size-large .section-header h2 {
  font-size: 3rem;
}

/* Estilos adicionales para elementos andinos */
.andean-plant {
  position: absolute;
  width: 30px;
  height: 40px;
  /* Hojas */
  background: radial-gradient(ellipse at 15px 10px, var(--andean-green) 8px, transparent 8px),
    radial-gradient(ellipse at 5px 15px, var(--andean-green) 6px, transparent 6px),
    radial-gradient(ellipse at 25px 15px, var(--andean-green) 6px, transparent 6px), /* Tallo */
    linear-gradient(var(--andean-green) 35px, transparent 35px);
  background-size: 30px 40px;
  animation: sway 4s ease-in-out infinite;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states para accesibilidad */
.btn:focus,
.nav-link:focus,
.carousel-btn:focus,
.dot:focus,
.settings-btn:focus,
.customer-service-btn:focus,
.whatsapp-btn:focus {
  outline: 2px solid var(--water-blue);
  outline-offset: 2px;
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .carousel-btn.prev {
    left: 5px;
  }

  .carousel-btn.next {
    right: 5px;
  }
}

/* Estilos para impresión */
@media print {
  .header,
  .whatsapp-btn,
  .settings-btn,
  .customer-service-btn,
  .settings-panel,
  .carousel-btn,
  .carousel-dots {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-background,
  .hero-pattern {
    display: none;
  }

  .hero-content {
    color: var(--gray-900) !important;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Estilos para la sección del botón CTA */
.cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background: var(--gray-100);
  border-radius: var(--border-radius-lg);
}

.cta-section .btn-lg {
  padding: 16px 32px;
  font-size: 1.2rem;
  gap: 12px;
}

.cta-section p {
  margin-top: 16px;
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* Estilos para el Modal de Términos y Condiciones */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: slide-down 0.4s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.terms-content {
  max-height: 300px;
  overflow-y: auto;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 15px 0;
  margin-bottom: 20px;
}

.terms-content p {
  margin-bottom: 10px;
}

.modal-buttons {
  text-align: right;
}

/* --- Herramientas Section --- */
.tools-section {
    padding: var(--section-padding);
    background: var(--gray-50);
    position: relative;
}

/* Estilo para deshabilitar la sección de herramientas */
.tools-section.disabled {
    pointer-events: none;
}

.tools-section.disabled::before {
    content: 'Para usar estas herramientas, por favor acepte los términos y condiciones.';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 40px;
}

.tab-link {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-500);
    position: relative;
    transition: color 0.3s ease;
}

.tab-link.active {
    color: var(--primary-blue);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fade-in 0.5s;
}

.tab-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 24px;
    text-align: center;
}

/* Guía de Trámites */
.tramites-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tramite-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.tramite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: var(--white);
    transition: background-color 0.2s ease;
}

.tramite-header:hover {
    background-color: var(--gray-50);
}

.tramite-header h4 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 0;
}

.tramite-header i {
    transition: transform 0.3s ease;
}

.tramite-body {
    padding: 0 20px 20px;
    display: none;
    border-top: 1px solid var(--gray-200);
}

.tramite-body p {
    margin-bottom: 12px;
}

.tramite-body ul {
    list-style-position: inside;
    padding-left: 10px;
}

.tramite-body li {
    margin-bottom: 8px;
}

/* Calculadora */
#calculator-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.calculator-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.calculator-result {
    margin-top: 30px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.calculator-result h4 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.calculator-result .loading,
.calculator-result .error {
    font-weight: 500;
    padding: 20px;
    border-radius: var(--border-radius);
}

.calculator-result .loading {
    color: var(--gray-600);
}

.calculator-result .error {
    color: var(--red);
    background-color: rgba(239, 68, 68, 0.1);
}

.result-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span:first-child {
    color: var(--gray-600);
}

.detail-item span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

.result-total {
    margin-top: 20px;
    text-align: center;
}

.result-total p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.result-total h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-top: 8px;
}

.calculator-result small {
    display: block;
    margin-top: 20px;
    color: var(--gray-500);
    font-style: italic;
}
/* ==================== CALCULADORA MODAL ==================== */
.calculator-float-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(30, 136, 229, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(30, 136, 229, 0.6);
    }
    100% {
        box-shadow: 0 8px 20px rgba(30, 136, 229, 0.4);
    }
}

.calculator-float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 30px rgba(30, 136, 229, 0.6);
    animation: none;
}

.calculator-float-btn i {
    color: white;
    font-size: 24px;
}

/* Modal Overlay */
.calculator-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.calculator-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Container */
.calculator-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.calculator-modal-overlay.active .calculator-modal {
    transform: scale(1);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.calc-modal-header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.calc-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-modal-header p {
    opacity: 0.9;
    font-size: 14px;
    margin: 0;
}

.close-calc-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-calc-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-calc-modal i {
    color: white;
    font-size: 20px;
}

/* Modal Body */
.calc-modal-body {
    padding: 30px;
}

.calc-form-group {
    margin-bottom: 25px;
}

.calc-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: #f8faff;
}

.calc-form-control:focus {
    outline: none;
    border-color: #1e88e5;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

select.calc-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e88e5' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Checkbox Ley 1886 */
.calc-descuento-ley {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    border-left: 4px solid #1e88e5;
}

.calc-descuento-ley.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.calc-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.calc-checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #1e88e5;
    flex-shrink: 0;
    margin-top: 2px;
}

.calc-checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

/* Botón Calcular */
.calc-btn-calculate {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calc-btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.4);
}

.calc-btn-calculate:active {
    transform: translateY(0);
}

.calc-btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Resultado */
.calc-result-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    display: none;
}

.calc-result-container.show {
    display: block;
    animation: slideDown 0.4s ease;
}

.calc-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #1e88e5;
}

.calc-result-header i {
    font-size: 28px;
}

.calc-result-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.calc-result-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 136, 229, 0.2);
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-label {
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.calc-result-value {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.calc-total-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calc-total-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.calc-total-amount {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.calc-result-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calc-result-note i {
    color: #1e88e5;
}

/* Loading State */
.calc-loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.calc-loading.show {
    display: block;
}

.calc-spinner {
    border: 4px solid rgba(30, 136, 229, 0.1);
    border-top: 4px solid #1e88e5;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calc-loading p {
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .calc-modal-header h2 {
        font-size: 22px;
    }

    .calc-modal-body {
        padding: 20px;
    }

    .calculator-float-btn {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .calculator-float-btn i {
        font-size: 20px;
    }

    .calc-total-amount {
        font-size: 32px;
    }

    .calculator-modal {
        margin: 10px;
    }
}

/* Scrollbar personalizado */
.calculator-modal::-webkit-scrollbar {
    width: 8px;
}

.calculator-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 20px 20px 0;
}

.calculator-modal::-webkit-scrollbar-thumb {
    background: #1e88e5;
    border-radius: 4px;
}

.calculator-modal::-webkit-scrollbar-thumb:hover {
    background: #1565c0;
}

/* Error State */
.calc-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.calc-error.show {
    display: flex;
}

.calc-error i {
    font-size: 20px;
}

/* ======================================= */
/* === MEJORAS Y COMPLEMENTOS MODO OSCURO === */
/* ======================================= */

/* --- Fondos de secciones principales --- */
.dark-mode .about,
.dark-mode .contact,
.dark-mode .news,
.dark-mode .tools-section,
.dark-mode .projects,
.dark-mode .cta-section {
    background: var(--gray-900);
    border-color: var(--gray-700);
}

/* --- Colores de texto generales --- */
.dark-mode .section-header h2,
.dark-mode .about-content h3,
.dark-mode .service-card h3,
.dark-mode .contact-item h4,
.dark-mode .news .slide-content h3,
.dark-mode .settings-panel h3,
.dark-mode .tab-content h3,
.dark-mode .slide-content h3,
.dark-mode .map-placeholder h4 {
    color: var(--gray-100);
}

.dark-mode .section-header p,
.dark-mode .about-content p,
.dark-mode .service-card p,
.dark-mode .contact-item p,
.dark-mode .news .slide-content p,
.dark-mode .tramite-body p,
.dark-mode .calculator-result small,
.dark-mode .slide-content p,
.dark-mode .map-placeholder p {
    color: var(--gray-400);
}

/* --- Tarjetas y contenedores --- */
.dark-mode .service-card,
.dark-mode .contact-map,
.dark-mode .news .slide-content,
.dark-mode .settings-panel,
.dark-mode .tramite-item,
.dark-mode .calculator-form,
.dark-mode .calculator-result {
    background: var(--gray-800);
    border-color: var(--gray-700);
}
.dark-mode .tramite-header:hover {
    background-color: var(--gray-700);
}

/* --- Modales generales (Trámites, Términos, etc.) --- */
.dark-mode .modal-content {
    background: var(--gray-800);
    border-color: var(--gray-700);
}
.dark-mode .modal-content h2 {
    color: var(--primary-light);
}
.dark-mode .close-btn {
    color: var(--gray-400);
}
.dark-mode .close-btn:hover {
    color: var(--white);
}

/* --- ESTILOS DEL MODAL DE LA CALCULADORA --- */

/* Contenedor principal del modal */
.dark-mode .calculator-modal {
    background: var(--gray-800);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Cabecera */
.dark-mode .calc-modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #111827 100%);
}

/* Cuerpo y etiquetas de texto */
.dark-mode .calc-form-group label {
    color: var(--gray-300);
}

/* Inputs y Selects */
.dark-mode .calc-form-control {
    background: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-100);
}
.dark-mode .calc-form-control::placeholder {
    color: var(--gray-500);
}
.dark-mode .calc-form-control:focus {
    border-color: var(--water-blue);
    background: var(--gray-700);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Sección de checkboxes (Descuento y Alcantarillado) */
.dark-mode .calc-descuento-ley {
    background: rgba(30, 41, 59, 0.5);
    border-left-color: var(--water-blue);
}
.dark-mode .calc-checkbox-wrapper label {
    color: var(--gray-300);
}
.dark-mode .calc-checkbox-wrapper small {
    color: var(--gray-400) !important;
}

/* Contenedor de resultados */
.dark-mode .calc-result-container {
    background: var(--gray-900);
}
.dark-mode .calc-result-header {
    color: var(--water-light);
}
.dark-mode .calc-result-label {
    color: var(--gray-400);
}
.dark-mode .calc-result-value {
    color: var(--gray-200);
}
.dark-mode .calc-result-item {
    border-bottom-color: rgba(96, 165, 250, 0.2);
}

/* Sección del total */
.dark-mode .calc-total-section {
    background: var(--gray-800);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.dark-mode .calc-total-label {
    color: var(--gray-400);
}

/* Nota de resultado */
.dark-mode .calc-result-note {
    background: rgba(17, 24, 39, 0.7);
    color: var(--gray-400);
}
.dark-mode .calc-result-note i {
    color: var(--water-light);
}

/* Mensaje de error */
.dark-mode .calc-error {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

/* Video Section */
.video-section {
  padding: var(--section-padding);
  background: var(--white);
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  height: 0;
  overflow: hidden;
  max-width: 700px; /* Max width for the video */
  margin: 0 auto; /* Center the video container */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive adjustments for video section */
@media (max-width: 768px) {
    .video-section {
        padding: 40px 0; /* Adjust padding for smaller screens */
    }
}