/* CSS Document */
:root {
  --color-primario: #2E86AB;
  --color-secundario: #F18F01;
  --color-fondo: #fdfdfd;
  --color-texto: #333;
  --color-acento: #E0F7FA;
  --color-claro: #ffffff;
  --color-oscuro: #1a1a1a;
  --sombra: 0 8px 20px rgba(0, 0, 0, 0.1);
  --transicion: 0.4s ease;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
}

/* Menu styles */
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: linear-gradient(to right, #6FC644, #A8E063);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  animation: textColorCycle 5s linear infinite;
  text-shadow: 0 0 6px rgba(0,0,0,0.2);
}

@keyframes textColorCycle {
  0% { color: #E4007C; }
  20% { color: #B144AD; }
  40% { color: #6FC644; }
  60% { color: #7B1E3A; }
  80% { color: #D32F2F; }
  100% { color: #E4007C; }
}

.menu {
  display: flex;
  gap: 30px;
}

.menu-item {
  color: var(--color-oscuro);
  text-decoration: none;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
  transition: color var(--transicion);
}

.menu-item:hover {
  color: var(--color-secundario);
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-acento);
  transition: width var(--transicion);
}

.menu-item:hover::after {
  width: 100%;
}

/* Header styles */
.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.header {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subheader {
  font-size: 52px;
  font-weight: bold;
  color: white;
  font-weight: 500;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel {
  position: relative; 
  width: 100%;
  max-width: 100%;
  height: 700px;;
  overflow: hidden;
  color: white;
}

.header-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column; /* Organiza en columna */
  align-items: center;     /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente */
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 10px;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  display: block;
  height: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  transition: opacity var(--transition-speed);
}

.carousel-btn:hover {
  opacity: 0.8;
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}

/* ============ FOOTER ============ */
.footer {
  background-color: var(--color-oscuro);
  color: var(--color-claro);
  padding: 20px 50px;
  text-align: center;
  align-items: center;
  gap: 30px;
}

.copyright {
  font-size: 14px;
  color: #76BA22;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu-container {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  
  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .carousel {
    width: 95%;
  }
  
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
}

.image-text-container {
  position: relative;
}

.image-text-container img {
  display: block;
  width: 100%;
  height: auto;
}

.image-text {
  position: absolute;
  top: 20px; /* Ajusta la posición según lo necesites */
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
  padding: 10px 20px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
}
