/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente y fondo lavanda */
body {
  font-family: sans-serif;
  background-color: #C9C4E5; /* Color lavanda */
  overflow-x: hidden;
}

/* Header dividido en 2 secciones */
header {
  display: flex;
  flex-direction: column;
}

.header-top {
  background-color: orange;
  padding: 10px 0;
}

.header-bottom {
  background-color: white;
  padding: 10px 20px;
  position: relative;
}

/* Logos uno debajo del otro y centrados */
.grid-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo1 {
  width: 200px;
  height: 150px;
  animation: spinPause 13s linear infinite;
}

@keyframes spinPause {
  0% { transform: rotateY(0deg); }
  46.15% { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

.logo2 {
  width: 200px;
  height: 100px;
}

/* Grid 2 centrado */
.grid-2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón animado */
.animated-button {
  background-color: #3B4C8A;
  color: white;
  border: 2px solid white;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 10px white;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  z-index: 20;
  margin: 0 auto;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px white; }
  50% { box-shadow: 0 0 20px white; }
  100% { box-shadow: 0 0 10px white; }
}

/* Menú hamburguesa más pequeño */
.menu-toggle {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  padding: 5px;
  background: linear-gradient(145deg, #3B4C8A, #2c3a6a);
  border: 2px solid white;
  border-radius: 8px;
  box-shadow: 0 0 10px white;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  z-index: 30;
}

.menu-toggle .bar {
  width: 20px;
  height: 2px;
  background-color: white;
  margin: 2px 0;
}

/* Menú oculto inicialmente */
.menu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(145deg, #3B4C8A, #2c3a6a);
  color: white;
  border: 2px solid white;
  border-radius: 12px;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: all 1.5s ease-in-out;
  width: 80%;
  max-width: 400px;
  z-index: 999;
}

.menu.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.menu ul {
  list-style: none;
}

.menu ul li {
  margin: 10px 0;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  display: block;
  border-radius: 8px;
}

.menu ul li a:hover {
  background-color: #2c3a6a;
  color: #fff7d0;
}

/* Carrusel 3D */
.grid-3 {
  background-color: #C9C4E5;
  height: 500px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container {
  position: relative;
  height: 500px;
  width: 100%;
  max-width: 900px;
}

.slides-wrapper {
  height: 500px;
  position: relative;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%) rotateY(90deg);
  opacity: 0;
  transition: none;
  z-index: 0;
}

.slide.active {
  transform: translate(-50%, -50%) rotateY(0deg);
  opacity: 1;
  z-index: 10;
}

/* Tamaño de imágenes del slideshow */
.slide-img {
  width: 100%;
  height: 800px;
  object-fit: cover;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 48px;
  color: white;
  cursor: pointer;
  z-index: 20;
  text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.nav-button.prev { left: 10px; }
.nav-button.next { right: 10px; }

.preview-menu {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.preview-menu img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: 0.3s;
  object-fit: contain;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.preview-menu img.active,
.preview-menu img:hover {
  opacity: 1;
  border-color: #3B4C8A;
}

.footer {
  padding: 10px;
  text-align: center;
  background: white;
  font-size: 14px;
}
