:root {
  --primary-dark: #0B192C;
  --primary-navy: #1E3E62;
  --accent-amber: #F59E0B;
  --accent-orange: #EA580C;
  --accent-gold: #D97706;
  --bg-body: #F4F6F9;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(11, 25, 44, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 25, 44, 0.1), 0 8px 10px -6px rgba(11, 25, 44, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(11, 25, 44, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Banner Superior */
.top-bar {
  background: var(--primary-dark);
  color: #94A3B8;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #FFFFFF;
  padding: 48px 0 56px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #F8FAFC;
  width: fit-content;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}
.hero h1 span {
  color: var(--accent-amber);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #CBD5E1;
  max-width: 820px;
  line-height: 1.6;
}

/* Métricas del Paquete */
.package-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 10px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  backdrop-filter: blur(5px);
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
}
.stat-value.highlight {
  color: var(--accent-amber);
}

/* Barra de Acciones Globales */
.action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 15px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}
.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}
.btn-pdf {
  background: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.btn-pdf:hover {
  background: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Sección de la Galería */
.gallery-section {
  padding: 50px 0 70px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-title h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-dark);
}
.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.filter-hint {
  font-size: 0.88rem;
  color: var(--primary-navy);
  font-weight: 600;
  background: #E2E8F0;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Grid de Equipos */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}
.card-equipment {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card-equipment:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

/* Imagen con zoom interactivo adaptada completa */
.card-image-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background: #F1F5F9;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.card-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.card-equipment:hover .card-image-wrap img {
  transform: scale(1.04);
}
.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 25, 44, 0.4) 0%, transparent 40%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 14px;
  color: #FFFFFF;
  pointer-events: none;
}
.zoom-hint {
  background: rgba(11, 25, 44, 0.7);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border-left: 3px solid var(--accent-amber);
}

/* Contenido de la tarjeta */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Specs pills */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  background: #F8FAFC;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.spec-item {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}
.spec-label {
  color: #94A3B8;
  font-size: 0.7rem;
  text-transform: uppercase;
}
.spec-value {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Footer de la tarjeta */
.card-footer {
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  background: #FAFAFA;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-view-detail {
  background: transparent;
  color: var(--primary-navy);
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-view-detail:hover {
  color: var(--accent-amber);
}

.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.94);
  backdrop-filter: blur(10px);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox-modal.active {
  display: flex !important;
}
.lightbox-container {
  max-width: 1050px;
  width: 100%;
  max-height: 92vh;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  position: relative;
}
.lightbox-img-pane {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}
.lightbox-img-pane img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-info-pane {
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 85vh;
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #F1F5F9;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
  z-index: 10;
}
.lightbox-close:hover {
  background: #E2E8F0;
  color: #DC2626;
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 25, 44, 0.88);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
  z-index: 20;
}
.lightbox-nav-btn:hover {
  background: var(--primary-dark);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Modal de Texto Plano de WhatsApp */
.wa-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 44, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.wa-modal.active {
  display: flex;
}
.wa-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 650px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.wa-textarea {
  width: 100%;
  height: 260px;
  padding: 14px;
  font-family: monospace;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: #0F172A;
  resize: vertical;
  margin: 16px 0;
  line-height: 1.45;
}

/* Footer corporativo */
.site-footer {
  background: var(--primary-dark);
  color: #94A3B8;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Botón Flotante de WhatsApp para Contacto Directo */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #FFFFFF;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  text-decoration: none;
  transition: var(--transition);
}
.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  background: #1EBE5D;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-container {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }
  .lightbox-img-pane {
    min-height: 250px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 36px 0 44px 0;
  }
  .action-toolbar {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
  .floating-whatsapp {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }
}
