: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;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  scroll-padding-top: 40px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  background: var(--background);
  box-shadow: 0 2px 8px var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sistema-reserva-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.subtitulo {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.nav-desktop {
  display: none;
  gap: 24px;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.search-bar {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 400px;
  position: relative;
  transition: all 0.3s ease;
}

.search-bar input {
  flex: 1;
  padding: 10px 16px;
  padding-left: 40px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 177, 197, 0.1);
}

.search-icon-btn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px;
  background: transparent;
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.search-icon-btn:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text);
}

.icon-btn:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--error);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: var(--surface);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../assets/img/fondo.jpg") center / cover;
  z-index: 0;
  width: 100%;
  max-width: 100vw;
}

.hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
      rgba(22, 38, 40, 0.95) 0%,
      rgba(81, 134, 142, 0.838) 30%,
      rgba(43, 210, 233, 0.6) 60%,
      rgba(190, 213, 216, 0.3) 100%);
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-overlay {
  position: relative;
  width: 100%;
  z-index: 1;
}

.texto-suplementario {
  max-width: 600px;
  margin-bottom: 40px;
  text-align: left;
  animation: fadeInUp 1s ease;
}

.texto-suplementario h1 {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.1;
}

.texto-suplementario p {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.typewriter-text {
  border-right: 3px solid white;
  padding-right: 8px;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: white;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-verplanes {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-verplanes:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: var(--surface);
}

.btn-verplanes i {
  font-size: 1.2rem;
}

/* Section Styles */
.section {
  padding: 80px 0;
  width: 100%;
  overflow-x: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
  width: 100%;
}

.plan-card {
  background: var(--background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.3s ease;
  width: 100%;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.plan-media {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.plan-media::after {
  content: "ver más ▼";
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.plan-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.plan-card:hover .plan-media img {
  transform: scale(1.1);
}

.plan-header-visible {
  padding: 20px 24px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.plan-header-visible h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-header-visible .plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.plan-header-visible .plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.plan-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.plan-card.expanded .plan-content {
  max-height: 1000px;
  padding: 24px;
}

.plan-header {
  margin-bottom: 16px;
}

.plan-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.plan-availability {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
}

.plan-description {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.plan-features {
  display: none;
}

.plan-dates {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  align-items: start;
  width: 100%;
}

.offer-card {
  background: var(--background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px var(--shadow-lg);
}

.offer-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.offer-media::after {
  content: "▼";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.offer-card.expanded .offer-media::after {
  transform: rotate(180deg);
}

.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.offer-card:hover .offer-media img {
  transform: scale(1.1);
}

.offer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.offer-header-visible {
  padding: 20px 24px;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.offer-header-visible h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.offer-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.offer-card.expanded .offer-content {
  max-height: 2000px;
  padding: 24px;
}

.offer-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.offer-content>p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.offer-dates {
  font-size: 0.9rem;
  color: var(--error);
  font-weight: 600;
  margin-bottom: 16px;
}

.offer-plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-plan-item {
  padding: 16px;
  background: var(--surface);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.offer-plan-item:hover {
  background: var(--border);
}

.offer-plan-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.original-price {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.offer-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.discount-badge {
  background: var(--error);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--background);
  border-radius: 16px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-modal {
  max-width: 1200px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg);
}

.purchase-form-top {
  position: sticky;
  top: auto;
  bottom: 0;
  background: var(--background);
  padding: 24px 40px;
  border-top: 1px solid var(--border);
  border-bottom: none;
  z-index: 5;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
  flex-shrink: 0;
}

.purchase-header-content {
  flex: 1;
  min-width: 300px;
}

.purchase-form-top h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: none;
}

.purchase-form-top .detail-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.purchase-form-top .detail-price .currency {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-light);
}

.purchase-form-top .detail-description {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 1.05rem;
  display: none;
}

.purchase-header-action {
  flex-shrink: 0;
}

.purchase-form-top .btn-reserve {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(16, 177, 197, 0.3);
  white-space: nowrap;
}

.purchase-form-top .btn-reserve:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 177, 197, 0.4);
  background: var(--primary-dark);
}

.purchase-form-top .btn-reserve i {
  font-size: 1.2rem;
}

/* Layout del contenido del modal */
.detail-layout {
  display: flex;
  gap: 32px;
  padding: 32px;
  flex-grow: 1;
  /* Permite que el contenido principal ocupe el espacio restante */
  min-height: 0;
  /* Asegura que no fuerce su altura y respete el scroll del padre */
}

/* Carrusel de imágenes sin gallery-container */
.detail-gallery {
  flex: 2;
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 700px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controles del carrusel */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
  z-index: 2;
}

.carousel-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Indicadores del carrusel */
.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator.active {
  background: white;
  width: 24px;
  border-radius: 5px;
}

/* Sección de información al lado del carrusel */
.detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-info-section {
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
}

.detail-info-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item strong {
  color: var(--text);
  font-weight: 600;
}

.info-item span {
  color: var(--text-light);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 8px 0;
  color: var(--text-light);
  position: relative;
  padding-left: 28px;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

.purchase-form {
  background: var(--surface);
  padding: 24px;
  border-radius: 12px;
}

.purchase-form h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 177, 197, 0.1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-large {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
}

.offer-plans-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer-plan-detail {
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 2px solid var(--border);
}

.offer-plan-header {
  margin-bottom: 16px;
}

.offer-plan-header h5 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.detail-conditions {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--text);
  color: white;
  padding: 48px 0 24px;
  margin-top: 80px;
  width: 100%;
  overflow-x: hidden;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Loading Spinner */
.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loading.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Cart Section */
.cart-section {
  padding: 80px 0;
  min-height: calc(100vh - 200px);
}

.cart-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: flex;
  grid-template-columns: 550px 2fr;
  gap: 20px;
  background: var(--background);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 8px 24px var(--shadow-lg);
  transform: translateY(-4px);
}

.cart-item-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-item-details h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-details p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

.cart-item-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 8px;
}

.quantity-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-control span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  min-width: 30px;
  text-align: center;
}

.remove-btn {
  background: transparent;
  color: var(--error);
  border: 2px solid var(--error);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: var(--error);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.cart-summary {
  background: var(--background);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-light);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  padding-top: 16px;
  margin-top: 16px;
  border-top: 2px solid var(--border);
}

.summary-row.total span:last-child {
  font-size: 1.8rem;
  color: var(--primary);
}

.cart-summary .btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
}

.btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  margin-top: 12px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-lg);
}

.empty-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  transform: translateY(-25vh); 
}

.empty-cart-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-height: 90vh;
}

.empty-cart svg {
  margin-bottom: 12px;
  opacity: 0.3;
}

.empty-cart h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.empty-cart p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0;
}

.empty-cart .btn-primary {
  display: inline-flex;
  padding: 16px 32px;
  font-size: 1.1rem;
  margin-top: 12px;
}


/* WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
  animation: pulse 1.5s infinite;
}

.whatsapp-float i {
  color: white;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 29px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #10b1c5;
  color: #fff;
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: #0a91a6;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* Tab Controls */
.tab-controls {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 40px auto 0;
  max-width: 500px;
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tab-button {
  flex: 1;
  background-color: transparent;
  color: #666;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
}

.tab-button:hover:not(.active) {
  color: #10b1c5;
  background-color: rgba(16, 177, 197, 0.05);
}

.tab-button.active {
  background-color: #fff;
  color: #10b1c5;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-button i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.tab-button.active i {
  transform: scale(1.1);
}

.tab-content-wrapper {
  padding: 40px 0 20px;
  margin-top: 30px;
  position: relative;
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  padding: 0 15px;
  text-align: center;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease forwards;
}

.tab-pane.hidden {
  display: none;
}

.tab-pane .section-header {
  margin-top: 0;
  margin-bottom: 35px;
}

.tab-pane h3 {
  font-size: 1.75rem;
  color: #222;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tab-pane p {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.tab-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 177, 197, 0.2);
}

.tab-button:focus:not(:focus-visible) {
  box-shadow: none;
}

/* RESPONSIVE STYLES */

/* Tablet */
@media (max-width: 1024px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: relative;
    top: 0;
  }

  .detail-layout {
    flex-direction: column;
  }

  .detail-gallery {
    max-height: 400px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .header-content {
    gap: 8px;
    padding: 12px 0;
  }

  .logo {
    gap: 6px;
    margin-left: 0;
  }

  .logo img {
    height: 35px;
    width: auto;
  }

  .subtitulo {
    font-size: 10px;
  }

  .search-bar {
    max-width: 40px;
    flex: 0 0 40px;
    overflow: visible;
  }

  .search-bar.expanded {
    max-width: 100%;
    flex: 1 1 auto;
    position: absolute;
    left: 15px;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--background);
    z-index: 100;
    padding: 4px;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-lg);
  }

  .search-bar input {
    opacity: 0;
    width: 0;
    padding: 8px 12px;
    padding-left: 40px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
  }

  .search-bar.expanded input {
    opacity: 1;
    width: 100%;
  }

  .search-icon-btn {
    position: absolute;
    left: -40px;
    top: 57%;
    transform: translateY(-57%);
    padding: 8px;
    opacity: 1;
    pointer-events: all;
    background: none;
    border: none;
    cursor: pointer;
  }

  .search-icon-btn i {
    font-size: 18px;
    color: #333;
  }

  .search-bar.expanded .search-icon-btn {
    left: 8px;
  }

  .texto-suplementario h1 {
    font-size: 3rem;
  }

  .texto-suplementario p {
    font-size: 1.2rem;
  }

  .plans-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    gap: 20px;
  }

  .cart-section {
    padding: 40px 0;
  }

  .cart-section h1 {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .cart-item-details h3 {
    font-size: 1.2rem;
  }

  .cart-item-price {
    font-size: 1.5rem;
  }

  .cart-item-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .quantity-control {
    justify-content: center;
  }

  .cart-summary {
    padding: 20px;
  }

  .cart-summary h2 {
    font-size: 1.3rem;
  }

  .summary-row {
    font-size: 0.95rem;
  }

  .summary-row.total {
    font-size: 1.2rem;
  }

  .summary-row.total span:last-child {
    font-size: 1.5rem;
  }

  .modal-content {
    max-width: 95%;
    max-height: 95vh;
    margin: 10px;
  }

  .purchase-form-top {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .purchase-header-content {
    min-width: 100%;
  }

  .purchase-form-top h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .purchase-form-top .detail-price {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .purchase-form-top .detail-price .currency {
    font-size: 1.1rem;
  }

  .purchase-form-top .detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .purchase-header-action {
    width: 100%;
  }

  .purchase-form-top .btn-reserve {
    width: 100%;
    padding: 14px 32px;
    font-size: 1rem;
  }

  .detail-layout {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .detail-gallery {
    max-height: 400px;
  }

  .detail-info-section {
    padding: 16px;
    margin-bottom: 20px;
  }

  .detail-info-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .features-list li {
    font-size: 0.9rem;
    padding: 6px 0;
    padding-left: 24px;
  }

  .purchase-form {
    padding: 20px;
    margin-top: 20px;
  }

  .purchase-form h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .form-input {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .offer-plans-list {
    gap: 16px;
  }

  .offer-plan-detail {
    padding: 16px;
  }

  .offer-plan-header h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .price-comparison {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .original-price {
    font-size: 0.9rem;
  }

  .offer-price {
    font-size: 1.3rem;
  }

  .discount-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .detail-conditions {
    font-size: 0.85rem;
    padding: 12px;
    margin-top: 12px;
  }

  .tab-controls {
    max-width: 450px;
    gap: 0;
  }

  .tab-button {
    font-size: 0.9rem;
    padding: 12px 16px;
    gap: 6px;
  }

  .tab-button i {
    font-size: 1rem;
  }

  .tab-pane h3 {
    font-size: 1.5rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 26px;
    bottom: 15px;
    right: 15px;
  }

  .back-to-top {
    right: 21px;
    bottom: 80px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  /* AJUSTES PARA VISTA GRANDE (min-width: 769px) */

  /* 1. Reducir el scroll forzado en vista grande */
  .modal-content {
    max-height: 98vh;
  }

  /* 2. Reducir el espacio entre el contenido y el footer estático */
  .detail-layout {
    padding-top: 10px;
    /* Reducido de 32px para acercar al footer/purchase-form-top */
  }
}

/* Extra Small Mobile */
@media (max-width: 600px) {
  .tab-controls {
    max-width: 100%;
    margin: 30px 15px 0;
    padding: 5px;
    flex-direction: column;
    gap: 6px;
  }

  .tab-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .tab-content-wrapper {
    padding: 30px 0 20px;
    margin-top: 20px;
  }

  .tab-pane h3 {
    font-size: 1.4rem;
  }

  .tab-pane p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .cart-section {
    padding: 30px 0;
  }

  .cart-section h1 {
    font-size: 1.8rem;
  }

  .cart-item {
    padding: 12px;
  }

  .cart-item-image {
    height: 180px;
  }

  .cart-item-details h3 {
    font-size: 1.1rem;
  }

  .cart-item-details p {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 1.3rem;
  }

  .cart-summary {
    padding: 16px;
  }

  .cart-summary h2 {
    font-size: 1.2rem;
  }

  .summary-row {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .summary-row.total {
    font-size: 1.1rem;
  }

  .summary-row.total span:last-child {
    font-size: 1.4rem;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .purchase-form-top {
    padding: 16px 16px;
  }

  .purchase-form-top h2 {
    font-size: 1.4rem;
  }

  .purchase-form-top .detail-price {
    font-size: 2rem;
  }

  .purchase-form-top .detail-price .currency {
    font-size: 1rem;
  }

  .purchase-form-top .detail-description {
    font-size: 0.9rem;
  }

  .purchase-form-top .btn-reserve {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .detail-layout {
    padding: 16px;
    gap: 16px;
  }

  .detail-gallery {
    max-height: 300px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .carousel-controls {
    padding: 0 8px;
  }

  .detail-info-section {
    padding: 12px;
    margin-bottom: 16px;
  }

  .detail-info-section h4 {
    font-size: 1rem;
  }

  .purchase-form {
    padding: 16px;
  }

  .purchase-form h4 {
    font-size: 1rem;
  }

  .form-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .offer-plans-list {
    gap: 16px;
  }

  .offer-plan-detail {
    padding: 16px;
  }

  .offer-plan-header h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .price-comparison {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .original-price {
    font-size: 0.9rem;
  }

  .offer-price {
    font-size: 1.3rem;
  }

  .discount-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
  }

  .detail-conditions {
    font-size: 0.85rem;
    padding: 12px;
    margin-top: 12px;
  }
}

.descripcion-detalle {
  margin-top: 4px;
}

.descripcion-detalle summary {
  font-size: 14px;
  color: #307d90;
  cursor: pointer;
  font-weight: 500;
}

.descripcion-detalle p {
  margin-top: 4px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}





.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Fondo semi-transparente y oscuro */
  display: flex;
  /* Para centrar el contenido */
  align-items: center;
  justify-content: center;
  z-index: 1000;
  /* Asegura que esté por encima de todo */
}

/* El contenedor principal del contenido del modal */
.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 450px;
  /* Ancho máximo para el modal */
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
  /* Animación simple al abrir */
}

/* Botón para cerrar (la X) */
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #999;
}

/* Estilos para las opciones de pago (etiquetas con radio buttons) */
.payment-option-label {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option-label:hover {
  background-color: #f7f7f7;
  border-color: #ccc;
}

.payment-option-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 15px;
  position: relative;
  outline: none;
}

.payment-option-label input[type="radio"]:checked {
  border-color: var(--primary-color, #007bff);
}

.payment-option-label input[type="radio"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color, #007bff);
  transform: translate(-50%, -50%);
}

/* Animación al abrir el modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}