:root {
  --color-accent: #dc2626;
  --color-accent-light: #ef4444;
  --color-accent-lighter: #f87171;
  --bg-primary: #000000;
  --bg-secondary: #111827;
  --text-light: #ffffff;
  --text-muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradients */
.accent-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.cta-premium {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.cta-premium:hover::before {
  left: 100%;
}

.cta-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(220, 38, 38, 0.4);
}

/* Hero glow effect */
.hero-glow {
  background: radial-gradient(ellipse at top, rgba(220, 38, 38, 0.15) 0%, transparent 60%);
}

.section-glow {
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
}

/* Animations */
.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

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

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.3);
}

/* Form styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Hidden class */
.hidden {
  display: none;
}

/* Logo styles */
.nav-logo {
  height: 2.5rem;
  width: auto;
}

.hero-logo {
  width: 560px;
  max-width: 92%;
  height: auto;

  /* Fondo translúcido más sutil */
  background: rgba(255, 255, 255, 0.78); /* menos blanco, más elegante */
  border-radius: 1rem;
  padding: 0.25rem 2rem;

  display: block;
  line-height: 0;

  /* sombras premium */
  box-shadow:
    0 10px 30px rgba(220, 38, 38, 0.35), /* glow rojo sutil */
    0 25px 70px rgba(0, 0, 0, 0.65);      /* sombra profunda */

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-logo:hover {
  transform: scale(1.03);
  box-shadow:
    0 15px 40px rgba(220, 38, 38, 0.45),
    0 30px 80px rgba(0, 0, 0, 0.7);
}
#logo-text {
  display: inline;
}

/* Hide text when logo image is loaded */
img.nav-logo[src$=".png"] + #logo-text,
img.nav-logo[src$=".jpg"] + #logo-text,
img.nav-logo[src$=".svg"] + #logo-text {
  display: none;
}

/* Navigation */
nav a {
  position: relative;
}

.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #f87171;
}

.nav-cta {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

/* Hamburger menu button */
.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn:hover {
  background: rgba(220, 38, 38, 0.2);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
  display: block;
}

/* Responsive - tablets and mobile */
@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block !important;
  }
  .desktop-nav {
    display: none !important;
  }
}

/* Small mobile optimizations */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.75rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  .section-title {
    font-size: 1.35rem !important;
  }
  .card-padding {
    padding: 0.875rem !important;
  }
  .cta-button {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  .nav-logo {
    font-size: 1.1rem !important;
  }
  .service-card h3 {
    font-size: 1rem !important;
  }
  .service-card p {
    font-size: 0.85rem !important;
  }
}

/* PWA Button */
.pwa-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.pwa-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* PWA Floating Button */
.pwa-float-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  background: rgba(180, 20, 20, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.pwa-float-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(220, 38, 38, 0.8);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

/* Mobile: adjust floating button position */
@media (max-width: 640px) {
  .pwa-float-btn {
    bottom: 1rem;
    right: 1rem;
    width: 2.875rem;
    height: 2.875rem;
  }
}
