/* SECCIÓN DE ENLACES RÁPIDOS - VERSIÓN COMPACTA */
.enlaces-rapidos-section {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.9));
  backdrop-filter: blur(10px);
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  max-width: 900px;
  position: relative;
  overflow: hidden;
}

.enlaces-rapidos-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #f39c12, #e74c3c);
  background-size: 200% 100%;
  animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.enlaces-container {
  max-width: 800px;
  margin: 0 auto;
}

/* HEADER COMPACTO */
.enlaces-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  justify-content: center;
}

.header-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(231,76,60,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.header-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  text-align: left;
}

.header-text p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0.2rem 0 0 0;
  text-align: left;
}

/* GRID DE ENLACES */
.enlaces-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.enlace-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.enlace-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.enlace-card:hover::before {
  left: 100%;
}

/* TARJETA RESTAURANTE */
.restaurante-card {
  border-color: rgba(34,197,94,0.2);
  background: linear-gradient(135deg, #ffffff, rgba(34,197,94,0.02));
}

.restaurante-card:hover {
  border-color: #22c55e;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(34,197,94,0.15);
}

.restaurante-card .card-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.restaurante-card .btn-enlace {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.restaurante-card .btn-enlace:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* TARJETA REPARTIDOR */
.repartidor-card {
  border-color: rgba(59,130,246,0.2);
  background: linear-gradient(135deg, #ffffff, rgba(59,130,246,0.02));
}

.repartidor-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(59,130,246,0.15);
}

.repartidor-card .card-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.repartidor-card .btn-enlace {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.repartidor-card .btn-enlace:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ELEMENTOS DE LA TARJETA */
.card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.1);
  color: #666;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.card-icon {
  font-size: 2.5rem;
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 1rem auto;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 0.8rem 0;
  line-height: 1.2;
}

.card-content p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.features-mini {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feature {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.btn-enlace {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 12px 24px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex-shrink: 0;
  min-height: 44px;
  margin-top: 10px;
}

.btn-enlace:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn-enlace:hover .btn-icon {
  transform: translateX(3px);
}

/* FOOTER LEGAL */
.enlaces-footer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.link-legal {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 15px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.5);
  transition: all 0.3s ease;
}

.link-legal:hover {
  color: #e74c3c;
  border-color: rgba(231,76,60,0.3);
  background: rgba(231,76,60,0.05);
  transform: translateY(-1px);
}

.legal-icon {
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .enlaces-rapidos-section {
    margin: 1.5rem auto;
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .enlaces-header {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    margin-bottom: 1.25rem;
  }
  
  .header-text h2,
  .header-text p {
    text-align: center;
  }
  
  .enlaces-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
  }
  
  .enlace-card {
    min-height: 140px;
    padding: 1.25rem;
  }
  
  .card-icon {
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
    margin-bottom: 0.8rem;
  }
  
  .card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
  }
  
  .card-content p {
    font-size: 0.9rem;
  }
  
  .btn-enlace {
    padding: 11px 22px;
    font-size: 0.85rem;
    min-height: 42px;
  }
  
  .enlaces-footer {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .enlaces-rapidos-section {
    margin: 1rem auto;
    padding: 1rem;
  }
  
  .header-icon {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
  
  .header-text h2 {
    font-size: 1.3rem;
  }
  
  .enlace-card {
    min-height: 130px;
    padding: 1.1rem;
  }
  
  .card-icon {
    font-size: 2rem;
    width: 45px;
    height: 45px;
    margin-bottom: 0.7rem;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .card-content p {
    font-size: 0.85rem;
  }
  
  .btn-enlace {
    padding: 10px 20px;
    font-size: 0.8rem;
    min-height: 40px;
  }
}

/* Desktop optimizations */
@media (min-width: 1200px) {
  .enlaces-rapidos-section {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1.2rem;
  }
  
  .header-text h2 {
    font-size: 1.3rem;
  }
  
  .header-text p {
    font-size: 0.8rem;
  }
  
  .header-icon {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
  
  .enlace-card {
    min-height: 130px;
    padding: 1.2rem;
  }
  
  .card-content h3 {
    font-size: 1.1rem;
  }
  
  .card-content p {
    font-size: 0.85rem;
  }
  
  .btn-enlace {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

@media (min-width: 1440px) {
  .enlaces-rapidos-section {
    max-width: 900px;
  }
  
  .enlace-card {
    min-height: 120px;
  }
  
  .header-text h2 {
    font-size: 1.2rem;
  }
}