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

body {
  font-family: Arial, sans-serif;
  background-color: #fff;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  width: 100%;
  height: 80px;
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo img {
  height: 50px;
  max-width: 100%;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  font-size: 30px;
  cursor: pointer;
  color: white;
  display: block;
}

/* MENÚ LATERAL */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 260px;
  height: 100vh;
  background-color: #111;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -4px 0 8px rgba(0, 0, 0, 0.4);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #f1c40f;
}

.close-btn {
  font-size: 26px;
  color: white;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 20px;
}

.mobile-logo img {
  width: 100%;
  height: auto;
  margin-top: 40px;
}

/* SECCIÓN BIENVENIDA */
.bienvenida {
  background-color: #000;
  padding: 100px 0 40px;
  color: white;
}

.bienvenida-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex-wrap: wrap;
  text-align: center;
}

.bienvenida-logo {
  width: 120px;
  max-width: 100%;
}

.bienvenida-titulo {
  font-family: 'Anton', sans-serif;
  font-size: 2.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* CARRUSEL */
.carousel {
  margin-top: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: url('../img_wp/fondo_carrusel.jpg') center/cover fixed no-repeat;
  color: white; 
}

.carousel-container {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
  width: 100%;
}

.slide img {
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.slide.active {
  display: block;
}

/* FLECHAS */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-size: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  z-index: 10;
  transition: 0.3s;
}

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

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* REDES SOCIALES EN CARRUSEL */
.social-icons {
  position: fixed;
  top: 20%;
  left: 10px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2000;
}

.social-icons img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
  cursor: pointer;
}

.social-icons img:hover {
  transform: scale(1.2);
}

@media (max-width: 480px) {
  .social-icons img {
    width: 24px;
    height: 24px;
  }
}

/* TIPOGRAFÍA */
h1, h2 {
  font-family: 'Anton', sans-serif;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

/* NOVEDADES */
.novedades {
  position: relative;
  padding: 80px 0;
  background: url('../img_wp/fondo_novedades.jpg') center/cover fixed no-repeat;
  overflow: hidden;
}

.novedades-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}

.novedades .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.novedades-titulo {
  font-size: 2.5rem;
  font-family: 'Anton', sans-serif;
  margin-bottom: 40px;
  color: #ffffff;
}

.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
}

.novedad-img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Mantiene forma cuadrada */
  object-fit: cover;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

/* MODAL ZOOM */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.zoom-content {
  display: block;
  margin: 5% auto;
  max-width: 80%;
  max-height: 80vh;
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* MISIÓN CON FONDO DINÁMICO Y ANIMACIÓN */
.mision {
  padding: 100px 20px;
  background: url('../img_wp/fondo_mision.jpg') center/cover fixed no-repeat;
  color: white;
  overflow: hidden;
  min-height: 800px;
  padding: 200px 50px;
}

.mision-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.6s ease-out;
}

.mision-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.mision-imagen img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.mision-texto {
  flex: 1;
  min-width: 280px;
}

.mision-texto h2 {
  font-size: 2.5rem;
  font-family: 'Anton', sans-serif;
  margin-bottom: 20px;
  color: white;
}

.mision-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.contacto {
  padding: 100px 20px;
  background: url('../img_wp/fondo_contacto.png') center/cover fixed no-repeat;
  color: white;
  overflow: hidden;
  min-height: 800px;
  padding: 300px 50px;
}

.contacto-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contacto-texto {
  flex: 1;
  min-width: 280px;
}

.contacto-texto h2 {
  font-size: 2.5rem;
  font-family: 'Anton', sans-serif;
  margin-bottom: 20px;
  color: white;
}

.contacto-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}

.contacto-imagen img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.icono-telefono {
  width: 24px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  margin-right: 8px;
}

.footer {
  background-color: #111;
  color: white;
  padding: 30px 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.footer-logo img {
  width: 120px;
}

.footer-texto {
  font-size: 0.95rem;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }

  .menu-toggle {
    font-size: 26px;
  }

  .mobile-menu a {
    font-size: 18px;
  }

  .bienvenida-content {
    flex-direction: column;
  }

  .bienvenida-titulo {
    font-size: 2rem;
  }

  .bienvenida-logo {
    width: 90px;
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1rem;
  }
}

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