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

:root {
  --primary-color: #2563eb;
  --primary-light: #bfdbfe;
  --white: #ffffff;
  --header-gray: #1a1a2e;
  --light-gray: #f5f7fa;
  --promo-color: #ff6b35;
  --red-primary: #dc2626;
  --red-dark: #991b1b;
  --footer-bg: #0f172a;
  --footer-text: #cbd5e1;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #333;
  background-color: var(--light-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  animation: fadeInUp 0.6s ease;
}

.loading-logo {
  max-width: 280px;
  width: 70%;
  height: auto;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

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

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.main-content.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Modern Header */
.modern-header {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

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

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::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;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link svg {
  width: 20px;
  height: 20px;
}

main {
  flex: 1;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Franja blanca con texto promocional estático */
.breadcrumb {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  overflow: hidden;
  position: relative;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(220, 38, 38, 0.1);
}

.promo-text-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.promo-text-scroll {
  color: var(--promo-color);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  text-transform: uppercase;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red-primary), var(--promo-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-color: var(--red-primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.logo-container {
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-card h3 {
  color: #333;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--red-primary);
}

/* Modern Footer */
.modern-footer {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #991b1b 100%);
  color: white;
  margin-top: auto;
  position: relative;
  box-shadow: 0 -4px 20px rgba(220, 38, 38, 0.3);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-about {
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 60px;
  width: auto;
}

.footer-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
}

.footer-payment {
  background: rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.payment-title {
  text-align: center;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.payment-card {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.payment-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

.footer-secured {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

.footer-secured svg {
  color: #22c55e;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .loading-logo {
    width: 150px;
  }

  .modern-header {
    padding: 1rem;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-img {
    height: 35px;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .nav-link span {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  main {
    padding: 1rem;
  }

  .promo-text-scroll {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
  }

  .breadcrumb {
    height: 50px;
    padding: 0.5rem;
  }

  .footer-container {
    padding: 1.5rem 1rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-description {
    font-size: 0.85rem;
    margin: 0.75rem 0;
  }

  .footer-logo-img {
    height: 35px;
  }

  .footer-logo {
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .footer-social {
    justify-content: center;
    gap: 1rem;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .footer-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links,
  .footer-contact {
    align-items: center;
  }

  .footer-links li,
  .footer-contact li {
    margin-bottom: 0.5rem;
  }

  .footer-links a,
  .footer-contact span {
    font-size: 0.85rem;
  }

  .footer-contact svg {
    width: 16px;
    height: 16px;
  }

  .footer-payment {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .payment-title {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .payment-logos {
    gap: 0.75rem;
  }

  .payment-card {
    padding: 0.5rem 0.75rem;
  }

  .payment-logo {
    height: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1rem;
    gap: 0.5rem;
  }

  .copyright,
  .footer-secured {
    font-size: 0.8rem;
  }
}

@media (min-width: 768px) {
  header {
    padding: 1rem;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  nav {
    padding: 1rem;
    gap: 2rem;
  }
  
  nav a {
    font-size: 1rem;
  }

  main {
    padding: 2rem;
  }
  
  footer {
    padding: 2rem;
    font-size: 1rem;
  }
}

/* Estilos para términos y condiciones */
.terms-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.terms-container h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.terms-container section {
  margin-bottom: 2rem;
}

.terms-container h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.terms-container p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.terms-container ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.terms-container li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}