: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: 'Raleway', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.7;
  position: relative;
  background: url("../Imagenes/fondo1.jpg") no-repeat center center;
  background-size: cover;
}

/* Capa blanca desenfocada y opaca */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(255, 255, 255, 0.1); /* Blanco translúcido */
  backdrop-filter: blur(1px); /* Desenfoque */
  z-index: -1; /* Detrás del contenido */
}

/* ============ HEADER ============ */
.menu-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: linear-gradient(to right, #6FC644, #A8E063);
  box-shadow: var(--sombra);
}

.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;
  position: relative;
  transition: color var(--transicion);
}

.menu-item:hover {
  color: var(--color-secundario);
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-acento);
  transition: width var(--transicion);
}

.menu-item:hover::after {
  width: 100%;
}

/* ============ CONTENIDO GENERAL ============ */
.hero {
  background: linear-gradient(to right, #2E86AB, #45B3E0);
  color: white;
  padding: 80px 20px;
  text-align: center;
  box-shadow: var(--sombra);
}

.hero h1 {
  font-size: 48px;
  margin: 0;
}

.subtitle {
  font-size: 20px;
  margin-top: 10px;
  font-weight: 300;
}

.contenido {
  max-width: 1040px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeIn 1.5s ease;
}

.historia h2 {
  font-size: 52px;
  margin-bottom: 20px;
  color: var(--color-primario);
  position: relative;
  background-color: rgba(255,255,255,0.2);
  border-radius: 15px;
}

.historia h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--color-secundario);
  margin-top: 10px;
}

.historia p {
  margin-bottom: 20px;
  font-size: 18px;
}

/* ============ FOOTER ============ */
.footer {
  background-color: var(--color-oscuro);
  color: var(--color-claro);
  padding: 20px 50px;
  text-align: center;
  align-items: center;
  flex-wrap: nowrap; 
  gap: 30px;
}

.footer-logo {
  font-size: 20px;
  font-weight: bold;
  color: #EFC744;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap; /* ❌ mantener en una sola línea */
}

.footer-link {
  color: #878DCC;
  text-decoration: none;
  transition: color var(--transicion);
  white-space: nowrap;
}

.footer-link:hover {
  color: #53ABBA;
}

.copyright {
  font-size: 14px;
  color: #76BA22;
  white-space: nowrap;
}

.historia-contenido {
  display: flex;
  gap: 45px;
  align-items: flex-start;
  margin-top: 20px;
  flex-wrap: wrap;
}

.historia-imagenes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.historia-imagenes img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.historia-texto {
  flex: 2;
  font-size: 25px;
  line-height: 1.8;
  text-align: justify;
  background-color: rgba(255,255,255,0.4);
  padding-left: 28px;
  padding-right: 28px;
  border-radius: 10px;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 768px) {
  .menu-container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 16px;
  }

  .historia h2 {
    font-size: 26px;
  }

  .historia p {
    font-size: 16px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .historia-contenido {
    flex-direction: column;
    align-items: center;
  }

  .historia-texto {
    text-align: justify;
  }
}
