html, body {
  font-family: 'Arial', sans-serif;
}

.about-video-section {
  position: relative;
  max-width: 100%;
  min-height: 100vh;
  padding: 0;
  background-image: url('../img/fondo_nosotros_opc1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente */
}

.about-video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* Filtro oscuro */
  z-index: 1;
  pointer-events: none;
}

@keyframes shineTitle {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.about-video-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 60vh;
  width: 100%;
  padding: 40px 0;
}

.about-video-text {
  background: linear-gradient(135deg, rgba(208, 207, 207, 0.184) 0%, rgba(35, 35, 35, 0.167) 100%);
  border-radius: 30px;
  padding: 36px 32px;
  font-size: 1.18rem;
  color: #ffffff;
  text-align: justify;
  box-shadow:
    0 8px 32px 0 rgba(254, 254, 254, 0.441),
    0 2px 16px #8a898969;
  width: 100%;
  box-sizing: border-box;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0);

  transition: box-shadow 0.3s, transform 0.3s;
}

.about-video-text p{
  margin-bottom: .8rem;
}

.about-video-text:hover {
  box-shadow:
    0 16px 48px 0 rgba(255, 255, 255, 0.18),
    0 4px 24px rgba(0, 0, 0, 0);
  transform: translateY(-4px) scale(1.02);
}

.about-video-embed {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.about-video-embed iframe {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0008;
  border: none;
}

/* Misión y Visión Section */
.mision-vision-section {
  width: 100vw;
  background: black;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.mision-vision-container {
  display: flex;
  width: 200vw;
  max-width: 100vw;
  padding: 0;
  margin: 0;
  gap: 0;
}

.mision-card, .vision-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 280px 50px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 0;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.mision-card {
  background-image: url('../img/fondo_mision.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.vision-card {
  
    background-image: url('../img/fondo_vision.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Filtro oscuro para ambas tarjetas */
.mision-card::before,
.vision-card::before {
  content: "";
  
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.71); /* Ajusta la opacidad según lo oscuro que quieras */
  z-index: 1;
  pointer-events: none;
}

/* Asegura que el contenido esté sobre el filtro */
.mision-card > *,
.vision-card > * {
  position: relative;
  z-index: 2;
}

.mision-card-content {
  position: absolute;
  top: 0;
  left: 0;
 
  width: 100%;
  padding: 9px 32px 24px 32px;
  background: rgba(198, 197, 197, 0.716); /* Fondo oscuro solo detrás del texto */
  z-index: 2;

}
.vision-card-content {
  position: absolute;
  top: 0;
  left: 0;
 
  width: 100%;
  padding: 9px 32px 24px 32px;
  background: rgba(127, 126, 126, 0.797); /* Fondo oscuro solo detrás del texto */
  
  z-index: 2;
  border-bottom-right-radius: 10px;
}

/* Ajusta el texto */
.mision-card-content h3,
.vision-card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #000000;
  
}

.mision-card-content p,
.vision-card-content p {
  color: #000000;
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Animación de entrada para misión y visión */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.mision-card,
.vision-card {
  animation: fadeUp 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Numeros Section */
.numeros-section {
  width: 100%;
  background: #fff;
  padding: 60px 0 40px 0;
  display: flex;
  justify-content: center;
}

.numeros-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
}

.numero-box {
  text-align: center;
  flex: 1 1 0;
}

.numero {
  display: block;
  font-size: 3.2rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.numero-box p {
  font-size: 1.1rem;
  color: #222;
}

/* VALORES (antes SERVICIOS) */
.valores-section {
  position: relative;
  background: url('../img/fondo_noso.jpg') no-repeat center center/cover;
  color: var(--color_texto_index);
 text-align: center ;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  min-height: 10rem; 
  max-height:auto ;
  color: #fff;
}

.valores-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.451);
  z-index: 0;
}

.valores-section h2 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 4rem;
  z-index: 1;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.345);
}

.valores-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;         /* Permite que bajen a otra fila */
  justify-content: center;
  gap: 3rem;
  width: 100%;
  padding-bottom: 10rem;
}

.valor-card {
  flex: 1 1 33%;           /* Ocupa aprox 1/3 del ancho, ajusta si quieres más espacio */
  max-width: 390px;
  min-width: 260px;
  box-sizing: border-box;
  text-align: center;
  border: solid 0.2rem rgba(255, 255, 255, 0.089);
  padding: 2rem;
  opacity: 1;
  transform: none;
  
  box-shadow: 0 8px 32px 0 rgba(242, 242, 242, 0.18);
  border-radius: 1.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  background: rgba(255, 255, 255, 0.062);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
}

.valor-card:hover {
  transform: translateY(10px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.valor-card-img-container {
  width: 100%;
  aspect-ratio: 1/1;           /* Hace el contenedor cuadrado */
  max-width: 180px;            /* Tamaño máximo opcional */
  margin: 0 auto 1rem auto;    /* Centra y agrega margen abajo */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.valor-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* Rellena el cuadro, recorta si es necesario */
  object-position: center;
  display: block;
}

.valor-card h3 {

  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.valor-card p {
  font-weight: 400;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .about-video-section {
    min-height: 60vh;
    padding: 0;
  }
  .about-video-container {
    flex-direction: column;
    gap: 18px;
    min-height: 0;
    padding: 12px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .about-video-title {
    font-size: 1.1rem;
    margin-top: 18px;
    margin-bottom: 10px;
  }
  .about-video-embed iframe {
    max-width: 95vw;
    height: 240px; /* Más alto */
    border-radius: 10px;
  }
  .about-video-text {
    border-left: 4px solid rgba(255,255,255,0.25); /* Borde blanco más transparente */
    border-radius: 14px;
    padding: 12px 8px;
    font-size: 0.92rem;
    min-width: 0 !important;
    max-width: 98vw;
    width: 98vw;
    background: linear-gradient(135deg, rgba(208, 207, 207, 0.13) 0%, rgba(35, 35, 35, 0.10) 100%);
    box-shadow: 0 4px 16px 0 rgba(254, 254, 254, 0.10), 0 1px 8px #8a898969;
  }
  .about-video-text,
  .about-video-embed {
    width: 100%;
    max-width: 100vw;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .mision-vision-container {
    flex-direction: column;
    width: 98%;
  }
  .mision-card, .vision-card {
    border-radius: 0 !important;
    margin-bottom: 18px;
    padding: 300px 12px;    /* MÁS ALTO en tablet */
    min-height: 420px;      /* MÁS ALTO en tablet */
  }
  .mision-card-content,
  .vision-card-content {
    padding: 18px 10px 12px 10px;
    border-bottom-right-radius: 0;
  }
  .numeros-container {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .numero {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .about-video-section {
    min-height: 40vh;
    padding: 0;
  }
  .about-video-title {
    font-size: 0.95rem;
    margin-top: 8px;
    margin-bottom: 6px;
  }
  .about-video-embed iframe {
    height: 180px; /* Más alto en móvil */
    border-radius: 6px;
  }
  .about-video-text {
    border-left: 3px solid rgba(255,255,255,0.18); /* Más transparente en móvil */
    border-radius: 8px;
    padding: 6px 3px;
    font-size: 0.82rem;
    max-width: 99vw;
    width: 99vw;
    background: linear-gradient(135deg, rgba(208, 207, 207, 0.10) 0%, rgba(35, 35, 35, 0.08) 100%);
    box-shadow: 0 2px 8px 0 rgba(254, 254, 254, 0.08), 0 1px 4px #8a898969;
  }
  .mision-card, .vision-card {
    border-radius: 0 !important;
    padding: 300px 6px;     /* MÁS ALTO en móvil */
    min-height: 260px;      /* MÁS ALTO en móvil */
  }
  .mision-card-content,
  .vision-card-content {
    padding: 10px 4px 8px 4px;
    border-bottom-right-radius: 0;
  }
  /* Si usas Animate.css o AOS, puedes ocultar las clases animadas: */
  .animate__animated,
  [data-aos] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
/*SERVICIOS*/
.services-sectionn {
  position: relative;
  background: url('../img/servicios.jpeg') no-repeat center center/cover;
  color: var(--color_texto_index);
  text-align: center;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  min-height: 10rem; 
  max-height:auto ;
}

/* Overlay oscuro para mejorar contraste */
.services-sectionn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* Ajusta opacidad según necesites */
  z-index: 0;
}

.services-sectionn h2 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 4rem;
  z-index: 1;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

.services-containerr {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: nowrap;
  width: 100%;
  padding-bottom: 10rem;
}

.service-card {
  max-width: 300px;
  text-align: center;
  border: solid 0.2rem rgba(255, 255, 255, 0.8);
  padding: 2rem;
  opacity: 0;
  transform: translateY(60px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border-radius: 1.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
}

.service-card {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  backdrop-filter: blur(6px);
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,0.18);
}

.service-card:hover {
  transform: translateY(10px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.5);
}


.service-card-img-container {
  width: 100%;
  height: 180px; /* Ajusta la altura según tu diseño */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: transparent;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}


.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.service-card p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto;
}

/* Ajustes responsivos para la sección de servicios */
@media (max-width: 900px) {
  .services-section {
    padding: 8rem 1rem;
    min-height: 0;
  }
  .services-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .services-container {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .service-card {
    max-width: 90%;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .services-section {
    padding: 3rem 0.5rem;
    min-height: 0;
  }
  .services-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }
  .services-container {
    gap: 1rem;
  }
  .service-card {
    max-width: 100%;
    padding: 1rem 0.5rem;
  }
}

.brochure-section {
  width: 100%;
  background: #f5f5f5;
  padding: 60px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.brochure-section h1{
  padding-bottom: 1rem;
  font-size: 2.5rem;
  font-family: 'Arial', sans-serif;
}

.brochure-section h3{
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
}
.brochure-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: center;
}

.brochure-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #c79415;
  color: #c79415;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.brochure-icon:hover {
  background: #c79415;
  color: #fff;
  box-shadow: 0 4px 16px rgba(199,148,21,0.18);
}