/* ===== RESET Y ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  width: 100%;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: url('../img/imagenfondo4.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Overlay con partículas sutiles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 138, 55, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 90% 70%, rgba(220, 53, 69, 0.15) 3px, transparent 3px),
    radial-gradient(circle at 30% 80%, rgba(255, 200, 100, 0.1) 4px, transparent 4px);
  background-size: 150px 150px, 200px 200px, 250px 250px;
  animation: particleMove 80s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes particleMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 500px 500px, -400px 300px, 300px -200px; }
}

.wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 40px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 138, 55, 0.5) inset,
    0 0 30px rgba(220, 53, 69, 0.6);
  padding: 40px !important;
  width: 100%;
  max-width: 1400px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.4s;
}

.glass-effect:hover {
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(177, 96, 39, 0.8) inset,
    0 0 50px rgba(255, 94, 110, 0.9);
}

/* Animación de entrada */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.logo-avicampo {
  max-height: 90px;
  background: white;
  padding: 8px;
  border-radius: 25px;
  box-shadow: 0 15px 30px rgba(220, 53, 69, 0.3), 0 0 0 3px #ff8a37 inset;
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo-avicampo:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 20px 40px rgba(220, 53, 69, 0.5), 0 0 0 4px #dc3545 inset;
}

.titulo-principal {
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #dc3545, #ff8a37, #fd7e14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.2);
}

.subtitulo {
  color: #2d3748;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-left: 5px solid #ff8a37;
  padding-left: 15px;
  font-weight: 300;
}

/* Separador láser mejorado */
.separador-laser {
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff8a37, #dc3545, #ff8a37, transparent);
  background-size: 300% 100%;
  width: 100%;
  margin: 30px 0;
  border-radius: 4px;
  animation: laserMove 6s infinite linear;
  box-shadow: 0 0 20px #ff8a37, 0 0 40px #dc3545;
}

@keyframes laserMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ===== TARJETAS DE MENÚ ===== */
.menu-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 35px;
  padding: 30px 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 15px 30px -10px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

/* Efecto de neón animado en el borde */
.menu-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #27a81c, #96f583, #ff4c35, #f0aa77);
  background-size: 400% 400%;
  border-radius: 37px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
  filter: blur(5px);
}

.menu-card:hover::before {
  opacity: 1;
  animation: neonGlow 3s infinite alternate;
}

@keyframes neonGlow {
  0% { background-position: 0% 50%; filter: blur(5px); }
  50% { background-position: 100% 50%; filter: blur(8px); }
  100% { background-position: 0% 50%; filter: blur(5px); }
}

.menu-card:hover {
  transform: translateY(-15px) scale(1.03);
  background: white;
  box-shadow: 0 30px 50px rgba(220, 53, 69, 0.4);
}

.menu-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
  position: relative;
  z-index: 2;
}

.menu-icon {
  color: #dc3545;
  font-size: 3.5rem;
  margin-bottom: 15px;
  transition: all 0.4s;
  filter: drop-shadow(0 10px 15px rgba(220,53,69,0.5));
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.menu-card:hover .menu-icon {
  transform: scale(1.2) rotate(5deg);
  color: #ff8a37;
  animation: none;
  filter: drop-shadow(0 15px 20px rgba(255,138,55,0.7));
}

.menu-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
  transition: color 0.3s;
  text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-card:hover h5 {
  color: #dc3545;
  text-shadow: 0 0 10px rgba(220,53,69,0.5);
}

/* ===== FOOTER ===== */
.text-muted.small {
  font-size: 0.9rem;
  color: #2d3748 !important;
  font-weight: 400;
  text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
  .titulo-principal { font-size: 2rem; }
}

@media (max-width: 991px) {
  .menu-icon { font-size: 3rem; }
  .glass-effect { padding: 30px !important; }
  .menu-card { padding: 25px 12px; }
}

@media (max-width: 767px) {
  .titulo-principal { font-size: 1.8rem; text-align: center; }
  .subtitulo { text-align: center; display: block; font-size: 0.9rem; border-left: none; border-bottom: 3px solid #ff8a37; padding-bottom: 10px; }
  .logo-avicampo { margin-bottom: 15px; }
  .menu-card { padding: 20px 8px; }
  .menu-card h5 { font-size: 0.85rem; }
  .menu-icon { font-size: 2.5rem; }
}

@media (max-width: 480px) {
  .menu-icon { font-size: 2rem; }
  .menu-card h5 { font-size: 0.75rem; }
}

/* Ajuste específico para tablets (modo apaisado) */
@media (min-width: 768px) and (max-width: 991px) and (orientation: landscape) {
  .menu-card { padding: 25px 10px; }
  .menu-icon { font-size: 2.8rem; }
}