/* Estilos específicos para catálogo/landing (kits y héroes) */

/* =========================
   Carrusel de Kits (3 columnas)
   ========================= */
.kit-carousel-shell {
  position: relative;
  isolation: isolate;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  z-index: 2;
}

.kit-carousel-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 58%);
  z-index: -1;
}

.kit-carousel {
  position: relative;
  overflow: visible;
  align-items: stretch;
  z-index: 1;
}

.kit-carousel-track {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scrollbar-width: none;
  padding: 0.5rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.kit-carousel-track::-webkit-scrollbar {
  display: none;
}

.kit-carousel-track .home-kit-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  max-width: calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}

.kit-carousel-btn {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 35px rgba(15, 23, 42, 0.2);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  z-index: 50;
}

.kit-carousel-btn i {
  font-size: 1.1rem;
}

.kit-carousel-btn--prev {
  left: -3rem;
  background: #fff;
  color: #475569;
}

.kit-carousel-btn--next {
  right: -3rem;
  background: var(--brand-orange, #ff4d00);
  color: #fff;
}

.kit-carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.kit-carousel-btn:not(:disabled):hover {
  transform: translateY(calc(-50% - 2px));
}

.home-kit-card {
  position: relative;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.75rem;
  box-shadow: 0 22px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-kit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 50px rgba(15, 23, 42, 0.12);
}

.kit-thumb-strip {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.kit-thumb-bubble {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kit-thumb-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-carousel--compact .kit-thumb-bubble img {
  transform: scale(1.02);
}

.kit-thumb-plus {
  font-weight: 700;
  color: #c7d2ec;
  font-size: 0.85rem;
}

.home-kit-card:hover .kit-thumb-bubble {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px rgba(15, 23, 42, 0.22);
}

.home-kit-card--compact {
  padding: 1.35rem 1.1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.kit-carousel--compact .home-kit-cover {
  display: none;
}

.kit-carousel--compact .kit-thumb-strip {
  position: relative;
  top: 0;
  right: 0;
  margin-bottom: 0.6rem;
  justify-content: flex-start;
  gap: 0.5rem;
}

.kit-carousel--compact .kit-thumb-bubble {
  width: 68px;
  height: 68px;
  box-shadow: none;
}

.kit-carousel--compact .kit-thumb-plus {
  font-size: 1rem;
}

.home-kit-card--idea {
  border: 1px dashed rgba(255, 77, 0, 0.35);
  background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
}

.kit-carousel--compact .home-kit-budget {
  color: #ff4d00;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.kit-idea-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
}

.kit-idea-modal[hidden] {
  display: none;
}

.kit-idea-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.kit-idea-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: min(640px, 92vw);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  animation: kitIdeaIn 0.18s ease-out;
}

.kit-idea-modal__header,
.kit-idea-modal__footer {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.kit-idea-modal__footer {
  border-top: 1px solid #e2e8f0;
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.kit-idea-modal__body {
  padding: 1rem 1.25rem;
}

.kit-idea-suggestions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.kit-idea-suggestion {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kit-idea-suggestion:hover {
  border-color: #ff4d00;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.kit-idea-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.kit-idea-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kit-idea-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.kit-idea-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}

.kit-idea-sku {
  font-size: 0.75rem;
  color: #6b7280;
}

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

.home-kit-budget {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  display: inline-block;
}

.home-kit-items {
  margin-top: 0.75rem;
}

.home-kit-items li {
  border-left: 3px solid var(--brand-orange, #ff4d00);
  padding-left: 0.6rem;
  background: linear-gradient(90deg, rgba(255, 119, 51, 0.06), transparent);
  border-radius: 6px;
}

.home-kit-actions {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-kit-primary,
.btn-kit-secondary,
.btn-kit-orange {
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 45%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-kit-primary {
  background: var(--brand-blue, #004aad);
  color: #fff;
  border: none;
  box-shadow: 0 18px 32px rgba(0, 74, 173, 0.28);
}

.btn-kit-primary:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-kit-secondary {
  background: #eff3f8;
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

.btn-kit-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 85, 105, 0.4);
}

.btn-kit-orange {
  background: linear-gradient(135deg, #ff7b32 0%, #ff4d00 100%);
  color: #fff;
  border: none;
  box-shadow: 0 18px 32px rgba(255, 119, 51, 0.35);
}

.btn-kit-orange:hover {
  color: #fff;
  transform: translateY(-2px);
}

.kit-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.kit-dot {
  width: 28px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: #d8deed;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.kit-dot.active {
  background: var(--brand-orange, #ff4d00);
  width: 42px;
}

@media (max-width: 1199px) {
  .kit-carousel-track .home-kit-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 992px) {
  .kit-carousel-shell {
    padding: 1.5rem;
  }

  .kit-carousel-track {
    padding: 0.25rem 0.25rem 0.75rem;
  }

  .kit-carousel-track .home-kit-card {
    flex: 0 0 min(85vw, 320px);
    max-width: min(85vw, 320px);
  }

  .kit-carousel-btn {
    display: none;
  }

  .home-kit-actions {
    flex-direction: column;
  }

  .home-kit-actions a {
    width: 100%;
  }
}

.kit-carousel-track .home-kit-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.kit-carousel-track .home-kit-card p {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.kit-carousel-track .home-kit-card .home-kit-items strong {
  font-size: 0.9rem;
}

.kit-carousel-track .home-kit-card .home-kit-items small {
  font-size: 0.78rem;
  color: #64748b;
}

/* =========================
   Hero de segmentos con carrusel
   ========================= */
.hero-two-column-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: #fff;
  border-radius: 30px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.hero-content-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-main-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0;
}

.hero-main-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.25rem;
}

.hero-carousel-column {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.5rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}

.hero-carousel .carousel-indicators .active {
  background-color: #fff;
}

.hero-product-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 320px;
  background: #0b1224;
}

.hero-product-image-wrapper img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-product-placeholder {
  height: 320px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.hero-product-info-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  gap: 0.5rem;
}

.hero-product-title {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.hero-product-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.btn.btn-hero-cta {
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-carousel-control-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

@media (max-width: 768px) {
  .hero-product-card {
    min-height: 260px;
  }

  .hero-product-image-wrapper img,
  .hero-product-placeholder {
    height: 260px;
  }
}
