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

:root {
  --primary-color: #3b82f6;
  --primary-light: #93c5fd;
  --white: #ffffff;
  --header-gray: #1e293b;
  --light-gray: #f8fafc;
  --accent-color: #06b6d4;
  --success-color: #22c55e;
  --warm-gray: #64748b;
  --input-bg: #f1f5f9;
  --input-border: #cbd5e1;
  --input-focus: #3b82f6;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #334155;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER COMPACTO Y HORIZONTAL ========== */
header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
  padding: 0.8rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.3);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  animation: headerGlow 6s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 0;
}

.logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) brightness(1.1);
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 3px 6px rgba(59, 130, 246, 0.4)) brightness(1.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 0;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.4s ease;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  color: white;
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

main {
  flex: 1;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

.recharge-container {
  max-width: 800px;
  margin: 2rem auto;
  background: linear-gradient(135deg, white 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  position: relative;
}

.recharge-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.01) 50%, transparent 70%);
  animation: containerShine 8s infinite;
  pointer-events: none;
}

@keyframes containerShine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.step-container {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 50%, #1d4ed8 100%);
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1;
}

.step-number {
  background: white;
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

h2 {
  color: white;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.form-content {
  display: flex;
  padding: 2.5rem;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.logo-section {
  flex: 1;
}

.company-logo {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.05);
}

.company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.form-section {
  flex: 1;
}

.form-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--warm-gray);
  font-weight: 600;
  font-size: 1rem;
}

/* ========== CAMPOS DE ENTRADA MEJORADOS ========== */
.input-field {
  width: 100%;
  padding: 1.2rem 1rem;
  border: 2px solid var(--input-border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--input-bg);
  transition: all 0.3s ease;
  font-weight: 500;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.input-field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.input-field:focus {
  outline: none;
  border-color: var(--input-focus);
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 2px 8px rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.input-field:hover {
  border-color: #94a3b8;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Efecto de enfoque mejorado */
.form-group {
  position: relative;
}

.form-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), rgba(6, 182, 212, 0.02));
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.form-group:focus-within::before {
  opacity: 1;
}

/* ========== OPCIONES DE SUSCRIPCIÓN PARA NETFLIX/DISNEY ========== */
.subscription-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscription-option {
  border: 2px solid var(--input-border);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--input-bg);
  position: relative;
  overflow: hidden;
}

.subscription-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.subscription-option:hover::before {
  opacity: 1;
}

.subscription-option:hover {
  border-color: var(--primary-color);
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.subscription-option.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.05));
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.subscription-option input[type="radio"] {
  display: none;
}

.subscription-option label {
  cursor: pointer;
  margin: 0;
  display: block;
  position: relative;
  z-index: 1;
}

.plan-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-duration {
  font-weight: 600;
  color: var(--warm-gray);
  font-size: 1.1rem;
}

.plan-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.subscription-option.active .plan-duration {
  color: var(--primary-color);
}

.subscription-option.active .plan-price {
  color: #1d4ed8;
}

.continue-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 50%, #1d4ed8 100%);
  color: white;
  padding: 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* ========== FOOTER COMPACTO Y MODERNO ========== */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  color: white;
  padding: 1.5rem 0;
  margin-top: auto;
  position: relative;
  overflow: hidden;
  border-top: 2px solid rgba(59, 130, 246, 0.3);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent);
  animation: footerGlow 8s ease-in-out infinite;
}

@keyframes footerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}

.footer-content > div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-content > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.4s ease;
}

.footer-content > div:hover::before {
  left: 100%;
}

.footer-content > div:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.footer-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: white;
  font-weight: 600;
  position: relative;
  z-index: 1;
  background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-content p {
  margin: 0.4rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.footer-content > div:hover p {
  color: rgba(255, 255, 255, 0.95);
}

.footer-content a {
  color: var(--accent-color);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.footer-content a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
}

.footer-content a:hover::after {
  width: 100%;
}

.footer-content a:hover {
  color: white;
}

.payment-methods {
  text-align: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.payment-methods h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
  filter: brightness(1.1);
  border-radius: 4px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.payment-logo:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(1.3);
  background: rgba(255, 255, 255, 0.1);
}

.copyright {
  text-align: center;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    padding: 0.6rem 1rem;
    gap: 0.6rem;
    min-height: auto;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    justify-content: space-between;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo-img {
    height: 28px;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.3rem;
    flex-shrink: 1;
  }

  nav a {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
  }

  nav a:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
  }

  .form-content {
    flex-direction: column;
    padding: 1.5rem;
  }

  .company-logo {
    height: 200px;
    padding: 2rem;
  }

  .recharge-container {
    margin: 1rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .payment-logos {
    gap: 0.5rem;
  }

  .payment-logo {
    height: 24px;
  }

  .step-container {
    padding: 1.5rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .footer-content > div {
    padding: 0.8rem;
  }

  .footer-content h3 {
    font-size: 0.9rem;
  }

  .footer-content p {
    font-size: 0.8rem;
  }

  .payment-methods {
    padding: 0.8rem 1rem;
  }

  .payment-methods h4 {
    font-size: 0.8rem;
  }

  /* Subscription options mobile */
  .subscription-options {
    gap: 0.8rem;
  }

  .subscription-option {
    padding: 1rem;
  }

  .plan-duration {
    font-size: 1rem;
  }

  .plan-price {
    font-size: 1.1rem;
  }
}

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

  main {
    padding: 2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    padding: 0 2rem;
  }

  .footer-content > div {
    padding: 1.5rem;
  }

  .footer-content h3 {
    font-size: 1.1rem;
  }

  .footer-content p {
    font-size: 0.9rem;
  }
  
  footer {
    padding: 2rem 0;
  }

  .payment-methods {
    padding: 1.5rem 2rem;
  }

  .payment-methods h4 {
    font-size: 1rem;
  }

  .payment-logos {
    gap: 1.5rem;
  }

  .payment-logo {
    height: 32px;
  }
}