/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'ScornoDemoBold';
  src: url('/Fonts/scorno_demo.woff2') format('woff2'),
       url('/Fonts/scorno_demo.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamBook';
  src: url('/Fonts/Gothan_book.woff2') format('woff2'),
       url('/Fonts/Gothan_book.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



/* Importar variables globales */
@import url('variables.css');

body, html {
  font-family: 'GothamBook', sans-serif;
}

body {
  padding-top: 100px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ========================================
   ESTILOS GLOBALES DE TEXTO
   ======================================== */
/* Todos los párrafos justificados y con letra más grande */
p {
  text-align: justify;
  font-size: 1.15rem; /* Aumentado de ~1rem a 1.15rem */
  line-height: 1.7;
}

/* Subtítulos h3 compensados para mantener jerarquía visual */
h3 {
  font-size: 1.4rem; /* Aumentado para compensar párrafos más grandes */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Excepciones para elementos que deben mantenerse centrados */
.carousel-caption p,
.footer-column p,
.loading-text,
.progress-text,
.contenido-placeholder p,
.fila.texto-solo p {
  text-align: center;
}

/* Spinner wrapper: center spinner visually at viewport center and keep message below */
.loading-spinner .spinner-wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px; /* espacio entre spinner y mensaje */
  pointer-events: none; /* evitar interacción mientras carga */
}

.loading-spinner .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #183206;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

/* cuando el spinner se oculta mantenemos el flujo limpio */
.loading-spinner.hidden .spinner-wrapper {
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

/* Ajustes responsivos para textos */
@media (max-width: 768px) {
  p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
  }
  
  h3 {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 768px) {
  p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  p {
    font-size: 1.05rem;
    line-height: 1.5;
  }
  h3 {
    font-size: 1.2rem;
  }
}
/* ========================================
   CORRECCIÓN ESPECÍFICA PARA RESPONSABILIDADES
   ======================================== */
body.responsabilidades-page {
  padding-top: 0;
}

.responsabilidades-hero {
  margin-top: 0;
  padding-top: 0;
}

/* ========================================
   MEJORAS DEL MENÚ HAMBURGUESA
   ======================================== */
.hamburger-menu {
  z-index: var(--z-hamburger);
  position: relative;
}

.nav-menu {
  z-index: var(--z-header);
  position: relative;
}

.menu-overlay {
  z-index: var(--z-overlay);
  position: relative;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--motion) ease, box-shadow var(--motion) ease, transform var(--motion) ease, opacity var(--motion) ease;
}

.main-header.scrolled {
  background: #e6e6e6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
  height: 60px;
}


/* Navegación */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 5px;
}

.nav-menu a {
  text-decoration: none;
  color: white;
  font-size: 20px;
  border: 2px solid transparent;
  padding: 6px 10px;
  font-weight: bold;
  transition: color var(--motion) ease, border-bottom-color var(--motion) ease, background-color var(--motion) ease, transform var(--motion) ease;
}

.nav-menu a:hover {
  border-bottom: 2px solid white;
}

/* Estado activo para enlaces del menú (header transparente) */
.nav-menu a.active {
  color: white !important;
  border-bottom: 2px solid white;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

/* Estilos cuando el header está scrolleado */
.main-header.scrolled .nav-menu a {
  color: black;
}

.main-header.scrolled .nav-menu a:hover {
  border-bottom: 2px solid black;
}

/* Estado activo cuando el header está scrolleado */
.main-header.scrolled .nav-menu a.active {
  color: #183206 !important;
  border-bottom: 2px solid #183206;
  background-color: rgba(24, 50, 6, 0.1);
}

/* ========================================
   MENÚ HAMBURGUESA - MOBILE MENU
   ======================================== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: var(--z-hamburger);
  /* Animación removida para mejorar velocidad de carga */
  transition: opacity var(--motion) ease, visibility var(--motion) ease, transform var(--motion) ease;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.main-header.scrolled .hamburger-menu span {
  background-color: black;
}

/* Ocultar hamburger cuando menú está activo */
.hamburger-menu.active,
.main-header.scrolled .hamburger-menu.active {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: scale(0);
}

/* Animación del botón hamburguesa */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

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

/* Overlay del menú */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion) ease, visibility var(--motion) ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Menú móvil */
.nav-menu {
  transition: right var(--motion) ease, transform var(--motion) ease, opacity var(--motion) ease;
}

.nav-header {
  display: none;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.close-menu {
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.close-menu:hover {
  color: #666;
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero,
.hero-static {
  position: relative;
  width: 100%;
  height: 60vh;
  margin-top: -100px;
}

.hero-static-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-static-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Aplicar mismo estilo al video del hero/carrusel */
.hero-static video,
#videoLoop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-static-caption,
.carousel-caption {
  position: absolute;
  top: 70%;
  width: 100%;
  text-align: right;
  transform: translateX(-3%) translateY(-60%);
  z-index: 2;
  right: 5%;
}

.hero-static-caption h1,
.carousel-caption h1 {
  font-family: 'ScornoDemoBold', sans-serif;
  color: white;
  font-size: 2.5rem; 
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* ==== SOLO PARA EL SLIDE TRIPLE (coincide con el HTML que genera tu JS) ==== */
.carousel-item.triple-slide {
  /* mostrar las 3 imágenes como columnas verticales lado a lado */
  display: flex;
  flex-direction: row;
  height: 100%;
  position: relative;
  /* NO cambiar width aquí: debe seguir midiendo 16.666% como los demás .carousel-item */
}

.carousel-item.triple-slide .triple-slide-sections {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

.carousel-item.triple-slide .triple-slide-section {
  /* cada sección ocupa ~1/3 del ancho y toda la altura del slide */
  flex: 0 0 33.333%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center; /* centrar contenido */
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/* For images inside the triple sections: full height, cover, portrait-friendly */
.carousel-item.triple-slide .triple-slide-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive: en pantallas pequeñas apilar verticalmente */
@media (max-width: 768px) {
  .carousel-item.triple-slide,
  .carousel-item.triple-slide .triple-slide-sections {
    flex-direction: column;
  }

  .carousel-item.triple-slide .triple-slide-section {
    flex: 0 0 auto;
    height: 33.333vh; /* cada imagen toma un tercio de la vista en móvil */
  }
}

/*.carousel-item.triple-slide .triple-slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 6px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}*/

/* El triple slide ahora usa las clases estándar .carousel-caption y .carousel-btn */


/* ========================================
   CARRUSEL
   ======================================== */
.carousel-container {
  position: relative;
  width: 100%;
  height: 60vh;
  margin: 0 auto; 
}

.carousel-slide {
  display: flex;
  width: 600%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  transform: translateX(0);
}

.carousel-item {
  flex: 0 0 16.666%;
  height: 100%;
  width: 16.666%;
  min-width: 16.666%;
  position: relative;
}

.carousel-btn {
  position: absolute;
  bottom: 15%;
  right: 8%;
  background-color: #408362;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.carousel-btn:hover {
  background-color: #2a5c0b;
}

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

/* Flechas del carrusel */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  font-size: 2rem;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  z-index: 3;
  /* Animación removida para mejorar velocidad de carga */
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Animación de flechas removida para mejorar velocidad de carga */

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
  justify-content: center;
  /* Animación removida para mejorar velocidad de carga */
}

/* Animación de indicadores removida para mejorar velocidad de carga */

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-indicator.active {
  background-color: white;
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */
.parrafo1 {
  background-color: #e6e6e6;
  padding: 100px 250px;
  text-align: left;
  /* Animación removida para mejorar velocidad de carga */
}

/* Animación de contenido removida para mejorar velocidad de carga */

.parrafo1 h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.parrafo3 {
  background-color: #e6e6e6;
  padding: 100px 250px;
  text-align: left;
}

.parrafo3 h1 {
  font-size: 2.5rem;
}

/* Botón */
.boton {
  display: inline-block;
  padding: 12px 30px;
  background-color: #333;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s;
}

.boton:hover {
  background-color: #555;
}

/* ========================================
   DOS COLUMNAS
   ======================================== */
.dosColumnas {
  display: flex;
  min-height: 500px;
}

.dosColumnas .foto-columnas {
  flex: 2;
  position: relative;
  overflow: hidden;
}

.dosColumnas .foto-columnas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.dosColumnas .Texto2Columnas {
  flex: 1;
  background-color: #408362;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dosColumnas .Texto2Columnas h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.dosColumnas .Texto2Columnas p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.dosColumnas .Texto2Columnas .boton {
  align-self: flex-start;
  background-color: #e6e6e6;
  color:black;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.dosColumnas .Texto2Columnas .boton:hover {
  background-color: #888;
  color: white;
}

/* ========================================
   VIDEO
   ======================================== */
.videoYT {
  background-color: #e6e6e6;
  padding: 80px 0;
  text-align: center;
}

.videoYT h1 {
  font-size: 3rem;
  margin-bottom: 50px;
  font-weight: 700;
  color: #333;
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.video-container iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   VIDEO YT 2
   ======================================== */
.videoYT2 {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9; /* gris claro, limpio */
}

.videoYT2 h1 {
  font-size: 3rem;
  margin-bottom: 50px;
  font-weight: 700;
  color: #333;
}

.video-container2 {
  max-width: 900px;   
  margin: 0 auto;    
  border-radius: 12px;
  overflow: hidden;  
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); 
}

.video-container2 video {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: #3B5145;
  color: white;
  padding: 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 60px;
  margin: 0 auto;
}

.footer-info {
  display: flex;
  gap: 60px;
  justify-content: center;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.footer-column i {
  font-size: 24px;
  margin-bottom: 5px;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 200px;
}

.footer-column a {
  text-decoration: none;
  color: white;
}

.footer-bottom {
  background-color: #e6e6e6;
  color: black;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* ========================================
   SECCIÓN COMPROMISO
   ======================================== */
.compromiso {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compromiso img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.contenedor-compromiso {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: transparent;
  padding: 60px 80px;
  border-radius: 10px;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 1.5);
}

.contenedor-compromiso .titulo {
  color: whitesmoke;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.titulo .destacado {
  font-family:'ScornoDemoBold', sans-serif;
  color: white; /* o el color que prefieras */
  letter-spacing: 1px;
  font-style: oblique;
  font-size: 5rem;
}

#videoLoop {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 1;
}

/* Ajuste para el contenedor en móvil */
@media (max-width: 768px) {
  .compromiso {
    height: 35vh;
    min-height: 180px;
  }
  .contenedor-compromiso {
    padding: 20px 10px;
  }
  .contenedor-compromiso .titulo {
    font-size: 1.3rem;
  }
  .compromiso video,
  #videoLoop {
    height: 100% !important;
    min-height: 180px;
  }
}

@media (max-width: 480px) {
  .compromiso {
    height: 25vh;
    min-height: 100px;
  }
  .contenedor-compromiso {
    padding: 8px 4px;
    max-width: 95%;
  }
  .contenedor-compromiso .titulo {
    font-size: 0.9rem;
    line-height: 1.1;
  }
  .titulo .destacado {
    font-size: 3rem;
  }
  .compromiso video,
  #videoLoop {
    min-height: 100px;
  }
}

/* Dispositivos muy pequeños (320px y menos) */
@media (max-width: 360px) {
  .compromiso {
    height: 22vh;
    min-height: 80px;
  }
  .contenedor-compromiso {
    padding: 6px 3px;
    max-width: 98%;
  }
  .contenedor-compromiso .titulo {
    font-size: 0.8rem;
    line-height: 1.0;
  }
  .titulo .destacado {
    font-size: 3rem;
  }
  .compromiso video,
  #videoLoop {
    min-height: 80px;
  }
}

/* Dispositivos extremadamente pequeños (280px y menos) */
@media (max-width: 320px) {
  .compromiso {
    height: 20vh;
    min-height: 70px;
  }
  .contenedor-compromiso {
    padding: 4px 2px;
    max-width: 99%;
  }
  .contenedor-compromiso .titulo {
    font-size: 0.7rem;
    line-height: 0.9;
  }
  .titulo .destacado {
    font-size: 0.9rem;
  }
  .compromiso video,
  #videoLoop {
    min-height: 70px;
  }
}

/*#videoLoop.glass-fade {
  opacity: 0.9;
}

.video-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px) saturate(120%);
  border-radius: inherit;
  transition: opacity 0.9s ease;
  opacity: 0;
}

#videoLoop.glass-fade ~ .video-glass-overlay {
  opacity: 1;
}*/

.video-background {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* ========================================
   SECCIÓN HISTORIA Y FILOSOFÍA
   ======================================== */
.historia-filosofia {
  background-color: #e6e6e6;
  color: black;
  padding: 80px 0;
}

.historia-filosofia .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.historia-container {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 40px;
}

.historia-texto {
  flex: 1;
}

.historia-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 200px; /* Ajusta según necesidad */
  height: 100%;
}

.historia-imagen img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Aplicar mismo estilo al video de compromiso */
.compromiso video,
#videoLoop {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.historia-texto h2,
.filosofia-seccion h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: black;
}

.historia-texto p,
.filosofia-seccion p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: black;
}

.linea-divisoria {
  background-color: #ffffff;
  opacity: 0.3;
}

.filosofia-seccion {
  background-color: #408362;
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ========================================
   MODALES PARA TARJETAS
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--motion) ease, visibility var(--motion) ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #e6e6e6;
  border-radius: 15px;
  padding: 0;
  max-width: 90%;
  width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
  transition: transform var(--motion) ease, opacity var(--motion) ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-container {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  background-color: #183206;
  color: white;
  padding: 30px 40px;
  border-radius: 15px 15px 0 0;
  position: relative;
}

.modal-header h2 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color var(--motion) ease, transform var(--motion) ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.modal-content {
  padding: 40px;
  color: #333;
}

.modal-image {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal-image:hover img {
  transform: scale(1.05);
}

.modal-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #555;
}

.modal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.modal-feature {
  background-color: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-feature h4 {
  color: #183206;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.modal-feature p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 2px solid #ddd;
}

.modal-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--motion) ease, transform var(--motion) ease, box-shadow var(--motion) ease;
  font-size: 1rem;
}

.modal-btn-secondary {
  background-color: #666;
  color: white;
}

.modal-btn-secondary:hover {
  background-color: #888;
  transform: translateY(-2px);
}

.modal-btn-primary {
  background-color: #183206;
  color: white;
}

.modal-btn-primary:hover {
  background-color: #2a4a0a;
  transform: translateY(-2px);
}

/* Animación de entrada para el modal */
@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal-overlay.active .modal-container {
  animation: modalSlideIn 0.4s ease-out forwards;
}

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

/* Mejorar experiencia táctil en móviles */
@media (hover: none) and (pointer: coarse) {
  .prev, .next {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .carousel-indicator {
    min-height: 12px;
    min-width: 12px;
  }
  
  .boton {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .main-header {
    padding: 10px 20px;
  }
  
  .nav-menu a {
    font-size: 18px;
    padding: 5px 8px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .carousel-caption h1,
  .hero-static-caption h1 {
    font-size: 4rem;
  }
  
  .parrafo1, .parrafo3 {
    padding: 80px 100px;
  }
  
  .parrafo1 h1, .parrafo3 h1 {
    font-size: 2.2rem;
  }
  
  .dosColumnas {
    min-height: 400px;
  }
  
  .dosColumnas .Texto2Columnas {
    padding: 50px 30px;
  }
  
  .dosColumnas .Texto2Columnas h2 {
    font-size: 2.2rem;
    position: relative;
  }
  
  /* Eliminar línea verde debajo del título Nuestra Empresa */
  .dosColumnas .Texto2Columnas h2::after {
    display: none;
  }
  
  .responsabilidades .container {
    padding: 0 30px;
  }
  
  .tarjetas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Responsive para contenido dinámico de responsabilidades */
  .responsabilidad-contenido {
    margin-top: 40px;
  }

  .responsabilidad-header {
    padding: 25px;
  }

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

  .responsabilidad-body {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }

  .responsabilidad-imagen {
    flex: none;
    width: 100%;
  }

  .responsabilidad-imagen img {
    height: 200px;
  }
  
  .videoYT h1 {
    font-size: 2.5rem;
  }
  
  .video-container iframe {
    height: 400px;
  }
  
  .footer-content {
    padding: 30px 40px;
  }
  
  .footer-info {
    gap: 40px;
  }
  
  /* Modal responsive */
  .modal-container {
    width: 90%;
    max-width: 700px;
  }
  
  .modal-header {
    padding: 25px 30px;
  }
  
  .modal-header h2 {
    font-size: 2.2rem;
  }
  
  .modal-content {
    padding: 30px;
  }
  
  .modal-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Ajuste para el menú hamburguesa desde 914px hacia abajo */
@media (max-width: 914px) {
  /* Mostrar botón hamburguesa */
  .hamburger-menu {
    display: flex;
  }
  
  /* Ocultar menú normal */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: #e6e6e6;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Mostrar header del menú móvil */
  .nav-header {
    display: flex;
  }
  
  /* Estilos del menú móvil */
  .nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
  }
  
  .nav-menu li {
    border-bottom: 1px solid #d0d0d0;
  }
  
  .nav-menu a {
    display: block;
    padding: 20px 30px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
  }
  
  .nav-menu a:hover {
    background-color: #183206;
    color: white;
    border: none;
  }
  
  /* Página activa */
  .nav-menu a.active {
    background-color: #183206;
    color: white;
    border: 2px solid #183206;
  }
}

/* Asegurar que el menú normal se muestre desde 915px hacia arriba */
@media (min-width: 915px) {
  /* Ocultar botón hamburguesa */
  .hamburger-menu {
    display: none;
  }
  
  /* Mostrar menú normal */
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    box-shadow: none;
  }
  
  .nav-menu ul {
    flex-direction: row;
    gap: 5px;
  }
  
  .nav-menu li {
    border-bottom: none;
  }
  
  .nav-menu a {
    display: inline-block;
    padding: 6px 10px;
    font-size: 20px;
    color: white;
    border: 2px solid transparent;
  }
  
  .nav-menu a:hover {
    border-bottom: 2px solid white;
    background-color: transparent;
  }
  
  /* Estado activo para enlaces del menú (header transparente) */
  .nav-menu a.active {
    color: white !important;
    border-bottom: 2px solid white;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
  }
  
  /* Estilos cuando el header está scrolleado */
  .main-header.scrolled .nav-menu a {
    color: black;
  }
  
  .main-header.scrolled .nav-menu a:hover {
    border-bottom: 2px solid black;
  }
  
  /* Estado activo cuando el header está scrolleado */
  .main-header.scrolled .nav-menu a.active {
    color: #183206 !important;
    border-bottom: 2px solid #183206;
    background-color: rgba(24, 50, 6, 0.1);
  }
  
  /* Ocultar header del menú móvil */
  .nav-header {
    display: none;
  }
}

/* Responsive para móviles grandes */
@media (max-width: 768px) {
  .main-header {
    padding: 8px 15px;
  }
  
  .logo img {
    height: 45px;
  }
  
  /* Hero responsive */
  .carousel-caption h1,
  .hero-static-caption h1 {
    font-size: 1rem;
    text-align: right;
    line-height: 1.2;
    transform: translateX(-50) translateY(-60%);
  }
  
  .carousel-caption h1 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }
  
  .hero-static-caption h1::before {
    content: "";
    display: none;
  }
  
  .hero-static-caption h1::after {
    content: "";
    display: none;
  }
  
  .prev, .next {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
  
  .carousel-indicators {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .carousel-indicator {
    width: 10px;
    height: 10px;
  }
  
  /* Contenido responsive */
  .parrafo1, .parrafo3 {
    padding: 60px 40px;
  }
  
  .parrafo1 h1, .parrafo3 h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .parrafo1 p, .parrafo3 p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .dosColumnas {
    flex-direction: column;
    min-height: auto;
  }
  
  .dosColumnas .foto-columnas {
    flex: none;
    height: 300px;
  }
  
  .dosColumnas .Texto2Columnas {
    flex: none;
    padding: 40px 30px;
  }
  
  .dosColumnas .Texto2Columnas h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .dosColumnas .Texto2Columnas p {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .responsabilidades {
    padding: 60px 0;
  }
  
  .responsabilidades .container {
    padding: 0 20px;
  }
  
  .responsabilidades-titulo {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .tarjetas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Responsive para contenido dinámico de responsabilidades - móvil */
  .responsabilidad-contenido {
    margin-top: 30px;
  }

  .contenido-placeholder {
    padding: 40px 15px;
  }

  .contenido-placeholder h3 {
    font-size: 1.5rem;
  }

  .contenido-placeholder p {
    font-size: 1rem;
  }

  .responsabilidad-header {
    padding: 20px;
  }

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

  .responsabilidad-body {
    padding: 20px;
    gap: 20px;
  }

  .responsabilidad-imagen img {
    height: 180px;
  }

  .responsabilidad-descripcion p {
    font-size: 1rem;
  }

  .responsabilidad-caracteristica {
    padding: 20px;
  }

  .responsabilidad-caracteristica h4 {
    font-size: 1.2rem;
  }

  .responsabilidad-caracteristica p {
    font-size: 0.95rem;
  }
  
  .tarjeta-contenido {
    padding: 20px;
  }
  
  .tarjeta-contenido h3 {
    font-size: 1.3rem;
  }
  
  .videoYT {
    padding: 60px 0;
  }
  
  .videoYT h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }
  
  .video-container {
    padding: 0 15px;
  }
  
  .video-container iframe {
    height: 300px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }
  
  .footer-info {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-column {
    gap: 8px;
  }
  
  .footer-column i {
    font-size: 20px;
  }
  
  .footer-column h3 {
    font-size: 1rem;
  }
  
  .footer-column p {
    font-size: 0.85rem;
    max-width: 250px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-align: center;
  }
  
  /* Modal responsive */
  .modal-container {
    width: 95%;
    max-width: none;
    margin: 20px;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 25px;
  }
  
  .modal-header h2 {
    font-size: 1.8rem;
  }
  
  .modal-close {
    top: 15px;
    right: 20px;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }
  
  .modal-content {
    padding: 25px;
  }
  
  .modal-image {
    height: 200px;
    margin-bottom: 20px;
  }
  
  .modal-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .modal-features {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .modal-feature {
    padding: 20px;
  }
  
  .modal-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-btn {
    width: 100%;
    padding: 15px;
  }
  
  /* Historia y Filosofía Responsive */
  .historia-filosofia { padding: 60px 0; }
  .historia-filosofia .container { padding: 0 30px; }
  .historia-container { 
    flex-direction: column; 
    gap: 40px; 
  }
  .historia-texto h2,
  .filosofia-seccion h2 { font-size: 2rem; margin-bottom: 25px; }
  .historia-texto p,
  .filosofia-seccion p { font-size: 1rem; }
  .filosofia-seccion { padding: 30px; margin-top: 30px; }
  
  /* Compromiso responsive */
  .compromiso { height: 45vh; min-height: 300px; }
  .contenedor-compromiso { padding: 35px 45px; }
  .contenedor-compromiso .titulo { font-size: 2.5rem; }
  
  /* Misión responsive */
  .mision { padding: 60px 0; }
  .mision .container { padding: 0 30px; }
  .mision-container { 
    flex-direction: column; 
    gap: 40px; 
  }
  .mision-texto h2 { font-size: 2rem; margin-bottom: 25px; }
  .mision-texto p { font-size: 1rem; }
  
  /* Visión responsive */
  .vision { padding: 60px 0; }
  .vision .container { padding: 0 30px; }
  .vision-container { 
    flex-direction: column; 
    gap: 40px; 
  }
  .vision-texto h2 { font-size: 2rem; margin-bottom: 25px; }
  .vision-texto p { font-size: 1rem; }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .main-header {
    padding: 5px 10px;
  }
  
  .nav-menu ul {
    gap: 2px;
  }
  
  .nav-menu a {
    font-size: 14px;
    padding: 3px 5px;
  }
  
  .logo img {
    height: 40px;
  }
  
  /* Hero responsive */
  .carousel-caption h1 {
    font-size: 1.5rem !important;
    margin-bottom: 50px;
  }
  
  .prev, .next {
    font-size: 1.2rem;
    padding: 6px 10px;
  }
  
  .parrafo1, .parrafo3 {
    padding: 50px 20px;
  }
  
  .parrafo1 h1, .parrafo3 h1 {
    font-size: 1.8rem;
  }
  
  .parrafo1 p, .parrafo3 p {
    font-size: 0.95rem;
  }
  
  .dosColumnas .foto-columnas {
    height: 250px;
  }
  
  .dosColumnas .Texto2Columnas {
    padding: 30px 20px;
  }
  
  .dosColumnas .Texto2Columnas h2 {
    font-size: 1.8rem;
  }
  
  .responsabilidades {
    padding: 50px 0;
  }
  
  .responsabilidades .container {
    padding: 0 15px;
  }
  
  .responsabilidades-titulo {
    font-size: 1.8rem;
  }
  
  .tarjeta-imagen {
    height: 180px;
  }
  
  .tarjeta-contenido {
    padding: 15px;
  }
  
  .tarjeta-contenido h3 {
    font-size: 1.2rem;
  }
  
  .tarjeta-contenido p {
    font-size: 0.9rem;
  }
  
  .videoYT {
    padding: 50px 0;
  }
  
  .videoYT h1 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .video-container {
    padding: 0 10px;
  }
  
  .video-container iframe {
    height: 250px;
  }
  
  .footer-content {
    padding: 25px 15px;
  }
  
  .footer-info {
    gap: 25px;
  }
  
  .footer-column i {
    font-size: 18px;
  }
  
  .footer-column h3 {
    font-size: 0.95rem;
  }
  
  .footer-column p {
    font-size: 0.8rem;
    max-width: 200px;
  }
  
  .footer-bottom {
    padding: 15px;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
  
  /* Historia y Filosofía Responsive */
  .historia-filosofia { padding: 40px 0; }
  .historia-filosofia .container { padding: 0 20px; }
  .historia-container { 
    flex-direction: column; 
    gap: 30px; 
  }
  .historia-texto h2,
  .filosofia-seccion h2 { font-size: 1.8rem; margin-bottom: 20px; }
  .historia-texto p,
  .filosofia-seccion p { font-size: 0.95rem; }
  .filosofia-seccion { padding: 25px; margin-top: 25px; }
  
  /* Compromiso responsive */
  .compromiso { height: 40vh; min-height: 250px; }
  .contenedor-compromiso { padding: 25px 35px; }
  .contenedor-compromiso .titulo { font-size: 2rem; }
  
  /* Misión responsive */
  .mision { padding: 40px 0; }
  .mision .container { padding: 0 20px; }
  .mision-container { 
    flex-direction: column; 
    gap: 30px; 
  }
  .mision-texto h2 { font-size: 1.8rem; margin-bottom: 20px; }
  .mision-texto p { font-size: 0.95rem; }
  
  /* Visión responsive */
  .vision { padding: 40px 0; }
  .vision .container { padding: 0 20px; }
  .vision-container { 
    flex-direction: column; 
    gap: 30px; 
  }
  .vision-texto h2 { font-size: 1.8rem; margin-bottom: 20px; }
  .vision-texto p { font-size: 0.95rem; }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 360px) {
  .nav-menu a {
    font-size: 12px;
    padding: 2px 4px;
  }
  
  .logo img {
    height: 35px;
  }
  
  /* Hero responsive */
  .carousel-caption h1 {
    font-size: 2rem !important;
    /*-webkit-text-stroke: 2px black;*/
  }
  
  .parrafo1, .parrafo3 {
    padding: 40px 15px;
  }
  
  .parrafo1 h1, .parrafo3 h1 {
    font-size: 1.6rem;
  }
  
  .dosColumnas .foto-columnas {
    height: 200px;
  }
  
  .dosColumnas .Texto2Columnas {
    padding: 25px 15px;
  }
  
  .dosColumnas .Texto2Columnas h2 {
    font-size: 1.6rem;
  }
  
  .responsabilidades-titulo {
    font-size: 1.6rem;
  }

  /* Responsive para contenido dinámico de responsabilidades - pantallas muy pequeñas */
  .responsabilidad-contenido {
    margin-top: 25px;
  }

  .contenido-placeholder {
    padding: 30px 10px;
  }

  .contenido-placeholder h3 {
    font-size: 1.3rem;
  }

  .contenido-placeholder p {
    font-size: 0.9rem;
  }

  .responsabilidad-header {
    padding: 15px;
  }

  .responsabilidad-header h2 {
    font-size: 1.5rem;
  }

  .responsabilidad-body {
    padding: 15px;
    gap: 15px;
  }

  .responsabilidad-imagen img {
    height: 150px;
  }

  .responsabilidad-descripcion p {
    font-size: 0.9rem;
  }

  .responsabilidad-caracteristica {
    padding: 15px;
  }

  .responsabilidad-caracteristica h4 {
    font-size: 1.1rem;
  }

  .responsabilidad-caracteristica p {
    font-size: 0.85rem;
  }
  
  .tarjeta-imagen {
    height: 160px;
  }
  
  .videoYT h1 {
    font-size: 1.8rem;
  }
  
  .video-container iframe {
    height: 200px;
  }
  
  .footer-column p {
    font-size: 0.75rem;
    max-width: 180px;
  }
  
  /* Historia y Filosofía Responsive */
  .historia-filosofia { padding: 30px 0; }
  .historia-filosofia .container { padding: 0 15px; }
  .historia-container { 
    flex-direction: column; 
    gap: 25px; 
  }
  .historia-texto h2,
  .filosofia-seccion h2 { font-size: 1.6rem; margin-bottom: 15px; }
  .historia-texto p,
  .filosofia-seccion p { font-size: 0.9rem; }
  .filosofia-seccion { padding: 20px; margin-top: 20px; }
  
  /* Compromiso responsive */
  .compromiso { height: 35vh; min-height: 200px; }
  .contenedor-compromiso { padding: 20px 25px; }
  .contenedor-compromiso .titulo { font-size: 1.5rem; }
  
  /* Misión responsive */
  .mision { padding: 30px 0; }
  .mision .container { padding: 0 15px; }
  .mision-container { 
    flex-direction: column; 
    gap: 25px; 
  }
  .mision-texto h2 { font-size: 1.6rem; margin-bottom: 15px; }
  .mision-texto p { font-size: 0.9rem; }
  
  /* Visión responsive */
  .vision { padding: 30px 0; }
  .vision .container { padding: 0 15px; }
  .vision-container { 
    flex-direction: column; 
    gap: 25px; 
  }
  .vision-texto h2 { font-size: 1.6rem; margin-bottom: 15px; }
  .vision-texto p { font-size: 0.9rem; }
}

/* Orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { 
    height: 70vh;
  }
  
  .carousel-caption h1 {
    font-size: 2.5rem !important;
    /*-webkit-text-stroke: 2px black;*/
  }
  
  .dosColumnas {
    flex-direction: row;
    min-height: 300px;
  }
  
  .dosColumnas .foto-columnas {
    height: 100%;
  }
  
  .dosColumnas .Texto2Columnas {
    padding: 30px 20px;
  }
  
  .tarjetas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   SECCIÓN MISIÓN
   ======================================== */
.mision {
  background-color: #e6e6e6;
  color: black;
  padding: 80px 0;
}

.mision .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.mision-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.mision-texto {
  flex: 1;
}

.mision-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mision-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mision-texto h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: black;
}

.mision-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: black;
}

/* ========================================
   SECCIÓN VISIÓN
   ======================================== */
.vision {
  background-color: #e6e6e6;
  color: black;
  padding: 80px 0;
}

.vision .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.vision-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.vision-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.vision-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vision-texto {
  flex: 1;
}

.vision-texto h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: black;
}

.vision-texto p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: black;
}



/* ========================================
   SECCIÓN VALORES
   ======================================== */

   /* ========================================
   SECCIÓN VALORES - VERSIÓN OPTIMIZADA
   ======================================== */
.valores {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background-color: #408362;
  color: black;
}

.valores .container {
  max-width: min(1600px, 95%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.valores-titulo {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  position: relative;
}

/*.valores-titulo::after {
  content: '';
  display: block;
  width: clamp(60px, 10vw, 80px);
  height: 3px;
  background-color: #fff;
  margin: 0.8rem auto 0;
}*/

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  width: 100%;
}

.valor-item {
  background: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border-top: 4px solid #3B5145;
  display: flex;
  flex-direction: column;
}

.valor-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.valor-imagen {
  width: 100%;
  aspect-ratio: 1/0.75;
  overflow: hidden;
}

.valor-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.valor-item:hover .valor-imagen img {
  transform: scale(1.08);
}

.valor-contenido {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.valor-contenido h3 {
  font-weight: 700;
  color: #183206;
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.valor-contenido p {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

/* Ajustes específicos para móviles */
@media (max-width: 480px) {
  .valores {
    padding: 2.5rem 0;
  }
  
  .valores-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 1.5rem;
  }
  
  .valor-item {
    border-radius: 10px;
  }
  
  .valor-imagen {
    aspect-ratio: 1/0.65;
  }
  
  .valor-contenido {
    padding: 1.25rem;
  }
}

/* ========================================
   CARRUSEL DE RESPONSABILIDADES (2 IMÁGENES)
   ======================================== */

/* Estilos específicos para el carrusel de responsabilidades */
.responsabilidades-carousel .carousel-slide {
  width: 200%; /* 2 imágenes = 200% */
}

.responsabilidades-carousel .carousel-item {
  flex: 0 0 50%; /* Cada imagen ocupa 50% del ancho */
  height: 100%;
  width: 50%;
  min-width: 50%;
}

/* Ajustes responsivos para el carrusel de responsabilidades */
@media (max-width: 768px) {
  .responsabilidades-carousel .carousel-caption h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .responsabilidades-carousel .carousel-caption h1 {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  .responsabilidades-carousel .carousel-caption h1 {
    font-size: 1.8rem;
  }
}

/* ========================================
   SECCIÓN RESPONSABILIDAD TEXTO
   ======================================== */
.responsabilidad-texto {
  background-color: #183206;
  padding: 80px 0;
  color: white;
}

.responsabilidades-texto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.responsabilidades-texto-container h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: white;
}

.responsabilidades-texto-container h2::after {
  display: none;
}

.responsabilidades-texto-parrafo {
  font-size: 1.1rem;
  line-height: 1.8;
  color: white;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border: 2px solid white;
  border-radius: 10px;  
}

/* Responsive para la sección de responsabilidad texto */
@media (max-width: 1024px) {
  .responsabilidades-texto-container {
    padding: 0 30px;
  }
  
  .responsabilidades-texto-container h2 {
    font-size: 2.2rem;
  }
  
  .responsabilidades-texto-parrafo {
    font-size: 1rem;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .responsabilidad-texto {
    padding: 60px 0;
  }
  
  .responsabilidades-texto-container {
    padding: 0 20px;
  }
  
  .responsabilidades-texto-container h2 {
    font-size: 2rem;
    margin-bottom: 25px;
  }
  
  .responsabilidades-texto-parrafo {
    font-size: 1rem;
    padding: 20px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .responsabilidad-texto {
    padding: 50px 0;
  }
  
  .responsabilidades-texto-container {
    padding: 0 15px;
  }
  
  .responsabilidades-texto-container h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .responsabilidades-texto-parrafo {
    font-size: 0.95rem;
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .responsabilidad-texto {
    padding: 40px 0;
  }
  
  .responsabilidades-texto-container {
    padding: 0 10px;
  }
  
  .responsabilidades-texto-container h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  .responsabilidades-texto-parrafo {
    font-size: 0.9rem;
    padding: 15px;
  }
}

/* ========================================
   SECCIÓN IMAGEN RESPONSABILIDADES
   ======================================== */
.imagenresponsabilidades {
  width: 100%;
  padding: 0;
  margin: 0;
}

.imagenresponsabilidades img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive para la sección de imagen responsabilidades */
@media (max-width: 1024px) {
  .imagenresponsabilidades img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .imagenresponsabilidades img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .imagenresponsabilidades img {
    height: 250px;
  }
}

@media (max-width: 360px) {
  .imagenresponsabilidades img {
    height: 200px;
  }
}

/* ========================================
   SECCIÓN TARJETAS RESPONSABILIDADES
   ======================================== */
.targetasresponsabilidades {
  background-color: #2e600b;
  padding: 80px 0;
  color: white;
}

.targetasresponsabilidades .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.targetasresponsabilidades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.targeta-responsabilidad {
  background-color: #183206;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 15px;
  border-radius: 10px;
}

.targeta-responsabilidad img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.targeta-responsabilidad:hover img {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.targeta-responsabilidad h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.3;
}

.targeta-responsabilidad p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 300px;
}

/* Responsive para la sección de tarjetas responsabilidades */
@media (max-width: 1024px) {
  .targetasresponsabilidades {
    padding: 60px 0;
  }
  
  .targetasresponsabilidades .container {
    padding: 0 30px;
  }
  
  .targetasresponsabilidades-grid {
    gap: 30px;
  }
  
  .targeta-responsabilidad img {
    width: 130px;
    height: 130px;
  }
  
  .targeta-responsabilidad h3 {
    font-size: 1.3rem;
  }
  
  .targeta-responsabilidad p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .targetasresponsabilidades {
    padding: 50px 0;
  }
  
  .targetasresponsabilidades .container {
    padding: 0 20px;
  }
  
  .targetasresponsabilidades-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .targeta-responsabilidad img {
    width: 120px;
    height: 120px;
  }
  
  .targeta-responsabilidad h3 {
    font-size: 1.2rem;
  }
  
  .targeta-responsabilidad p {
    font-size: 0.9rem;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .targetasresponsabilidades {
    padding: 40px 0;
  }
  
  .targetasresponsabilidades .container {
    padding: 0 15px;
  }
  
  .targetasresponsabilidades-grid {
    gap: 30px;
  }
  
  .targeta-responsabilidad img {
    width: 100px;
    height: 100px;
  }
  
  .targeta-responsabilidad h3 {
    font-size: 1.1rem;
  }
  
  .targeta-responsabilidad p {
    font-size: 0.85rem;
    max-width: 350px;
  }
}

@media (max-width: 360px) {
  .targetasresponsabilidades {
    padding: 30px 0;
  }
  
  .targetasresponsabilidades .container {
    padding: 0 10px;
  }
  
  .targetasresponsabilidades-grid {
    gap: 25px;
  }
  
  .targeta-responsabilidad img {
    width: 90px;
    height: 90px;
  }
  
  .targeta-responsabilidad h3 {
    font-size: 1rem;
  }
  
  .targeta-responsabilidad p {
    font-size: 0.8rem;
    max-width: 300px;
  }
}

/* ========================================
   SECCIÓN ACTIVIDADES RESPONSABILIDADES
   ======================================== */
.actividadesresponsabilidades {
  background-color: #0c1a05;
  padding: 80px 0;
  color: white;
}

.actividadesresponsabilidades .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
} 

.actividadesresponsabilidades h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: white;
}

.actividadesresponsabilidades h2::after {
  display: none;
}

.actividades-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.actividad-item {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 300px;
}

.actividad-item:nth-child(even) {
  flex-direction: row-reverse;
}

.actividad-texto {
  flex: 1;
  background-color: #2e600b;
  padding: 55.3px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.actividad-texto h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.actividad-texto p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.actividad-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.actividad-imagen img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive para la sección de actividades responsabilidades */
@media (max-width: 1024px) {
  .actividadesresponsabilidades {
    padding: 60px 0;
  }
  
  .actividadesresponsabilidades .container {
    padding: 0 30px;
  }
  
  .actividadesresponsabilidades h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }
  
  .actividad-item {
    gap: 30px;
    min-height: 280px;
  }
  
  .actividad-texto {
    padding: 35px;
  }
  
  .actividad-texto h3 {
    font-size: 1.6rem;
  }
  
  .actividad-texto p {
    font-size: 1rem;
  }
  
  .actividad-imagen img {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .actividadesresponsabilidades {
    padding: 50px 0;
  }
  
  .actividadesresponsabilidades .container {
    padding: 0 20px;
  }
  
  .actividadesresponsabilidades h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .actividades-grid {
    gap: 30px;
  }
  
  .actividad-item {
    flex-direction: column !important;
    gap: 25px;
    min-height: auto;
  }
  
  .actividad-texto {
    padding: 30px;
    order: 1;
  }
  
  .actividad-texto h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .actividad-texto p {
    font-size: 0.95rem;
  }
  
  .actividad-imagen {
    order: 2;
    width: 100%;
  }
  
  .actividad-imagen img {
    width: 100%;
    height: 250px;
    max-width: none;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .actividadesresponsabilidades {
    padding: 40px 0;
  }
  
  .actividadesresponsabilidades .container {
    padding: 0 15px;
  }
  
  .actividadesresponsabilidades h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  
  .actividades-grid {
    gap: 25px;
  }
  
  .actividad-item {
    gap: 20px;
  }
  
  .actividad-texto {
    padding: 25px;
  }
  
  .actividad-texto h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  
  .actividad-texto p {
    font-size: 0.9rem;
  }
  
  .actividad-imagen {
    width: 100%;
  }
  
  .actividad-imagen img {
    width: 100%;
    height: 200px;
    max-width: none;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .actividadesresponsabilidades {
    padding: 30px 0;
  }
  
  .actividadesresponsabilidades .container {
    padding: 0 10px;
  }
  
  .actividadesresponsabilidades h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }
  
  .actividades-grid {
    gap: 20px;
  }
  
  .actividad-item {
    gap: 15px;
  }
  
  .actividad-texto {
    padding: 20px;
  }
  
  .actividad-texto h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .actividad-texto p {
    font-size: 0.85rem;
  }
  
  .actividad-imagen {
    width: 100%;
  }
  
  .actividad-imagen img {
    width: 100%;
    height: 180px;
    max-width: none;
    border-radius: 10px;
  }
}

/* ========================================
   CARRUSEL DE NOTICIAS
   ======================================== */

/* Ajustes específicos para el carrusel de noticias (4 imágenes) */
#noticias-carousel-container .carousel-slide {
  width: 400%; /* 4 imágenes * 100% */
}

#noticias-carousel-container .carousel-item {
  flex: 0 0 25%; /* 100% / 4 imágenes */
  width: 25%;
  min-width: 25%;
}

/* Responsive para el carrusel de noticias */
@media (max-width: 768px) {
  #noticias-carousel-container .carousel-caption h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  #noticias-carousel-container .carousel-caption h1 {
    font-size: 1.5rem;
    line-height: 1.1;
  }
}

@media (max-width: 360px) {
  #noticias-carousel-container .carousel-caption h1 {
    font-size: 1.2rem;
    line-height: 1.1;
  }
}

/* ========================================
   SECCIÓN NOTICIAS
   ======================================== */
.bloque-noticias {
  background-color: #0c1a05; /* tono oscuro elegante */
  color: white;
  padding: 80px 0;
}

.bloque-noticias .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  margin-bottom: 60px;
  min-height: 400px;
}

.fila:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.fila img {
  width: 100%;
  max-width: 700px; /* Aumentado de 600px a 700px para hacer las imágenes más anchas */
  height: 400px; /* Altura fija para consistencia */
  object-fit: cover;
  flex: 1 1 55%; /* Aumentado de 40% a 55% para dar más espacio a las imágenes */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fila img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.fila .contenido {
  flex: 1 1 40%; /* Reducido de 50% a 40% para dar más espacio a las imágenes */
  padding: 2rem 3rem;
}

.fila h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: white;
}

.fila h2::after {
  display: none; /* Remover el subrayado automático de h2 */
}

.fila p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Fila con solo texto centrado */
.fila.texto-solo {
  justify-content: center;
  text-align: center;
  min-height: 200px;
}

.fila.texto-solo .contenido {
  flex: 1 1 100%;
  max-width: 800px;
  text-align: center;
}

.fila.texto-solo h2 {
  text-align: center;
}

.fila.texto-solo p {
  font-size: 1.2rem;
}

/* Texto centrado verticalmente */
.fila.centrada {
  align-items: center;
}

/* Orden de elementos cuando es texto + imagen */
.fila.texto-img {
  flex-direction: row;
}

.fila.img-texto {
  flex-direction: row;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .bloque-noticias {
    padding: 60px 0;
  }
  
  .bloque-noticias .container {
    padding: 0 30px;
  }
  
  .fila {
    margin-bottom: 50px;
    min-height: 350px;
  }
  
  .fila img {
    max-width: 600px;
    height: 350px;
    flex: 1 1 50%;
  }
  
  .fila .contenido {
    flex: 1 1 45%;
    padding: 1.5rem 2rem;
  }
  
  .fila h2 {
    font-size: 2.2rem;
  }
  
  .fila p {
    font-size: 1rem;
  }
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .bloque-noticias {
    padding: 50px 0;
  }
  
  .bloque-noticias .container {
    padding: 0 20px;
  }
  
  .fila {
    flex-direction: column;
    text-align: center;
    margin-bottom: 40px;
    min-height: auto;
  }

  .fila.texto-img {
    flex-direction: column;
  }

  .fila.img-texto {
    flex-direction: column;
  }

  .fila .contenido {
    padding: 1.5rem 1rem;
    flex: 1 1 100%;
    order: 2;
  }

  .fila img {
    max-width: 100%;
    height: 250px;
    flex: 1 1 100%;
    order: 1;
    margin-bottom: 20px;
  }
  
  .fila h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .fila p {
    font-size: 1rem;
    text-align: center;
  }
  
  .fila.texto-solo {
    min-height: 150px;
  }
  
  .fila.texto-solo .contenido {
    padding: 1rem;
  }
  
  .fila.texto-solo p {
    font-size: 1.1rem;
  }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .bloque-noticias {
    padding: 40px 0;
  }
  
  .bloque-noticias .container {
    padding: 0 15px;
  }
  
  .fila {
    margin-bottom: 30px;
  }
  
  .fila .contenido {
    padding: 1rem;
  }
  
  .fila img {
    height: 200px;
  }
  
  .fila h2 {
    font-size: 1.8rem;
  }
  
  .fila p {
    font-size: 0.95rem;
  }
  
  .fila.texto-solo p {
    font-size: 1rem;
  }
}

/* Responsive para móviles muy pequeños */
@media (max-width: 360px) {
  .bloque-noticias {
    padding: 30px 0;
  }
  
  .bloque-noticias .container {
    padding: 0 10px;
  }
  
  .fila {
    margin-bottom: 25px;
  }
  
  .fila .contenido {
    padding: 0.8rem;
  }
  
  .fila img {
    height: 180px;
  }
  
  .fila h2 {
    font-size: 1.6rem;
  }
  
  .fila p {
    font-size: 0.9rem;
  }
  
  .fila.texto-solo p {
    font-size: 0.95rem;
  }
}

/* ========================================
   SECCIÓN FORMULARIO DE CONTACTO
   ======================================== */
   .contacto-formulario {
    background-color: #3B5145;
    padding: 80px 0;
    color: white;
  }
  
  .contacto-formulario .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  .contacto-formulario h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: white;
  }
  
  .contacto-formulario h2::after {
    background-color: white;
  }
  
  .formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  
  .form-grupo {
    display: flex;
    flex-direction: column;
  }
  
  .form-grupo input,
  .form-grupo textarea {
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: "Lato", sans-serif;
    transition: background-color var(--motion) ease, border-color var(--motion) ease, transform var(--motion) ease;
  }
  
  .form-grupo input::placeholder,
  .form-grupo textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .form-grupo input:focus,
  .form-grupo textarea:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
  
  .form-grupo textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  .form-botones {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  
  .boton-enviar,
  .boton-ubicacion {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Lato", sans-serif;
    cursor: pointer;
    transition: background-color var(--motion) ease, transform var(--motion) ease, box-shadow var(--motion) ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .boton-enviar {
    background-color: #2e600b;
    color: white;
  }
  
  .boton-enviar:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
  }
  
  .boton-ubicacion {
    background-color: #9acfe1;
    color: white;
  }
  
  .boton-ubicacion:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
  }


 /* ========================================
   SECCIÓN MAPA DINÁMICO
   ======================================== */
   .mapa-contenido {
    background-color: #0c1a05;
    padding: 80px 0;
    color: white;
    min-height: 400px;
    transition: padding var(--motion) ease, background-color var(--motion) ease;
  }
  
  .mapa-contenido .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  .mapa-contenido .contenido-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
  }
  
  .mapa-contenido .contenido-placeholder h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
  }
  
  .mapa-contenido .contenido-placeholder p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
  }
  
  /* Detalle del mapa */
  .mapa-detalle {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.5s ease-out;
  }
  
  .mapa-header {
    background: #e6e6e6;
    padding: 30px;
    text-align: center;
  }
  
  .mapa-header h2 {
    color: black;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
  }
  
  .mapa-header h2::after {
    display: none;
  }
  
  .mapa-body {
    padding: 40px;
  }
  
  .mapa-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .mapa-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
  }
  
  .mapa-info {
    margin-top: 30px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: #333;
  }
  
  .mapa-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #183206;
    font-weight: 600;
  }
  
  .mapa-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
  }
  
  .mapa-info .direccion {
    font-weight: 600;
    color: #183206;
    font-size: 1.2rem;
  }
  
  /* Responsive para el formulario de contacto */
  @media (max-width: 768px) {
    .contacto-formulario {
      padding: 60px 0;
    }
    
    .contacto-formulario .container {
      padding: 0 20px;
    }
    
    .contacto-formulario h2 {
      font-size: 2rem;
      margin-bottom: 40px;
    }
    
    .formulario-contacto {
      gap: 20px;
    }
    
    .form-botones {
      flex-direction: column;
      gap: 15px;
    }
    
    .boton-enviar,
    .boton-ubicacion {
      width: 100%;
      padding: 18px 30px;
    }
    
    /* Responsive para el mapa */
    .mapa-contenido {
      padding: 60px 0;
    }
    
    .mapa-contenido .container {
      padding: 0 20px;
    }
    
    .mapa-header {
      padding: 25px;
    }
    
    .mapa-header h2 {
      font-size: 2rem;
    }
    
    .mapa-body {
      padding: 30px;
    }
    
    .mapa-container iframe {
      height: 400px;
    }
    
    .mapa-info {
      padding: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .contacto-formulario {
      padding: 50px 0;
    }
    
    .contacto-formulario .container {
      padding: 0 15px;
    }
    
    .contacto-formulario h2 {
      font-size: 1.8rem;
      margin-bottom: 30px;
    }
    
    .form-grupo input,
    .form-grupo textarea {
      padding: 12px 15px;
      font-size: 0.95rem;
    }
    
    .boton-enviar,
    .boton-ubicacion {
      padding: 15px 25px;
      font-size: 0.95rem;
    }
    
    /* Responsive para el mapa */
    .mapa-contenido {
      padding: 50px 0;
    }
    
    .mapa-contenido .container {
      padding: 0 15px;
    }
    
    .mapa-header {
      padding: 20px;
    }
    
    .mapa-header h2 {
      font-size: 1.8rem;
    }
    
    .mapa-body {
      padding: 20px;
    }
    
    .mapa-container iframe {
      height: 300px;
    }
    
    .mapa-info {
      padding: 15px;
    }
    
    .mapa-info h3 {
      font-size: 1.3rem;
    }
    
    .mapa-info p {
      font-size: 1rem;
    }
  }
  
  /* ========================================
   SOLUCIÓN ESPECÍFICA PARA RESPONSABILIDADES
   ======================================== */
  /* Asegurar que el hero en responsabilidades tenga el margen correcto */
  .responsabilidades-carousel {
    margin-top: -100px !important;
  }

  /* Asegurar que el hero en responsabilidades ocupe toda la altura */
  .responsabilidades-carousel .hero {
    margin-top: -100px !important;
  }

/* Preferencias de reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   BOTONES MEJORADOS PARA TARJETAS DE NOTICIAS
   ======================================== */
.responsabilidad-btn {
  /* Ancho completo de la tarjeta */
  width: 100%;
  
  /* Posicionamiento en la parte inferior */
  margin-top: auto;
  
  /* Estilos base mejorados */
  align-self: flex-start;
  background-color: #e6e6e6;
  color:black;
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;

  /* Cursor pointer */
  cursor: pointer;
  
  /* Posicionamiento relativo para efectos */
  position: relative;
  overflow: hidden;
}

/* Efecto hover con animaciones */
.responsabilidad-btn:hover {
  /* Transformación y elevación */
  transform: translateY(-3px);
  
  /* Sombra más pronunciada */
  box-shadow: 0 8px 25px rgba(57, 75, 66, 0.4);
  
  /* Gradiente más intenso */
  background-color: #3B5145;
  
  /* Escala sutil */
  transform: translateY(-3px) scale(1.02);
  color: white;
}

/* Efecto activo al hacer clic */
.responsabilidad-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(64, 131, 98, 0.3);
}

/* Efecto de brillo al hover */
.responsabilidad-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.responsabilidad-btn:hover::before {
  left: 100%;
}

/* Estado activo para botones seleccionados */
.responsabilidad-btn.activo {
  background: linear-gradient(135deg, #183206 0%, #0c1a05 100%);
  box-shadow: 0 6px 20px rgba(24, 50, 6, 0.5);
  transform: translateY(-2px);
}

/* Ajustes para el contenedor de la tarjeta */
.tarjeta-contenido {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tarjeta-contenido p {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Responsive para los botones mejorados */
@media (max-width: 768px) {
  .responsabilidad-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
  }
}

@media (max-width: 480px) {
  .responsabilidad-btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
  }
}

/* ========================================
   SECCIÓN TRADUCTOR
   ======================================== */
   /* Botón del footer */
#translateToggleBtn {
	cursor: pointer;
	border: 0;
	padding: 10px 14px;
	border-radius: 6px;
	background: #1e90ff;
	color: #fff;
	font-weight: 600;
	transition: background .2s ease;
}
#translateToggleBtn:hover { background: #1777d1; }

/* Contenedor del widget: fijo y discreto sobre el footer */
#google_translate_container {
	position: fixed;
	right: 16px;
	bottom: 72px; /* separarlo del footer */
	z-index: 9999;
	background: #ffffff;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	padding: 8px 10px;
	display: none; /* inicia oculto */
}

/* Ajustes del gadget para no romper layout */
#google_translate_element .goog-te-gadget {
	font-family: inherit !important;
	color: inherit !important;
}
#google_translate_element .goog-te-gadget-simple {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,.15);
}
#google_translate_element .goog-te-gadget img {
	display: none; /* oculta icono bandera */
}

/* Ocultar la barra superior de Google y que no empuje el layout */
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
