/* ========================= */
/* FUENTES Y CONFIGURACIÓN */
/* ========================= */
@font-face {
  font-family: 'micro-extend';
  src: url('micro-extend/MicroExtendFLF-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'micro-extend', sans-serif;
}

/* ========================= */
/* MENÚ DE NAVEGACIÓN */
/* ========================= */
.menu .opciones {
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: flex-end;
  margin-top: 15px;
  margin-right: 15px;
}

.menu a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: darkred;
}

/* ========================= */
/* CABECERA */
/* ========================= */
h1 {
  color: #870000;
  font-size: clamp(1.6rem, 4vw, 4rem);
  text-align: center;
  margin: 2rem 1rem;
}

/* ========================= */
/* CONTENEDOR PRINCIPAL */
/* ========================= */
.contenedor-moda {
  display: flex;
  flex-wrap: nowrap; /* texto y carrusel lado a lado en grande */
  justify-content: flex-start;
  gap: 4rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem; /* márgenes laterales consistentes */
}

/* ========================= */
/* TEXTO A LA IZQUIERDA */
/* ========================= */
.texto-moda {
  flex: 1 1 45%; /* ocupa 45% del contenedor */
  max-width: 600px;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
}

/* ========================= */
/* CARRUSEL A LA DERECHA */
/* ========================= */
.carrusel-container {
  flex: 1 1 50%; /* ocupa 50% del contenedor */
  max-width: 600px;
  position: relative;
  border: 3px solid #000;
  background-color: #c0c0c0;
  box-shadow: inset -4px -4px #808080, inset 4px 4px #000;
  border-radius: 8px;
  overflow: hidden;
}

.carrusel {
  display: flex;
  transition: transform 0.5s ease;
}

.carrusel img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ========================= */
/* BOTONES DEL CARRUSEL */
/* ========================= */
.carrusel-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #c0c0c0;
  border: 3px solid #000;
  padding: 1rem 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: inset -2px -2px #808080, inset 2px 2px #000;
  transition: background-color 0.2s;
}

.carrusel-container button:hover {
  background-color: #e0e0e0;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ========================= */
/* MEDIA QUERIES RESPONSIVE */
/* ========================= */

/* Pantallas medianas (≤1024px): carrusel debajo del texto */
@media (max-width: 1024px) {
  .contenedor-moda {
    flex-direction: column;
    gap: 2rem;
  }
  .texto-moda,
  .carrusel-container {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .contenedor-moda {
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .texto-moda,
  .carrusel-container {
    flex: 1 1 100%;
    min-width: auto;
  }
  
  .carrusel-container button {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }

  .menu a {
    font-size: 0.5rem;
  }

  .menu .opciones {
    gap: 15px;
  }
}
