/* ==========================================
   VARIABLES GLOBALES
   ========================================== */
/* Estas variables se utilizan en todo el sitio para mantener consistencia en colores, tipografía y animaciones */

:root {
  /* Colores principales */
  --color-primary-light: #776DF8;
  --color-primary: #2267D8;
  --color-dark: #001943;
  --color-dark-variant: #002060;
  --color-light: #FFFFFF;
  --color-gray: #f0f4f8;
  
  /* Colores de texto */
  --color-text: #333;
  --color-text-light: #e0eafc;
  
  /* Tipografía */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  
  /* Animaciones y dimensiones */
  --transition-speed: 400ms;
  --header-height: 70px;
  
  /* Variables de accesibilidad */
  --focus-outline: 3px solid #4d90fe;
}

/* ==========================================
   RESET Y ESTILOS BASE
   ========================================== */
/* Estos estilos se aplican a todas las páginas HTML para normalizar el comportamiento entre navegadores */

*, *::before, *::after {
  /* Modelo de caja */
  box-sizing: border-box;

  /* Márgenes */
  margin: 0;

  /* Relleno */
  padding: 0;
}

html {
  /* Comportamiento de desplazamiento */
  scroll-behavior: smooth;
  /* Accesibilidad: asegura que el tamaño de texto se pueda ajustar */
  font-size: 100%;
}

body {
  /* Fondos */
  background-color: var(--color-light);

  /* Tipografía */
  font-family: var(--font-family);
  line-height: 1.6;

  /* Colores y efectos */
  color: var(--color-text);

  /* Mejora de renderizado de texto */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Accesibilidad: asegura que el foco sea visible */
  &:focus-visible {
    outline: var(--focus-outline);
  }
}

/* ==========================================
   TIPOGRAFÍA Y ELEMENTOS BÁSICOS
   ========================================== */
/* Estos estilos definen la apariencia de los elementos básicos en todas las páginas */

h1, h2, h3 {
  /* Tipografía */
  line-height: 1.2;
  font-weight: 700;

  /* Colores y efectos */
  color: var(--color-dark);
}

a {
  /* Tipografía */
  text-decoration: none;

  /* Colores y efectos */
  color: var(--color-primary);

  /* Transiciones y animaciones */
  transition: color var(--transition-speed) ease;
  
  /* Accesibilidad: estado de foco visible */
  &:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
  }
}

a:hover {
  /* Colores y efectos */
  color: var(--color-primary-light);
}

ul {
  /* Listas */
  list-style: none;

  /* Dimensiones */
  max-width: 100%;
  height: auto;
  
  /* Accesibilidad: texto alternativo */
  &[alt] {
    color: var(--color-text);
  }
}

/* ==========================================
   LAYOUT Y CONTENEDORES
   ========================================== */
/* Estos estilos definen la estructura principal del sitio */

.container {
  /* Dimensiones */
  max-width: 1200px;

  /* Márgenes */
  margin: 0 auto;

  /* Relleno */
  padding: 0 1.5rem;
}

/* ==========================================
   HEADER Y NAVEGACIÓN
   ========================================== */
/* Estos estilos se aplican al encabezado y la navegación en todas las páginas */

.header {
  /* Posicionamiento */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  /* Dimensiones */
  width: 100%;

  /* Fondos */
  background-color: rgba(0, 25, 67, 0.8);

  /* Transiciones y animaciones */
  transition: background-color var(--transition-speed) ease;

  /* Efectos visuales */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Compatibilidad con Safari */
}

.header.scrolled {
  /* Fondos */
  background-color: rgba(0, 25, 67, 0.95);
}

.header__container {
  /* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  justify-content: space-between;
  align-items: center;

  /* Dimensiones */
  height: var(--header-height);
}

.header__logo {
  /* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  align-items: center;
  gap: 0.75rem;

  /* Tipografía */
  font-weight: 600;
  font-size: 1.25rem;

  /* Colores y efectos */
  color: var(--color-light);
  opacity: 1;

  /* Transiciones y animaciones */
  animation: fadeInFromLeft 1s ease-out;

  /* Otras propiedades */
  transform: translateX(0);
  
  /* Accesibilidad */
  &:focus {
    outline: var(--focus-outline);
    outline-offset: 4px;
  }
}

.header__logo img {
  /* Dimensiones */
  height: 40px;
  
  /* Accesibilidad */
  /* Asegura que el logo tenga un texto alternativo adecuado */
}

/* Navegación principal - Aplicada en todas las páginas */
.nav__list {
  /* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  gap: 2.5rem;
}

.nav__item {
  /* Colores y efectos */
  opacity: 1;

  /* Transiciones y animaciones */
  animation: fadeInFromTop 0.5s ease-out forwards;

  /* Otras propiedades */
  transform: translateY(0);
}

.nav__item:nth-child(1) {
  /* Animación escalonada */
  animation-delay: 0.5s;
}

.nav__item:nth-child(2) {
  /* Animación escalonada */
  animation-delay: 0.6s;
}

.nav__item:nth-child(3) {
  /* Animación escalonada */
  animation-delay: 0.7s;
}

.nav__item:nth-child(4) {
  /* Animación escalonada */
  animation-delay: 0.8s;
}

.nav__link {
  /* Posicionamiento */
  position: relative;

  /* Relleno */
  padding: 0.5rem 0;

  /* Tipografía */
  font-weight: 500;

  /* Colores y efectos */
  color: var(--color-text-light);
  
  /* Accesibilidad */
  &:focus {
    outline: var(--focus-outline);
    outline-offset: 4px;
  }
  
  /* Mejora para lectores de pantalla */
  &.active {
    aria-current: "page";
  }
}

.nav__link::after {
  /* Posicionamiento */
  position: absolute;
  bottom: -2px;
  left: 0;

  /* Dimensiones */
  width: 100%;
  height: 2px;

  /* Fondos */
  background-image: linear-gradient(to right, var(--color-primary-light), var(--color-primary));

  /* Transiciones y animaciones */
  transition: transform var(--transition-speed) ease;

  /* Otras propiedades */
  content: '';
  transform: scaleX(0);
  transform-origin: right;}

.nav__link:hover, .nav__link.active {
/* Colores y efectos */
  color: var(--color-light);}

.nav__link:hover::after, .nav__link.active::after {
/* Otras propiedades */
  transform: scaleX(1);
  transform-origin: left;}

/* Selector de idiomas */
.nav__item--language {
  position: relative;
}

.language-selector {
  position: relative;
  display: inline-block;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--color-text-light);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  backdrop-filter: blur(10px);
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-light);
}

.language-btn:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.language-current {
  font-size: 0.9rem;
  font-weight: 600;
}

.language-arrow {
  transition: transform var(--transition-speed) ease;
}

.language-btn[aria-expanded="true"] .language-arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: var(--color-light);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.language-dropdown--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
  text-align: left;
}

.language-option:hover {
  background-color: var(--color-gray);
}

.language-option:focus {
  outline: none;
  background-color: var(--color-primary);
  color: var(--color-light);
}

.language-option.selected {
  background-color: var(--color-primary);
  color: var(--color-light);
  font-weight: 600;
}

.language-option.selected:hover {
  background-color: var(--color-primary-dark, #1a365d);
}

/* Ocultar el widget de Google Translate por defecto */
.goog-te-banner-frame,
.goog-te-gadget {
  display: none !important;
}

body {
  top: 0 !important;
}

/* Botón hamburguesa circular animado - Visible solo en dispositivos móviles */
.nav__toggle {
  /* Posicionamiento */
  z-index: 110;
  position: relative;

  /* Modelo de caja */
  display: none;

  /* Dimensiones */
  width: 50px;
  height: 50px;

  /* Relleno */
  padding: 0;

  /* Bordes */
  border: none;

  /* Fondos */
  background: transparent;

  /* Interactividad */
  cursor: pointer;
  
  /* Accesibilidad */
  &:focus {
    outline: var(--focus-outline);
  }
}

.nav__toggle .toggle-btn {
  /* Modelo de caja */
  display: block;

  /* Dimensiones */
  width: 100%;
  height: 100%;

  /* Posicionamiento */
  position: relative;

  /* Fondos */
  background: linear-gradient(135deg, var(--color-primary), var(--color-dark));

  /* Bordes */
  border-radius: 50%;

  /* Interactividad */
  cursor: pointer;

  /* Transiciones y animaciones */
  transition: transform 1.25s cubic-bezier(.8, 0, .2, 1), background 0.25s;

  /* Colores y efectos */
  box-shadow: 0 3px 15px -2px rgba(0,0,0,0.3), 
              inset 0 -2px 3px -1px rgba(0,0,0,0.2), 
              0 -3px 10px -1px rgba(34,103,216,0.3), 
              inset 0 2px 3px -1px rgba(255,255,255,0.2);
}

.nav__toggle:hover .toggle-btn {
  /* Fondos */
  background: linear-gradient(135deg, #1a52b8, #000d2a);
}

.nav__toggle .toggle-btn:after,
.nav__toggle .toggle-btn:before {
  /* Otras propiedades */
  content: '';

  /* Posicionamiento */
  position: absolute;

  /* Fondos */
  background-color: var(--color-light);

  /* Bordes */
  border-radius: 2px;

  /* Transiciones y animaciones */
  transition: transform 1.25s cubic-bezier(.8, 0, .2, 1);
}

.nav__toggle .toggle-btn:after {
  /* Dimensiones */
  width: 20px;
  height: 3px;

  /* Posicionamiento */
  top: 23px;
  left: 15px;
}

.nav__toggle .toggle-btn:before {
  /* Dimensiones */
  width: 3px;
  height: 20px;

  /* Posicionamiento */
  top: 15px;
  left: 23px;
}

/* Animación cuando el menú está abierto */
.nav__toggle[aria-expanded="true"] .toggle-btn:after {
  /* Otras propiedades */
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .toggle-btn:before {
  /* Otras propiedades */
  transform: rotate(45deg);
}

/* Estado del menú cuando está abierto */
body.nav-open {
  /* Bloquear scroll del contenido de fondo */
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.nav-open .nav__toggle,
.nav.active .nav__toggle {
  /* El atributo aria-expanded se maneja con JavaScript */
}

.section {
/* Modelo de caja */
  display: none;

  /* Relleno */
  padding: calc(var(--header-height) + 2rem) 0 2rem;}

.section.section--active {
/* Modelo de caja */
  display: block;

  /* Transiciones y animaciones */
  animation: fadeIn 0.8s ease-out;}

#inicio {
/* Relleno */
  padding: 0;}

#sobre-nosotros {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    padding: 6rem 0;
    animation: fadeInUp 1.2s ease-out;
    position: relative;
    overflow: hidden;
}

/* Animaciones para sobre-nosotros */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typeWriter {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: white;
    }
}

/* Efecto parallax sutil en el fondo */
#sobre-nosotros::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.section__title {
/* Márgenes */
  margin-bottom: 1rem;

  /* Tipografía */
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  text-align: justify;}

.section__subtitle {
/* Dimensiones */
  max-width: 700px;

  /* Márgenes */
  margin: 0 auto 4rem;

  /* Tipografía */
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  text-align: center;

  /* Colores y efectos */
  color: #555;}

.fade-in {
/* Colores y efectos */
  opacity: 0;

  /* Transiciones y animaciones */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

  /* Otras propiedades */
  transform: translateY(30px);}

.fade-in.is-visible {
/* Colores y efectos */
  opacity: 1;

  /* Otras propiedades */
  transform: translateY(0);}

.hero {
/* Posicionamiento */
  position: relative;

  /* Modelo de caja */
  display: flex;
  overflow: hidden;

  /* Flexbox y Grid */
  align-items: center;
  justify-content: center;

  /* Dimensiones */
  height: 100vh;

  /* Tipografía */
  text-align: center;

  /* Colores y efectos */
  color: var(--color-light);}

.hero__video-background {
/* Posicionamiento */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;

  /* Dimensiones */
  width: 100%;
  height: 100%;

  /* Modelo de caja */
  overflow: hidden;

  /* Fondos de respaldo */
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  background-size: cover;
  background-position: center;}

.hero__video {
/* Posicionamiento */
  position: absolute;
  top: 50%;
  left: 50%;

  /* Dimensiones */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;

  /* Otras propiedades */
  object-fit: cover;
  transform: translate(-50%, -50%);}

.hero__overlay {
/* Posicionamiento */
  position: absolute;
  top: 0;
  left: 0;

  /* Dimensiones */
  width: 100%;
  height: 100%;

  /* Fondos */
  background: transparent;}

.hero__content {
/* Posicionamiento */
  position: relative;
  z-index: 10;}

.hero__title {
/* Márgenes */
  margin-bottom: 1rem;

  /* Tipografía */
  font-size: clamp(2.5rem, 6vw, 4rem);
  text-align: center;

  /* Colores y efectos */
  color: var(--color-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  opacity: 1;

  /* Transiciones y animaciones */
  animation: fadeInFromBottom 1s ease-out 0.5s forwards;}

.hero__subtitle {
/* Dimensiones */
  max-width: 800px;

  /* Márgenes */
  margin-bottom: 2.5rem;
  margin-left: auto;
  margin-right: auto;

  /* Tipografía */
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 300;

  /* Colores y efectos */
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  opacity: 0;

  /* Transiciones y animaciones */
  animation: fadeInFromBottom 1s ease-out 0.8s forwards;

  /* Otras propiedades */
  transform: translateY(20px);}

.hero__cta-group {
/* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  justify-content: center;
  gap: 1.5rem;

  /* Colores y efectos */
  opacity: 1;

  /* Transiciones y animaciones */
  animation: fadeInFromBottom 1s ease-out 1.1s forwards;}

/* Video background overlay for better text readability */
.hero__video-overlay {
/* Posicionamiento */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  /* Dimensiones */
  width: 100%;
  height: 100%;

  /* Fondos */
  background: transparent;}

/* Solar animation styles removed - replaced with video background */

.btn {
/* Posicionamiento */
  position: relative;

  /* Modelo de caja */
  display: inline-block;
  overflow: hidden;

  /* Relleno */
  padding: 0.9rem 2.2rem;

  /* Bordes */
  border-radius: 50px;
  border: 2px solid transparent;

  /* Tipografía */
  font-weight: 600;
  text-transform: uppercase;

  /* Transiciones y animaciones */
  transition: all var(--transition-speed) ease;

  /* Interactividad */
  cursor: pointer;

  /* Otras propiedades */
  letter-spacing: 1px;}

.btn--primary {
/* Fondos */
  background-image: linear-gradient(to right, var(--color-primary-light), var(--color-primary));

  /* Colores y efectos */
  color: var(--color-light);
  box-shadow: 0 4px 15px rgba(34, 103, 216, 0.3);}

.btn--primary:hover {
/* Colores y efectos */
  box-shadow: 0 8px 20px rgba(34, 103, 216, 0.4);

  /* Otras propiedades */
  transform: translateY(-4px);}

.btn--secondary {
/* Bordes */
  border-color: var(--color-light);

  /* Fondos */
  background-color: transparent;

  /* Colores y efectos */
  color: var(--color-light);}

.btn--secondary:hover {
/* Fondos */
  background-color: var(--color-light);

  /* Colores y efectos */
  color: var(--color-dark);

  /* Otras propiedades */
  transform: translateY(-4px);}

.btn--tertiary {
/* Relleno */
  padding: 0.5rem 1.5rem;

  /* Bordes */
  border-color: var(--color-primary);
  border-radius: 5px;

  /* Fondos */
  background-color: transparent;

  /* Tipografía */
  font-weight: 500;

  /* Colores y efectos */
  color: var(--color-primary);}

.btn--tertiary:hover {
/* Fondos */
  background-color: var(--color-primary);

  /* Colores y efectos */
  color: var(--color-light);}

.projects-grid {
/* Modelo de caja */
  display: grid;

  /* Flexbox y Grid */
  gap: 2.5rem;

  /* Otras propiedades */
  grid-template-columns: repeat(3, 1fr);}

.card {
/* Modelo de caja */
  overflow: hidden;
  display: flex;

  /* Flexbox y Grid */
  flex-direction: column;

  /* Bordes */
  border-radius: 12px;

  /* Fondos */
  background-color: var(--color-light);

  /* Colores y efectos */
  box-shadow: 0 5px 25px rgba(0, 32, 96, 0.08);

  /* Transiciones y animaciones */
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;}

.card:hover {
/* Colores y efectos */
  box-shadow: 0 12px 35px rgba(0, 32, 96, 0.12);

  /* Otras propiedades */
  transform: translateY(-10px) scale(1.02);}

.card__img-container {
/* Posicionamiento */
  position: relative;

  /* Modelo de caja */
  overflow: hidden;}

.card__img {
/* Dimensiones */
  width: 100%;
  height: 220px;

  /* Transiciones y animaciones */
  transition: transform 0.6s ease;

  /* Otras propiedades */
  object-fit: cover;}

.card:hover .card__img {
/* Otras propiedades */
  transform: scale(1.1);}

.card__body {
/* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  flex-grow: 1;
  flex-direction: column;

  /* Relleno */
  padding: 1.5rem;

  /* Tipografía */
  text-align: justify;}

.card__title {
/* Márgenes */
  margin-bottom: 0.5rem;

  /* Tipografía */
  font-size: 1.3rem;
  text-align: justify;}

.card__meta {
/* Márgenes */
  margin-bottom: 1rem;

  /* Tipografía */
  font-size: 0.9rem;

  /* Colores y efectos */
  color: #777;}

.card__text {
/* Flexbox y Grid */
  flex-grow: 1;

  /* Márgenes */
  margin-bottom: 1.5rem;

  /* Tipografía */
  text-align: justify;}

.about-us__grid {
/* Modelo de caja */
  display: grid;

  /* Flexbox y Grid */
  gap: 3rem;

  /* Márgenes */
  margin-bottom: 4rem;

  /* Otras propiedades */
  grid-template-columns: 1fr 1fr;}

.about-us__item h3 {
/* Márgenes */
  margin-bottom: 1rem;

  /* Tipografía */
  font-size: 1.5rem;

  /* Colores y efectos */
  color: var(--color-dark);}

.team-grid {
/* Modelo de caja */
  display: grid;

  /* Flexbox y Grid */
  gap: 2rem;

  /* Tipografía */
  text-align: center;

  /* Otras propiedades */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));}

.team-member__img {
/* Dimensiones */
  width: 150px;
  height: 150px;

  /* Márgenes */
  margin: 0 auto 1rem;

  /* Bordes */
  border-radius: 50%;
  border: 5px solid var(--color-light);

  /* Colores y efectos */
  box-shadow: 0 0 0 3px var(--color-primary);

  /* Otras propiedades */
  object-fit: cover;}

.team-member__name {
/* Tipografía */
  font-weight: 600;
  font-size: 1.1rem;}

.team-member__role {
/* Tipografía */
  font-size: 0.9rem;

  /* Colores y efectos */
  color: #666;}

.partners-grid {
/* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;

  /* Márgenes */
  margin-top: 2rem;

  /* Colores y efectos */
  opacity: 0.7;

  /* Transiciones y animaciones */
  transition: all var(--transition-speed) ease;

  /* Otras propiedades */
  filter: grayscale(100%) brightness(1.2);}

.partners-grid:hover {
/* Colores y efectos */
  opacity: 1;

  /* Otras propiedades */
  filter: none;}

.contact__grid {
/* Modelo de caja */
  display: grid;

  /* Flexbox y Grid */
  gap: 3rem;

  /* Relleno */
  padding: 3rem;

  /* Bordes */
  border-radius: 12px;

  /* Fondos */
  background: var(--color-light);

  /* Colores y efectos */
  box-shadow: 0 10px 40px rgba(0, 32, 96, 0.1);

  /* Otras propiedades */
  grid-template-columns: 1fr 1.5fr;}

.contact__info h3, .contact__form h3 {
/* Márgenes */
  margin-bottom: 1.5rem;}

.contact__info p {
/* Márgenes */
  margin-bottom: 1rem;}

.contact__map {
/* Modelo de caja */
  overflow: hidden;

  /* Márgenes */
  margin-top: 2rem;

  /* Bordes */
  border-radius: 8px;}

.contact__map iframe {
/* Otras propiedades */
  filter: none;}

.form-group {
/* Posicionamiento */
  position: relative;

  /* Márgenes */
  margin-bottom: 1.5rem;}

.form-group label {
/* Posicionamiento */
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;

  /* Relleno */
  padding: 0 0.25rem;

  /* Fondos */
  background: var(--color-light);

  /* Colores y efectos */
  color: #888;

  /* Transiciones y animaciones */
  transition: all 0.2s ease;

  /* Interactividad */
  pointer-events: none;}

.form-group input, .form-group textarea {
/* Dimensiones */
  width: 100%;

  /* Relleno */
  padding: 0.8rem;

  /* Bordes */
  border: 1px solid #ccc;
  border-radius: 5px;

  /* Tipografía */
  font-family: var(--font-family);
  font-size: 1rem;

  /* Transiciones y animaciones */
  transition: border-color 0.2s ease;}

.form-group input:focus, .form-group textarea:focus, .form-group input:not(:placeholder-shown), .form-group textarea:not(:placeholder-shown) {
/* Bordes */
  border-color: var(--color-primary);

  /* Otras propiedades */
  outline: none;}

.form-group input:focus + label, .form-group textarea:focus + label, .form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label {
/* Posicionamiento */
  top: -0.7rem;

  /* Tipografía */
  font-size: 0.8rem;

  /* Colores y efectos */
  color: var(--color-primary);}

.form-group--checkbox {
/* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  align-items: center;
  gap: 0.5rem;}

.form-group--checkbox input {
/* Dimensiones */
  width: auto;}

.contact__form .btn {
/* Dimensiones */
  width: 100%;

/* Bordes */
  border-radius: 5px;}

/* ==========================================
   ESTILOS MEJORADOS DEL FORMULARIO
   ========================================== */

/* Mensajes de error */
.error-message {
/* Modelo de caja */
  display: block;

/* Dimensiones */
  min-height: 1.2rem;

/* Márgenes */
  margin-top: 0.25rem;

/* Tipografía */
  font-size: 0.8rem;
  font-weight: 500;

/* Colores y efectos */
  color: #e74c3c;

/* Transiciones y animaciones */
  transition: opacity 0.2s ease;

/* Otras propiedades */
  opacity: 0;}

.error-message.show {
/* Otras propiedades */
  opacity: 1;}

/* Hints de campo */
.field-hint {
/* Modelo de caja */
  display: block;

/* Márgenes */
  margin-top: 0.25rem;

/* Tipografía */
  font-size: 0.75rem;

/* Colores y efectos */
  color: #666;

/* Otras propiedades */
  font-style: italic;}

/* Estados de validación */
.form-group input.valid, .form-group textarea.valid {
/* Bordes */
  border-color: #27ae60;

/* Colores y efectos */
  box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.1);}

.form-group input.invalid, .form-group textarea.invalid {
/* Bordes */
  border-color: #e74c3c;

/* Colores y efectos */
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);}

/* Mejoras en el botón de envío */
.btn--submit {
/* Relleno */
  padding: 1rem 2rem;

/* Tipografía */
  font-size: 1.1rem;
  font-weight: 600;

/* Transiciones y animaciones */
  transition: all 0.3s ease;

/* Otras propiedades */
  cursor: pointer;}

.btn--submit:hover {
/* Otras propiedades */
  transform: translateY(-2px);

/* Colores y efectos */
  box-shadow: 0 8px 25px rgba(34, 103, 216, 0.3);}

.btn--submit:disabled {
/* Fondos */
  background-color: #bdc3c7;

/* Bordes */
  border-color: #bdc3c7;

/* Otras propiedades */
  cursor: not-allowed;
  transform: none;

/* Colores y efectos */
  box-shadow: none;}

/* Mejoras en labels obligatorios */
.form-group label::after {
/* Contenido */
  content: '';

/* Márgenes */
  margin-left: 0.25rem;

/* Colores y efectos */
  color: #e74c3c;}

/* Mejoras en checkbox */
.form-group--checkbox label {
/* Posicionamiento */
  position: static;

/* Fondos */
  background: transparent;

/* Colores y efectos */
  color: var(--color-text);

/* Interactividad */
  pointer-events: auto;

/* Otras propiedades */
  cursor: pointer;}

.form-group--checkbox label a {
/* Colores y efectos */
  color: var(--color-primary);

/* Tipografía */
  text-decoration: underline;}

.form-group--checkbox label a:hover {
/* Colores y efectos */
  color: var(--color-primary-light);}

/* Animaciones de carga */
.btn--submit.loading {
/* Interactividad */
  pointer-events: none;}

.btn--submit.loading::after {
/* Contenido */
  content: '';

/* Modelo de caja */
  display: inline-block;

/* Dimensiones */
  width: 16px;
  height: 16px;

/* Márgenes */
  margin-left: 0.5rem;

/* Bordes */
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;

/* Transiciones y animaciones */
  animation: spin 1s linear infinite;}

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

input.invalid, textarea.invalid {
/* Bordes */
  border-color: #e74c3c !important;}

.toast {
/* Posicionamiento */
  position: fixed;
  bottom: -100px;
  left: 50%;
  z-index: 200;

  /* Relleno */
  padding: 1rem 2rem;

  /* Bordes */
  border-radius: 8px;

  /* Fondos */
  background-color: #2ecc71;

  /* Colores y efectos */
  color: var(--color-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);

  /* Transiciones y animaciones */
  transition: bottom var(--transition-speed) ease, transform var(--transition-speed) ease;

  /* Otras propiedades */
  transform: translateX(-50%);}

.toast.show {
/* Posicionamiento */
  bottom: 20px;}

.toast.error {
/* Fondos */
  background-color: #e74c3c;}

.modal {
/* Posicionamiento */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;

  /* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  align-items: center;
  justify-content: center;

  /* Dimensiones */
  width: 100%;
  height: 100%;

  /* Colores y efectos */
  opacity: 0;

  /* Transiciones y animaciones */
  transition: visibility 0s var(--transition-speed), opacity var(--transition-speed) ease;

  /* Otras propiedades */
  visibility: hidden;}

.modal.visible {
/* Colores y efectos */
  opacity: 1;

  /* Otras propiedades */
  visibility: visible;
  transition-delay: 0s;}

.modal__overlay {
/* Posicionamiento */
  position: absolute;
  top: 0;
  left: 0;

  /* Dimensiones */
  width: 100%;
  height: 100%;

  /* Fondos */
  background: rgba(0, 25, 67, 0.85);

  /* Interactividad */
  cursor: pointer;}

.modal__content {
/* Posicionamiento */
  position: relative;

  /* Modelo de caja */
  overflow-y: auto;

  /* Dimensiones */
  width: 90%;
  max-width: 900px;
  max-height: 90vh;

  /* Relleno */
  padding: 2.5rem;

  /* Bordes */
  border-radius: 12px;

  /* Fondos */
  background: var(--color-light);

  /* Transiciones y animaciones */
  transition: transform var(--transition-speed) ease;

  /* Otras propiedades */
  transform: scale(0.9) translateY(20px);}

.modal.visible .modal__content {
/* Otras propiedades */
  transform: scale(1) translateY(0);}

.modal__close {
/* Posicionamiento */
  position: absolute;
  top: 1rem;
  right: 1.5rem;

  /* Bordes */
  border: none;

  /* Fondos */
  background: none;

  /* Tipografía */
  font-size: 2.5rem;

  /* Colores y efectos */
  color: #888;

  /* Interactividad */
  cursor: pointer;}

.modal__title {
/* Márgenes */
  margin-bottom: 1.5rem;

  /* Tipografía */
  font-size: 2rem;
  text-align: justify;}

.modal__body {
/* Modelo de caja */
  display: grid;

  /* Flexbox y Grid */
  gap: 2rem;

  /* Otras propiedades */
  grid-template-columns: 1fr 1fr;

  /* Tipografía */
  text-align: justify;}

.modal__main-image {
/* Dimensiones */
  width: 100%;

  /* Márgenes */
  margin-bottom: 1rem;

  /* Bordes */
  border-radius: 8px;}

.modal__thumbnails {
/* Modelo de caja */
  display: flex;

  /* Flexbox y Grid */
  gap: 0.5rem;}

.modal__thumbnails img {
/* Dimensiones */
  width: 80px;
  height: 60px;

  /* Bordes */
  border-radius: 5px;
  border: 2px solid transparent;

  /* Transiciones y animaciones */
  transition: border-color var(--transition-speed);

  /* Interactividad */
  cursor: pointer;

  /* Otras propiedades */
  object-fit: cover;}

.modal__thumbnails img.active, .modal__thumbnails img:hover {
/* Bordes */
  border-color: var(--color-primary);}

.modal__details h3 {
/* Márgenes */
  margin-bottom: 1rem;}

.modal__specs {
/* Relleno */
  padding-left: 0;

  /* Otras propiedades */
  list-style: none;}

.modal__specs li {
/* Posicionamiento */
  position: relative;

  /* Márgenes */
  margin-bottom: 0.75rem;

  /* Relleno */
  padding-left: 1.5rem;}

.modal__specs li::before {
/* Posicionamiento */
  position: absolute;
  left: 0;

  /* Tipografía */
  font-weight: bold;

  /* Colores y efectos */
  color: var(--color-primary);

  /* Otras propiedades */
  content: '✓';}

/* Distributed Generation Section */
.distributed-generation-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
}

.distributed-generation-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
    margin-top: 4rem;
}

.distributed-generation-left {
    padding-right: 2rem;
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #a8d8ff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.distributed-generation-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-align: left;
}

.distributed-generation-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

.btn--outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn--outline:hover {
    background: white;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.distributed-generation-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 18px;
    color: #4ade80;
    margin-bottom: 8px;
    display: block;
}

.service-card-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: justify;
}

.service-card-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
}

/* Responsive Design for Distributed Generation */
@media (max-width: 1200px) {
    .distributed-generation-services {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .distributed-generation-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .distributed-generation-left {
        padding-right: 0;
        text-align: center;
    }
    
    .distributed-generation-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .distributed-generation-section {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .distributed-generation-intro__title {
        font-size: 1.8rem;
    }
    
    .distributed-generation-title {
        font-size: 2.2rem;
        /* Tipografía */
        text-align: left;
    }
    
    .distributed-generation-services {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        min-height: 120px;
        padding: 15px;
    }
}

/* Specialization Section */
.specialization-section {
    padding: 2.5rem 0;
    background-color: #f8f9fa;
}

.specialization-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.distributed-generation-intro {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.distributed-generation-intro__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    margin: 0;
    text-align: justify;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.specialization-intro__text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

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

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

.specialization-title .highlight {
    color: var(--color-primary);
}

.specialization-section-block {
    margin-bottom: 2.5rem;
}

.specialization-subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    color: #4ade80;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 20px;
    margin-top: 0.2rem;
}

.service-content {
    flex: 1;
    text-align: justify;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.5rem 0;
    text-align: justify;
}

.service-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    text-align: justify;
}

/* Responsive Design for Specialization */
@media (max-width: 768px) {
    .specialization-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .specialization-title {
        font-size: 2rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .specialization-subtitle {
        font-size: 1.3rem;
    }
    
    .service-item {
        gap: 0.8rem;
    }
}

/* About Us Page Styles */
.about-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInRight 1s ease-out 0.6s both;
    position: relative;
    z-index: 1;
}

.about-intro__text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
    text-align: justify;
    animation: fadeInUp 1s ease-out 0.9s both;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

#sobre-nosotros .about-intro__text {
    color: rgba(255, 255, 255, 0.9);
}

#sobre-nosotros .about-intro__text:hover {
    transform: translateY(-2px);
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

/* Título con efecto typing para sobre-nosotros */
#sobre-nosotros .section__title {
    animation: slideInLeft 1s ease-out 0.3s both;
    position: relative;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid white;
    width: 0;
    animation: typeWriter 2s steps(20) 0.5s both, blink 1s infinite 2.5s;
    margin: 0 auto 2rem auto;
    display: inline-block;
}

/* Animación para elementos about-section */
.about-section {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.about-section:nth-child(1) { animation-delay: 1.2s; }
.about-section:nth-child(2) { animation-delay: 1.4s; }
.about-section:nth-child(3) { animation-delay: 1.6s; }
.about-section:nth-child(4) { animation-delay: 1.8s; }

.about-section:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-experience {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 1.1s both;
    position: relative;
    z-index: 1;
}

.about-experience__text {
    font-size: 1.3rem;
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

#sobre-nosotros .about-experience__text {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#sobre-nosotros .about-experience__text:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.about-experience__text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
    font-weight: 500;
    text-align: justify;
}

.about-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), #4a90e2);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.about-section:hover .about-section__icon {
    transform: scale(1.1) rotate(5deg);
}

.about-section__title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-dark);
    text-align: justify;
    margin-bottom: 1.5rem;
}

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

.values-list {
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.value-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
    margin-top: 0.2rem;
}

.value-content {
    flex: 1;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 0.5rem 0;
    text-align: justify;
}

.value-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
    text-align: justify;
}

/* Animation for fade-in elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-section {
        padding: 2rem 1.5rem;
    }
    
    .about-section__icon {
        width: 60px;
        height: 60px;
    }
    
    .about-section__title {
        font-size: 1.5rem;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .value-icon {
        font-size: 2rem;
    }
}

.footer {
/* Relleno */
  padding: 1.5rem 0;

/* Fondos */
  background-color: var(--color-dark-variant);

/* Tipografía */
  font-size: 0.85rem;

/* Colores y efectos */
  color: var(--color-text-light);}

.footer a {
/* Colores y efectos */
  color: var(--color-light);
  text-decoration: none;
  transition: color 0.3s ease;}

.footer a:hover {
/* Colores y efectos */
  color: var(--color-primary-light);}

.footer p {
/* Márgenes */
  margin-bottom: 0.3rem;
  line-height: 1.4;

  /* Tipografía */
  text-align: justify;}

.footer__grid {
/* Modelo de caja */
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;}

.footer__logo {
/* Flexbox y Grid */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;}

.footer__logo img {
/* Dimensiones */
  width: 100px;
  height: 100px;
  object-fit: contain;}

.footer__logo-text {
/* Tipografía */
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary-light);
  text-align: center;}

.footer__col {
/* Tipografía */
  text-align: left;}

.footer__title {
/* Tipografía */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-light);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;}

.footer__links {
/* Modelo de caja */
  list-style: none;
  padding: 0;
  margin: 0;}

.footer__links li {
/* Márgenes */
  margin-bottom: 0.4rem;}

.footer__links a {
/* Tipografía */
  font-size: 0.8rem;
  transition: all 0.3s ease;}

.footer__links a:hover {
/* Posicionamiento */
  padding-left: 0.3rem;}

.footer__contact {
/* Tipografía */
  font-size: 0.8rem;
  line-height: 1.5;}

.footer__social {
/* Flexbox y Grid */
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;}

.footer__social a {
/* Dimensiones */
  width: 32px;
  height: 32px;

/* Flexbox y Grid */
  display: flex;
  align-items: center;
  justify-content: center;

/* Bordes */
  border-radius: 50%;
  border: 1px solid var(--color-primary);

/* Fondos */
  background-color: transparent;

/* Tipografía */
  font-size: 0.9rem;

/* Colores y efectos */
  color: var(--color-primary);

/* Transiciones y animaciones */
  transition: all 0.3s ease;}

.footer__social a:hover {
/* Fondos */
  background-color: var(--color-primary);

/* Colores y efectos */
  color: var(--color-dark);

/* Transformaciones */
  transform: translateY(-2px);}

.social-icon {
/* Dimensiones */
  width: 20px;
  height: 20px;

/* Colores y efectos */
  fill: currentColor;

/* Transiciones y animaciones */
  transition: all 0.3s ease;
}

.footer__social a:hover .social-icon {
/* Colores y efectos */
  fill: white;
}

.footer__bottom {
/* Márgenes */
  margin-top: 1rem;
  padding-top: 1rem;

/* Bordes */
  border-top: 1px solid rgba(255, 255, 255, 0.1);

/* Tipografía */
  text-align: center;
  font-size: 0.75rem;

/* Colores y efectos */
  color: rgba(255, 255, 255, 0.7);}

.footer__bottom p {
/* Márgenes */
  margin-bottom: 0.2rem;

/* Tipografía */
  text-align: center;}

.footer__bottom a {
/* Tipografía */
  font-size: 0.75rem;

/* Colores y efectos */
  color: var(--color-primary-light);}

.footer__certifications {
/* Tipografía */
  text-align: center;}

.footer__certifications-grid {
/* Flexbox y Grid */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;}

.footer__certification-item {
/* Flexbox y Grid */
  display: flex;
  align-items: center;
  justify-content: center;

/* Relleno */
  padding: 0.3rem;

/* Transiciones y animaciones */
  transition: all 0.3s ease;}

.footer__certification-item:hover {
/* Transformaciones */
  transform: translateY(-2px);}

.footer__certification-item img {
/* Dimensiones */
  width: 60px;
  height: 60px;
  object-fit: contain;

/* Colores y efectos */
  filter: brightness(0.9);}

.footer__certification-item:hover img {
/* Colores y efectos */
  filter: brightness(1);

/* ==========================================
   ESTILOS DE TABLAS
   ========================================== */
/* Estos estilos mejoran la presentación de tablas en documentos legales */

.table {
  /* Dimensiones */
  width: 100%;
  
  /* Márgenes */
  margin: 1.5rem 0;
  
  /* Bordes */
  border-collapse: collapse;
  border-spacing: 0;
  
  /* Fondos */
  background-color: var(--color-light);
  
  /* Colores y efectos */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  
  /* Bordes */
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  /* Relleno */
  padding: 0.75rem 1rem;
  
  /* Tipografía */
  text-align: left;
  
  /* Bordes */
  border-bottom: 1px solid #e0e0e0;
}

.table th {
  /* Fondos */
  background-color: var(--color-gray);
  
  /* Tipografía */
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
  /* Colores y efectos */
  color: var(--color-dark);
}

.table tbody tr {
  /* Transiciones y animaciones */
  transition: background-color 0.2s ease;
}

.table tbody tr:hover {
  /* Fondos */
  background-color: rgba(34, 103, 216, 0.05);
}

.table tbody tr:nth-child(even) {
  /* Fondos */
  background-color: rgba(240, 244, 248, 0.5);
}

.table tbody tr:last-child td {
  /* Bordes */
  border-bottom: none;
}

/* Tabla responsive */
.table-responsive {
  /* Modelo de caja */
  overflow-x: auto;
  
  /* Márgenes */
  margin: 1.5rem 0;
  
  /* Bordes */
  border-radius: 8px;
  
  /* Colores y efectos */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-responsive .table {
  /* Márgenes */
  margin: 0;
  
  /* Colores y efectos */
  box-shadow: none;
}

/* Estilos para tablas pequeñas */
.table--compact th,
.table--compact td {
  /* Relleno */
  padding: 0.5rem 0.75rem;
  
  /* Tipografía */
  font-size: 0.9rem;
}

/* Estilos para tablas con bordes */
.table--bordered {
  /* Bordes */
  border: 1px solid #e0e0e0;
}

.table--bordered th,
.table--bordered td {
  /* Bordes */
  border: 1px solid #e0e0e0;
}

/* ==========================================
   MEDIA QUERIES Y RESPONSIVIDAD
   ========================================== */
/* Estas media queries adaptan el diseño a diferentes tamaños de pantalla */

/* Pantallas grandes (escritorio) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    margin: 0 auto;
  }
  
  .features__grid,
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Pantallas medianas (tablets) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }
  
  .features__grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-us__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
  }
  
  .modal__body {
    grid-template-columns: 1fr;
  }
  
  .contact__form-container {
    order: 1;
  }
  
  .contact__info {
    order: 2;
  }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 1rem;
  }
  
  .header__container {
    height: 60px;
  }
  
  /* Estilos de tablas para móviles */
  .table {
    font-size: 0.85rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem 0.75rem;
  }
  
  .table th {
    font-size: 0.8rem;
  }
  
  /* Forzar scroll horizontal en tablas grandes */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Navegación móvil mejorada */
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, 
      rgba(0, 25, 67, 0.95) 0%, 
      rgba(0, 32, 96, 0.98) 50%, 
      rgba(119, 109, 248, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    padding: 3rem 2rem;
    border-left: 2px solid rgba(119, 109, 248, 0.3);
    /* Mejora de accesibilidad para navegación con teclado */
    &:focus-within {
      outline: var(--focus-outline);
    }
  }
  
  .nav__list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, 
      rgba(119, 109, 248, 0.1) 0%, 
      transparent 50%);
    pointer-events: none;
  }
  
  body.nav-open .nav__list,
  .nav.active .nav__list {
    right: 0;
  }
  
  .nav__item {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
  }
  
  .nav__item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-primary-light), var(--color-primary));
    border-radius: 2px;
    transition: transform 0.3s ease;
    transform-origin: left;
  }
  
  body.nav-open .nav__item,
  .nav.active .nav__item {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  
  /* Animación escalonada para elementos del menú */
  body.nav-open .nav__item:nth-child(1),
  .nav.active .nav__item:nth-child(1) {
    transition-delay: 0.1s;
  }
  
  body.nav-open .nav__item:nth-child(2),
  .nav.active .nav__item:nth-child(2) {
    transition-delay: 0.2s;
  }
  
  body.nav-open .nav__item:nth-child(3),
  .nav.active .nav__item:nth-child(3) {
    transition-delay: 0.3s;
  }
  
  body.nav-open .nav__item:nth-child(4),
  .nav.active .nav__item:nth-child(4) {
    transition-delay: 0.4s;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .nav__link {
    color: var(--color-light);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    display: block;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.1), 
      transparent);
    transition: left 0.5s ease;
  }
  
  .nav__link:hover::before {
    left: 100%;
  }
  
  .nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(119, 109, 248, 0.3);
  }
  
  /* Indicador de pestaña activa mejorado */
  .nav__link.active {
    background: linear-gradient(135deg, 
      rgba(119, 109, 248, 0.3) 0%, 
      rgba(34, 103, 216, 0.2) 100%);
    border: 2px solid rgba(119, 109, 248, 0.5);
    box-shadow: 
      0 0 20px rgba(119, 109, 248, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
  }
  
  .nav__link.active::after {
    content: '●';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary-light);
    font-size: 1.5rem;
    animation: pulse 2s infinite;
  }
  
  .nav__item:has(.nav__link.active)::before {
    transform: translateY(-50%) scaleX(1);
  }
  
  /* Selector de idiomas móvil */
  .nav__item--language {
    transition-delay: 0.5s;
  }
  
  body.nav-open .nav__item--language,
  .nav.active .nav__item--language {
    transition-delay: 0.5s;
  }
  
  .language-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
  
  .language-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .language-option {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    justify-content: center;
  }
  
  /* Sección hero */
  .hero__content {
    padding: 3rem 1rem;
    text-align: center;
  }
  
  .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
  }
  
  .hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-align: center;
  }
  
  .hero__cta-group {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .hero__cta-group .btn {
    margin: 0.5rem 0;
    width: 100%;
    max-width: 300px;
  }
  
  /* Mejoras de layout responsivo */
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mejoras para formularios en móvil */
  .form-group input, .form-group textarea {
    font-size: 16px; /* Previene zoom en iOS */
  }
}

/* ==========================================
   ANIMACIONES Y KEYFRAMES
   ========================================== */
/* Estas animaciones se utilizan en todo el sitio para crear efectos visuales suaves */

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

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

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

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

/* Solar animation keyframes removed - replaced with video background */

@keyframes pulse {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Dispositivos muy pequeños (teléfonos, menos de 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: calc(var(--header-height) + 2rem) 0 2rem;
  }
  
  .section__title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }
  
  .section__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    margin-bottom: 2rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
  
  .team-grid {
    gap: 1.5rem;
  }
  
  .contact__grid {
    padding: 1.5rem;
  }
  
  .modal__content {
    padding: 1.5rem;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer__logo {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .footer__col {
    text-align: center;
  }
  
  .footer__social {
    justify-content: center;
  }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
  .header__logo span {
    display: none;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .modal__content {
    padding: 1rem;
  }
  
  .modal__thumbnails {
    display: none;
  }
  
  .form__group--inline {
    flex-direction: column;
  }
  
  .form__group--inline .form__control {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* ==========================================
   ESTILOS PARA POLÍTICAS Y CERTIFICACIONES
   ========================================== */

.policies-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.policies-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.policies-table th,
.policies-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.policies-table th {
  background: var(--color-primary);
  color: var(--color-light);
  font-weight: 600;
  font-size: 1.1rem;
}

.policies-table tbody tr:hover {
  background: #f8fafc;
}

.policies-table tbody tr:last-child td {
  border-bottom: none;
}

.policies-table a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 4px;
  transition: all var(--transition-speed) ease;
  display: inline-block;
}

.policies-table a:hover {
  background: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 103, 216, 0.3);
}

@media (max-width: 768px) {
  .policies-table th,
  .policies-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .policies-table th {
    font-size: 1rem;
  }
  
  .policies-table a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* ==========================================
   MODAL PARA PROYECTOS
   ========================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  animation: fadeIn 0.3s ease-out;
}

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

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 25, 67, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal__content {
  background: var(--color-light);
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  max-height: 85vh;
  width: 700px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  animation: slideUp 0.4s ease-out;
  z-index: 1001;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal__close:hover {
  background: var(--color-primary);
  color: white;
  transform: rotate(90deg) scale(1.1);
}

.modal__close svg {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.modal__close:hover svg {
  color: white;
}

.modal__header {
  padding: 2rem 2rem 1rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
}

.modal__title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.modal__location-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.9;
}

.modal__location-icon {
  flex-shrink: 0;
}

.modal__location {
  font-size: 1.1rem;
  margin: 0;
}

.modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
  min-height: 400px;
}.modal__image-section {
  position: relative;
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
}

.modal__image-container {
  position: relative;
  width: 100%;
  height: 300px;
  max-height: 300px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal__image-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.modal__image {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 8px;
}

.modal__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal__image-container:hover .modal__image-overlay {
  opacity: 1;
}

.modal__image-container:hover .modal__image {
  transform: scale(1.05);
}

.modal__zoom-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal__zoom-btn:hover {
  background: white;
  transform: scale(1.1);
}

.modal__info {
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  overflow-y: auto;
}

.modal__stats-grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out;
}

.modal__stat-card {
  display: table-row;
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease-out;
}

.modal__stat-card:not(:last-child) .modal__stat-label,
.modal__stat-card:not(:last-child) .modal__stat-value {
  border-bottom: 1px solid #e2e8f0;
}

.modal__stat-card:nth-child(even) .modal__stat-label,
.modal__stat-card:nth-child(even) .modal__stat-value {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0c4a6e;
}

.modal__stat-card:nth-child(odd) .modal__stat-label,
.modal__stat-card:nth-child(odd) .modal__stat-value {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  color: #075985;
}

.modal__stat-card:nth-child(1) { animation-delay: 0.1s; }
.modal__stat-card:nth-child(2) { animation-delay: 0.2s; }
.modal__stat-card:nth-child(3) { animation-delay: 0.3s; }
.modal__stat-card:nth-child(4) { animation-delay: 0.4s; }
.modal__stat-card:nth-child(5) { animation-delay: 0.5s; }
.modal__stat-card:nth-child(6) { animation-delay: 0.6s; }

.modal__stat-card:hover .modal__stat-label,
.modal__stat-card:hover .modal__stat-value {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: white;
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.modal__stat-icon {
  display: table-cell;
  width: 50px;
  padding: 1rem 0.5rem;
  vertical-align: middle;
  text-align: center;
}

.modal__stat-icon--power {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
}

.modal__stat-icon--energy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.modal__stat-icon--co2 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.modal__stat-icon--panels {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.modal__stat-icon--sector {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.modal__stat-icon--location {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
}

.modal__stat-content {
  display: table-cell;
  padding: 1rem;
  vertical-align: middle;
}

.modal__stat-label {
  display: table-cell;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  padding: 1.2rem;
  vertical-align: middle;
  border-right: 1px solid #e2e8f0;
  width: 40%;
  transition: all 0.3s ease;
}

.modal__stat-value {
  display: table-cell;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  padding: 1.2rem;
  vertical-align: middle;
  transition: all 0.3s ease;
}

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Video Background Styles */
.hero__video-background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Update hero overlay to be above video */
.hero__overlay {
  z-index: 1 !important;
  background: transparent !important;
}

/* Ensure hero content is above video and overlay */
.hero__content {
  z-index: 2 !important;
  }
}

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

/* Responsive Modal */
@media (max-width: 1024px) {
  .modal__content {
    width: 95vw;
    max-width: 95vw;
  }
  
  .modal__info {
    padding: 2rem 1.5rem;
  }
  
  .modal__header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .modal__content {
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
    margin: 2.5vh auto;
    border-radius: 12px;
  }
  
  .modal__body {
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
    min-height: auto;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
  }
  
  .modal__header {
    padding: 1rem 1rem 0.5rem 1rem;
  }
  
  .modal__title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }
  
  .modal__location {
    font-size: 0.9rem;
  }
  
  .modal__info {
    padding: 1rem;
    overflow-y: auto;
  }
  
  .modal__stats-grid {
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  .modal__stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    border-radius: 0;
    min-height: auto;
  }
  
  .modal__stat-card:nth-child(even) {
    background: #f8fafc;
  }
  
  .modal__stat-card:last-child {
    border-bottom: none;
  }
  
  .modal__stat-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  
  .modal__stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    width: auto;
    vertical-align: baseline;
  }
  
  .modal__stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    display: block;
    padding: 0;
    vertical-align: baseline;
  }
}

@media (max-width: 480px) {
  .modal__content {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .modal__body {
    grid-template-rows: 180px 1fr;
    max-height: calc(100vh - 60px);
  }
  
  .modal__header {
    padding: 0.75rem 1rem 0.5rem 1rem;
  }
  
  .modal__title {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  
  .modal__location {
    font-size: 0.8rem;
  }
  
  .modal__info {
    padding: 0.75rem 1rem 1rem 1rem;
    overflow-y: auto;
  }
  
  .modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    z-index: 1001;
  }
  
  .modal__close svg {
    width: 20px;
    height: 20px;
  }
  
  .modal__stats-grid {
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  
  .modal__stat-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    border-radius: 0;
    min-height: auto;
  }
  
  .modal__stat-card:nth-child(even) {
    background: #f8fafc;
  }
  
  .modal__stat-card:last-child {
    border-bottom: none;
  }
  
  .modal__stat-icon {
    width: 28px;
    height: 28px;
  }
  
  .modal__stat-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .modal__stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    width: auto;
    vertical-align: baseline;
    margin-bottom: 0;
    line-height: 1.3;
  }
  
  .modal__stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    display: block;
    padding: 0;
    vertical-align: baseline;
    line-height: 1.3;
  }
 }

/* ==========================================
   BOTÓN SOBRE NOSOTROS
   ========================================== */
.distributed-generation-btn {
  /* Modelo de caja */
  display: inline-block;
  
  /* Relleno */
  padding: 1rem 2rem;
  
  /* Bordes */
  border: 2px solid var(--color-primary);
  border-radius: 50px;
  
  /* Fondos */
  background-color: var(--color-light);
  
  /* Tipografía */
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  
  /* Colores y efectos */
  color: var(--color-primary);
  
  /* Transiciones y animaciones */
  transition: all var(--transition-speed) ease;
  
  /* Interactividad */
  cursor: pointer;
}

.distributed-generation-btn:hover {
  /* Fondos */
  background-color: var(--color-primary);
  
  /* Colores y efectos */
  color: var(--color-light);
  
  /* Otras propiedades */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(34, 103, 216, 0.3);
}

.distributed-generation-btn:focus {
  /* Accesibilidad */
  outline: var(--focus-outline);
  outline-offset: 2px;
}