/* =========================
   🎨 ESTILOS GLOBALES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

/* =========================
   📦 CONTENEDORES PRINCIPALES
========================= */
.page-wrapper {
  max-width: 960px; /* Ancho de toda la página */
  margin: 0 auto; /* Centra el contenido en la pantalla */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =========================
   🔝 HEADER Y MENÚ
========================= */
header {
  width: 100%;
  background: #0047AB; /* Azul principal */
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.activo {
  background: #0A1F44; /* Azul oscuro */
}

.redes {
  display: flex;
  gap: 15px;
}

.redes a {
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.redes a:hover {
  transform: scale(1.1);
}

/* =========================
   🖼️ BANNER Y HERO
========================= */
.main-content {
  flex-grow: 1;
}

.banner {
  position: relative;
  width: 100%;
  height: 450px; /* **Altura disminuida** */
  overflow: hidden;
}

.carousel-container {
  display: flex;
  width: 400%;
  height: 100%;
  animation: carrusel 20s infinite;
}

.banner-img {
  width: 25%;
  height: 100%;
  object-fit: cover;
}

.contenido-banner {
  width: 100%;
  height: 100%;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.contenido-banner h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

@keyframes carrusel {
    0% { transform: translateX(0);}
    25% {transform: translateX(0);}
    30% {transform: translateX(-25%);}
    50% {transform: translateX(-25%);}
    55% {transform: translateX(-50%);}
    75% {transform: translateX(-50%);}
    80% {transform: translateX(-75%);}
    100% {transform: translateX(-75%);}
}

/* =========================
   ⭐ GALERÍA
========================= */
section {
  padding: 50px 10%;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0A1F44;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.galeria-grid .card, .galeria-grid img {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.galeria-grid .card:hover, .galeria-grid img:hover {
  transform: translateY(-5px);
}

.galeria-grid .card img, .galeria-grid img {
  width: 100%;
  aspect-ratio: 3/2; /* **Nueva proporción de las imágenes** */
  object-fit: cover;
}

/* =========================
   🏫 SECCIÓN NOSOTROS
========================= */
.seccion-nosotros {
  display: flex;
  flex-wrap: wrap;
   gap: 20px;
   padding: 50px 10%;
  align-items: center;
   background: #f4f7f9;
}

.seccion-nosotros .texto {
  flex: 1 1 50%;
  padding: 30px 20px;
  border-radius: 8px;
}

.seccion-nosotros .imagen {
  flex: 1 1 50%;
  padding: 30px 20px;
}

.seccion-nosotros img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =========================
   📞 CONTACTO
========================= */
.contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 50px 10%;
  background: #f4f7f9;
}

.contacto form {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 20px;
}

.contacto input,
.contacto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px; 
}
           
.contacto button {
  background: #0047AB;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contacto button:hover {
  background: #0A1F44;
}

.contacto .info { 
  flex: 1 1 50%;
  padding:30px 20px ;
}

/* =========================
   🔻 FOOTER
========================= */
footer {
  background:#0047AB;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px 10%;
}

footer h3 {
  margin-bottom: 10px;
  border-bottom: 2px solid #1a237e;
  padding-bottom: 5px;
}