:root {
  --primary: #10b1c5;
  --primary-dark: #0d8fa3;
  --secondary: #10b981;
  --accent: #f59e0b;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --error: #ef4444;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Header actualizado con estilos para el nuevo diseño */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: var(--surface);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}

/* Grid ahora muestra 2 columnas */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card horizontal con altura fija y contenido que no se expande */
.offer-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: row;
  height: 280px;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-lg);
}

.offer-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10;
}

/* Imagen a la izquierda con ancho fijo del 35% */
.offer-image {
  width: 35%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Contenido con espaciado fijo para precio y botón siempre visibles */
.offer-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 65%;
  overflow: hidden;
  justify-content: space-between;
}

.offer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.offer-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Botón de características ahora abre modal */
.features-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  width: fit-content;
  justify-content: center;
  margin-bottom: 0.3rem;
  margin-top: -6px;  
}

.features-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Eliminamos las características colapsables del card */
.offer-features {
  display: none;
}

/* Footer de oferta siempre visible en la parte inferior */
.offer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.3rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Precio y botón en la misma línea horizontal */
.offer-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.offer-currency {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-left: 0.25rem;
}

/* Botón de compra al lado del precio, no debajo */
.buy-now-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  width: auto;
  margin-top: 0;
}

.buy-now-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.buy-now-btn:active {
  transform: translateY(0);
}

.buy-now-btn:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

.cart-icon {
  width: 18px;
  height: 18px;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.98);
}

/* Plan Card */
.plan-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--shadow-lg);
}

.plan-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.plan-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.plan-info {
  flex: 1;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.plan-type {
  display: inline-block;
  background: var(--surface);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.plan-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.plan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Modal actualizado para características */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-light);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  margin-top: 1rem;
}

.modal-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.modal-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal-features li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.modal-features li:last-child {
  border-bottom: none;
}

.modal-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Estilos para mensajes de estado del usuario */
.user-status {
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
  text-align: center;
}

.user-status.logged-in {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
}

.reservados-badge {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Estilos para modal de pago Bold */
.bold-modal {
  max-width: 600px;
}

.payment-info {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.payment-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.payment-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.payment-info .total {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bold-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.bold-button-container script {
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive mejorado para diseño horizontal */
@media (max-width: 1200px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offer-card {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .logo img {
    height: 40px;
  }

  /* En móviles, las cards vuelven a ser verticales */
  .offer-card {
    flex-direction: column;
    height: auto;
    min-height: 480px;
  }

  .offer-image {
    width: 100%;
    height: 200px;
  }

  .offer-content {
    width: 100%;
  }
}
