* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: row;
  background-color: #151414;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  overflow-x: hidden;
}

/* Barra de navegación */
.navbar {
  height: 40px;
  background-color: #031a6eee;
  padding: 10px 5%; /* Padding porcentual para mejor responsividad */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: flex-start; /* Mantiene alineado a la izquierda pero con margen */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .logo {
  margin-left: 2%; /* Margen porcentual */
  margin-right: 5%; /* Espacio mayor después del logo */
  flex-shrink: 0;
  font-size: 28px;
  font-weight: bold;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: auto; /* Ancho automático según contenido */
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  padding: 5px 15px; /* Espacio interno aumentado */
  display: block;
  transition: background 0.3s;
  white-space: nowrap; /* Evita saltos de línea */
  position: relative;
  margin: 0 20px; /* Espacio aumentado entre items */
}

/* Menús desplegables */
.dropdown-content {
  min-width: 180px; /* Ancho aumentado */
}

/* Versión responsive */
@media (max-width: 1200px) {
  .navbar ul li {
    margin: 0 15px; /* Espacio reducido en pantallas medianas */
  }
}

@media (max-width: 992px) {
  .navbar {
    padding: 10px 3%;
  }
  .navbar ul li {
    margin: 0 10px;
  }
}

.navbar ul li a:hover {
  background: linear-gradient(to right, #16599cc2, #157a74ad);
  border-radius: 5px;
}

/* Estilos adicionales */
.navbar .logo {
  color: white;
  font-size: 26px;
  font-weight: bold;
  margin-left: 2%;
  text-shadow: 3px 3px 4px rgba(5, 119, 150, 0.644);
}

/* Menús desplegables */
.dropdown-content {
  font-size: 0.9rem;
  display: none;
  position: absolute;
  background-color: #031053ae;
  min-width: 160px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 5px;
  text-align: left;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  /* Gris claro */
}

.dropdown:hover .dropdown-content {
  display: block;
}

.color-split {
  display: flex;
  width: 100%;
  height: calc(100vh - 40px);
  margin-top: 40px;
}

.color-section {
  height: 100%;
  position: relative; /* Añadido */
}

.blue-section {
  width: 25%;
  background-color: #262bb6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Previene que se encoja */
}

.logo-section {
  position: absolute;
  top: 140px; /* Distancia desde la parte superior */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 150px;
  height: auto;
}

.logo-shadow {
  width: 80%;
  max-width: 200px;
  height: auto;
  transition: all 0.3s ease;
  filter: 
      drop-shadow(6px 6px 8px rgba(249, 246, 246, 0.64)) /* Sombra exterior */
      brightness(1.05); /* Ligero brillo */
}

.logo-shadow:hover {
  filter: 
      drop-shadow(8px 8px 18px rgba(242, 240, 240, 0.6)) /* Sombra más pronunciada al hover */
      brightness(1.1);
  transform: scale(1.02); /* Efecto de leve zoom */
}

.blue-text {
  text-align: center;
  width: 100%;
}

.blue-text h1 {
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  color: rgb(73, 198, 239);
  font-size: 2.1rem;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(244, 237, 237, 0.392);
}

.blue-text h2 {
  color: rgb(73, 239, 134);
  font-size: 1.2rem;
  font-weight: 300;
  margin-top: 0;
  text-shadow: 3px 3px 5px rgba(244, 240, 240, 0.615);
}

.green-section {
  width: 75%;
  position: relative; /* Necesario para el posicionamiento absoluto */
  overflow: hidden; /* Para que la imagen no sobresalga */
}

.imagen-derecha {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: right;
}

/* Versión responsive para móviles */
@media (max-width: 768px) {
  .color-split {
      flex-direction: column;
  }
  .blue-section, .green-section {
      width: 100%;
  }
  .imagen-derecha {
      width: 100%;
      height: auto;
  }
}

.green-text {
  position: absolute;
  right: 30px;
  bottom: 50px;
  background-color: rgba(20, 93, 170, 0.6); /* Fondo semitransparente */
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: 8px 8px 25px rgba(14, 1, 95, 0.605);
  backdrop-filter: blur(1px); /* Efecto de desenfoque (opcional) */
  z-index: 4; /* Para que aparezca sobre la imagen */
}

.green-text h2 {
  color: rgba(8, 235, 8, 0.981);
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
  text-align: right;
  font-style: italic;
  text-shadow: 3px 3px 6px rgba(11, 3, 3, 0.681);
}

/* Versión responsive para móviles */
@media (max-width: 768px) {
  .green-text{
      right: 15px;
      bottom: 15px;
      max-width: 80%;
      padding: 12px;
  }
  .green-text h2 {
      font-size: 1rem;
  }
}
.carousel-container {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-color: #010b2b;
  padding: 5px 0;
  position: relative;
  /* display: flex; */
  justify-content: center;
  padding-top: 70px;
}

.carousel-track {
  display: flex;
  gap: 30px;
  /* Espacio entre imágenes */
  width: max-content;
  /* Se ajusta al contenido */
  animation: scroll 20s linear infinite;
}

.carousel-item {
  position: relative;
  flex: 0 0 600px;
  height: 550px;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f7f0f0;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Estilo del comentario (caption) */
.carousel-item .caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 70%; /* Ancho reducido */
  height: 50%; /* Altura automática según contenido */
  max-height: 70%; /* Altura máxima */
  display: flex;
  justify-content: flex-start; /* Alineación izquierda */
  align-items: flex-end; /* Alineación inferior */
  color: white;
  background-color: rgba(5, 1, 33, 0.63);
  font-size: 16px; /* Tamaño reducido */
  text-align: left; /* Alineación texto a la izquierda */
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  padding: 15px;
  border-radius: 8px;
  backdrop-filter: blur(3px); /* Efecto de difuminado opcional */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(10px); /* Pequeño desplazamiento inicial */
  transition: all 0.3s ease; /* Transición suave para hover */
}

/* Efecto al hacer hover */
.carousel-item:hover .caption {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Detiene la animación al pasar el mouse */
.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

/* Estilo del ícono flotante de WhatsApp */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  animation: flotar 2s ease-in-out infinite;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  animation: girar 20s linear infinite;
  display: block;
  position: fixed;
  bottom: 170px;
  right: 10px;
  transform-origin: center center;
  /* Centra la rotación */
  z-index: 1500;
}

.whatsapp-icon img {
  width: 80px;
  /* ajusta el tamaño si lo necesitas */
  height: auto;
}

/* Animaciones */
@keyframes flotar {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-top: 0px;
}

.video-ajustado {
  width: 640px;
  height: 360px;
  border-radius: 10px;
  object-fit: cover;
}

.imagen-lateral {
  height: 360px;
  /* igual altura que el video */
  width: 240px;
  /* puedes ajustar a lo que necesites */
  object-fit: cover;
  /* recorta sin deformar */
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.imagen-lateral:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .video-container {
    flex-direction: column;
  }

  .imagen-lateral {
    height: auto;
    width: 90%;
    max-width: 300px;
  }

  video {
    width: 90%;
    height: auto;
  }
}

/* Estilos Sección Nosotros */
/* Estilos Sección Nosotros Pantalla Completa */
.nosotros-fullscreen {
  position: fixed;
  top: 40px; /* Debajo del navbar */
  left: 0;
  width: 100%;
  height: calc(100vh - 40px);
  background: linear-gradient(135deg, #031a6e 0%, #1a237e 100%);
  color: white;
  padding: 40px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 999;
  display: none;
}

.nosotros-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.nosotros-header h1 {
  font-size: 2.8rem;
  margin: 20px 0;
  color: white;
}

.nosotros-header h1 span {
  color: #4fc3f7;
}

.btn-volver {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

.btn-volver:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-5px);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.nosotros-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 15px;
  transition: all 0.4s;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nosotros-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.nosotros-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #4fc3f7;
}

.nosotros-card h2 {
  color: #4fc3f7;
  margin-top: 0;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.nosotros-card p, .nosotros-card li {
  line-height: 1.6;
  font-size: 1.1rem;
}

.nosotros-card ul {
  padding-left: 20px;
}

.nosotros-card li {
  margin-bottom: 15px;
  position: relative;
}

.nosotros-card li strong {
  color: #4fc3f7;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.valor-item {
  background: rgba(79, 195, 247, 0.1);
  padding: 20px;
  border-radius: 10px;
  border-left: 3px solid #4fc3f7;
}

.valor-item h3 {
  color: #4fc3f7;
  margin-top: 0;
}

.nosotros-footer {
  text-align: center;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Efectos de scroll suave */
html {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 992px) {
  .nosotros-fullscreen {
      padding: 30px 20px;
  }
  
  .nosotros-header h1 {
      font-size: 2.2rem;
  }
  
  .nosotros-grid {
      grid-template-columns: 1fr;
  }
  
  .btn-volver {
      position: relative;
      margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .nosotros-header h1 {
      font-size: 1.8rem;
  }
  
  .nosotros-card {
      padding: 30px 20px;
  }
  
  .nosotros-icon {
      font-size: 2.5rem;
  }
}

/* Estilos para secciones de pantalla completa */
.fullscreen-section {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  height: calc(100vh - 40px);
  background: #031a6e;
  z-index: 900;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section-header h1 {
  color: white;
  font-size: 2.5rem;
  margin: 20px 0;
}

.section-header h1 span {
  color: #4fc3f7;
}

.btn-volver {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

.btn-volver:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-container {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
  background: black;
  border-radius: 10px;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .video-container {
      width: 95%;
  }
  
  .section-header h1 {
      font-size: 1.8rem;
  }
}