/* ===== ESTILOS DEL FOOTER ===== */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 20px 1.5rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-section h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
  font-weight: 600;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #4a6cf7;
}

.footer-section p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  color: #bdc3c7;
}

/* Estilos para los enlaces del footer */
.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.3rem 0;
}

.footer-section a:hover {
  color: #4a6cf7;
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #bdc3c7;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================== */

/* Estilos del Menú Superior */
.top-menu {
  background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%);
  padding: 0.8rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 30px;
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.logo:hover {
  opacity: 0.9;
}

.menu-items {
  display: flex;
  gap: 1.5rem;
}

.menu-item {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.6rem 1.2rem 0.6rem 0.8rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
}

.menu-item:not(.active):hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.menu-item.active {
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.menu-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #4a6cf7;
  border-radius: 50%;
}

/* Estilo moderno para los números del menú */
.menu-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.9em;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  top: -1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.menu-item:hover .menu-number {
  transform: translateY(-2px) scale(1.1);
  background: #FFD700; /* Amarillo dorado */
  color: #2c3e50; /* Color de texto oscuro para mejor contraste */
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  border-color: #FFD700;
  font-weight: 800;
}

.menu-item.active .menu-number {
  background: #4a6cf7;
  color: white;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
}

.menu-item.active:hover .menu-number {
  transform: translateY(-2px) scale(1.15);
  box-shadow: 0 6px 14px rgba(74, 108, 247, 0.4);
}

/* Estilos para el botón hamburguesa */
.hamburger {
  padding: 0;
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001;
  margin-left: auto;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  position: absolute;
  transition: transform 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -8px;
  transition: top 0.1s 0.2s ease, opacity 0.1s ease;
}

.hamburger-inner::after {
  bottom: -8px;
  transition: bottom 0.1s 0.2s ease, transform 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

/* Estado activo del menú hamburguesa */
.hamburger.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease, opacity 0.1s 0.1s ease;
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease, transform 0.2s 0.1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Estilos responsivos */
@media (max-width: 992px) {
  .hamburger {
    display: inline-block;
  }
  
  .menu-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #4a6cf7 0%, #2541b2 100%);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  
  .menu-items.active {
    right: 0;
  }
  
  .menu-item {
    width: 100%;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 6px;
    text-align: left;
    font-size: 1rem;
  }
  
  .menu-item.active {
    background: rgba(255, 255, 255, 0.15);
  }
  
  .menu-item .menu-number {
    margin-right: 10px;
  }
  
  /* Overlay cuando el menú está abierto */
  .menu-overlay {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .menu-items {
    width: 85%;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .logo-img {
    height: 26px;
  }
}

/* Estilos del Footer */
.site-footer {
  background: #2c3e50;
  color: #fff;
  padding: 3rem 0 0;
  margin-top: 3rem;
  font-size: 0.95rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #4a6cf7;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #4a6cf7;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #ecf0f1;
}

.footer-section a {
  color: #ecf0f1 !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
}

.footer-section a:hover {
  color: #4a6cf7 !important;
  text-decoration: underline !important;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  background: #1a252f;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 2rem;
}

.footer-bottom p {
  margin: 0;
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* Estilos responsivos para el footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-bottom {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }
  
  .menu-items {
    gap: 0.5rem;
  }
  
  .menu-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }
}
