/* Global Styles for MB Comex */

* {
  font-family: "Inter", sans-serif;
}

/* Añadido font-display para optimizar carga de fuentes */
@font-face {
  font-family: "Inter";
  font-display: swap;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #3269b2 0%, #09b68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Effect for Header */
.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Premium Shadow */
.shadow-premium {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Soft Shadow */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Updated mobile menu styles for better organization and scrolling */
/* Mobile Menu Styles */
.mobile-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar for mobile menu navigation */
.mobile-menu nav::-webkit-scrollbar {
  width: 6px;
}

.mobile-menu nav::-webkit-scrollbar-track {
  background: #1f2937;
}

.mobile-menu nav::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}

.mobile-menu nav::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #3269b2;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #09b68a;
}

/* Plan Category Transitions */
.plans-category {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Button Transitions */
button,
a {
  transition: all 0.3s ease;
}

/* Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Added Nordic-themed utility classes for consistent styling */

/* Nordic Text Shadow - Subtle depth for headings */
.text-shadow-nordic {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Rune Glow Effect - Mystical glow for special elements */
.rune-glow {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
  transition: box-shadow 0.3s ease;
}

.rune-glow:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 60px rgba(212, 175, 55, 0.3);
}

/* Metal Shine Effect - Simulates polished metal surface */
.metal-shine {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  position: relative;
  overflow: hidden;
}

.metal-shine::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Viking Border - Decorative border with Nordic feel */
.viking-border {
  border: 2px solid #d4af37;
  position: relative;
}

.viking-border::before,
.viking-border::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #d4af37;
  background: #1a1a1a;
}

.viking-border::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.viking-border::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Frost Effect - Icy, crystalline appearance */
.frost-effect {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(200, 220, 240, 0.05) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Ancient Stone Texture - Weathered appearance */
.stone-texture {
  background-image: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Hover Scale - Subtle zoom effect */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Gold Accent Underline - Elegant underline effect */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.gold-underline:hover::after {
  transform: scaleX(1);
}

/* Añadidas clases de grid para compatibilidad sin Tailwind CDN */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gap-8 {
  gap: 2rem;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-700 {
  border-color: #374151;
}

.mt-8 {
  margin-top: 2rem;
}

.pt-8 {
  padding-top: 2rem;
}

.text-center {
  text-align: center;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.font-semibold {
  font-weight: 600;
}

.text-gray-400 {
  color: #9ca3af;
}

.hover\:text-teal-400:hover {
  color: #2dd4bf;
}

.h-6 {
  height: 1.5rem;
}

.w-6 {
  width: 1.5rem;
}
