/* ===== RESET BÁSICO ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #141414 0%, #050509 50%, #000 100%);
  color: #f5f5f5;
  line-height: 1.6;
}

/* ===== UTILIDADES ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-header p { color: #b0b0b0; }

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff003c, #ff5d00);
  border-color: #ff003c;
  color: #fff;
  box-shadow: 0 10px 25px rgba(255, 0, 60, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(255, 0, 60, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: #444;
  color: #f5f5f5;
}

.btn-secondary:hover {
  border-color: #ff003c;
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline {
  background: transparent;
  border-color: #ff003c;
  color: #ffb3c8;
}

.btn-outline:hover { background: rgba(255, 0, 60, 0.08); }

.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* ===== HEADER BANNER GENERAL ===== */
.header-banner {
  width: 100%;
  height: 260px;
  background-image: url("img/fondo1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

/* ===== LOGO A LA IZQUIERDA, TIPO BANNER RECORTADO ===== */
.logo-area {
  position: relative;
  height: 100%;
  width: 100%;
  background-image: url("img/logo-jcslot.png");
  background-repeat: no-repeat;
  background-size: 380px auto;
  background-position: 20% center;
  overflow: hidden;
}

.logo-img-side { display: none; }

/* ===== BRILLO ANIMADO ===== */
.logo-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    75deg,
    transparent 0%,
    rgba(255,255,255,0.15) 45%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.15) 55%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: shineMove 3.8s linear infinite;
  z-index: 3;
}

@keyframes shineMove {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* ===== MENÚ ABAJO ===== */
.header-nav-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.header-nav-bottom ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
}

.header-nav-bottom a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
  position: relative;
}

.header-nav-bottom a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff003c;
  transition: width .2s ease;
}

.header-nav-bottom a:hover::after { width: 100%; }

/* ===== MENÚ MOVIL ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  margin-right: 1rem;
}

@media (max-width: 720px) {
  .header-banner { height: 200px; }

  .header-nav-bottom ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0,0,0,0.9);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    position: absolute;
    bottom: 60px;
    right: 10px;
    z-index: 15;
  }

  .header-nav-bottom ul.open { display: flex; }

  .nav-toggle {
    display: block;
    position: absolute;
    bottom: 10px;
    right: 20px;
    z-index: 20;
  }
}

/* ===== HERO ===== */
.hero { padding: 4.5rem 0 3.5rem; }

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 3vw, 2.9rem);
  margin-bottom: 1rem;
}

.hero-text p { color: #c2c2c2; margin-bottom: 1.7rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.75rem;
}

.hero-badges span {
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-image { display: flex; justify-content: center; }

/* === CONTENEDOR DEL SLIDER EN EL HERO === */
.hero-slider-wrapper {
  width: 840px;
  height: 480px;
  border-radius: 24px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 45px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;

  /* visible por defecto (no lo dejes en 0 o te desaparece) */
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ZONA DE IMÁGENES */
.hero-slider {
  position: relative;
  flex: 1.9;
  overflow: hidden;
  min-height: 200px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.active { opacity: 1; }

/* TEXTO INFERIOR DEL PANEL */
.hero-panel-text {
  flex: 1;
  padding: 14px 20px;
  background: radial-gradient(circle at top left, rgba(255,0,60,0.15), rgba(0,0,0,0.85));
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-panel-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.hero-panel-text p {
  font-size: 0.85rem;
  color: #ddd;
}

/* PUNTOS DEL SLIDER */
.hero-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
}

.hero-dot.active {
  background: #ff003c;
  border-color: #ff003c;
  opacity: 1;
}

@media (max-width: 880px) {
  .hero-slider-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ===== CATÁLOGO ===== */
.catalogo { padding: 3rem 0 3rem; }

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.6);
  color: #eee;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.filter-btn.active {
  border-color: #ff003c;
  background: rgba(255, 0, 60, 0.18);
}

.filter-btn:hover { transform: translateY(-1px); }

/* GRID PRODUCTOS */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* tarjeta base */
.product-card {
  background: radial-gradient(circle at top left, #202020, #080808);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ====== BLOQUE IMAGEN (compatibilidad) ======
   En tu HTML a veces usas .product-image y otras .product-image-g.
   Las tratamos como lo mismo para que los modos funcionen siempre.
*/
.product-image,
.product-image-g {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 0, 60, 0.45), transparent),
    linear-gradient(135deg, #141414, #0a0b0e);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* cuerpo */
.product-body {
  padding: 1.2rem 1.3rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product-body h3 { font-size: 1.05rem; }

.product-body p {
  font-size: 0.9rem;
  color: #c5c5c5;
}

.product-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.product-tags li {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-footer {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.product-label {
  font-size: 0.75rem;
  color: #ff9aa4;
}

/* ===== MODOS DEL CATÁLOGO (EL ÚNICO SISTEMA QUE MANDA) ===== */
/* --- TODO => compacto --- */
.catalog-grid.mode-compact .product-card {
  height: 150px !important;
  flex-direction: row !important;
}

.catalog-grid.mode-compact .product-card .product-image,
.catalog-grid.mode-compact .product-card .product-image-g {
  width: 150px !important;
  height: 150px !important;
  flex: 0 0 150px !important;
  min-height: 150px !important;
}

.catalog-grid.mode-compact .product-card .product-body {
  padding: 14px 16px !important;
  overflow: hidden !important;
}

.catalog-grid.mode-compact .product-card p {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* --- FILTROS => detalle --- */
.catalog-grid.mode-detail .product-card {
  height: 920px !important;
  flex-direction: column !important;
}

.catalog-grid.mode-detail .product-card .product-image,
.catalog-grid.mode-detail .product-card .product-image-g {
  width: 100% !important;
  height: 580px !important;
  flex: 0 0 580px !important;
  min-height: 580px !important;
}

.catalog-grid.mode-detail .product-card .product-body {
  padding: 20px 22px !important;
  overflow: visible !important;
}

.catalog-grid.mode-detail .product-card p {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
}

/* ===== PROCESO ===== */
.process {
  padding: 3rem 0 3rem;
  background: radial-gradient(circle at top, #101010, #050507);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
}

.process-step {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff003c, #ff5d00);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.process-step p {
  font-size: 0.9rem;
  color: #c7c7c7;
}

/* ===== CONTACTO ===== */
.contact { padding: 3rem 0 3rem; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: #c2c2c2;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin-bottom: 1rem;
}

.contact-list li {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.contact-list a {
  color: #ff8ba0;
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

.contact-note {
  font-size: 0.8rem;
  color: #999;
}

/* FORMULARIO */
.contact-form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.6rem;
}

.contact-form .form-row { margin-bottom: 0.9rem; }

.contact-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 0.7rem;
  background: rgba(0, 0, 0, 0.6);
  color: #f5f5f5;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #ff003c;
  box-shadow: 0 0 0 1px rgba(255, 0, 60, 0.6);
  background: rgba(0, 0, 0, 0.9);
}

.contact-form textarea { resize: vertical; }

.form-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.form-status {
  font-size: 0.8rem;
  color: #c7c7c7;
}

.contact-form input.error,
.contact-form textarea.error { border-color: #ff003c; }

.form-status.error { color: #ff7a7a; }
.form-status.success { color: #7bffb3; }

/* ===== FOOTER ===== */
.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0;
  background: rgba(0, 0, 0, 0.9);
}

.footer-content {
  text-align: center;
  font-size: 0.8rem;
  color: #a8a8a8;
}

.footer-small {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #777;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero { padding-top: 5rem; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
}

/* Ocultar tarjetas (esto debe ganar siempre) */
.product-card.is-hidden {
  display: none !important;
}

/* ===== IMAGEN EN MODO COMPACTO (TODO) ===== */
.catalog-grid.mode-compact .product-image,
.catalog-grid.mode-compact .product-image-g {
  background-size: 140px auto;   /* más pequeña */
  background-position: center;
}

/* ===== IMAGEN EN MODO DETALLE ===== */
.catalog-grid.mode-detail .product-image,
.catalog-grid.mode-detail .product-image-g {
  background-size: cover;        /* imagen grande y protagonista */
  background-position: center;
}

/* ===== OVERLAY PRODUCTO ===== */
.product-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.product-overlay.open {
  display: flex;
}

/* ===== MODAL ===== */
.product-modal {
  width: min(960px, 92vw);
  max-height: 92vh;
  background: radial-gradient(circle at top left, #1a1a1a, #050505);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Cerrar */
.product-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 5;
}

/* ===== MEDIA ===== */
.product-modal-media {
  background: #000;
}

.product-modal-slider {
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.product-modal-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* ===== CONTENIDO ===== */
.product-modal-content {
  padding: 2rem;
  overflow-y: auto;
}

.product-modal-content h2 {
  margin-bottom: 1rem;
}

.product-modal-content p {
  color: #ccc;
  margin-bottom: 1.2rem;
}

.product-modal-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-modal-features li {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Responsive */
@media (max-width: 880px) {
  .product-modal {
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
  }
}

/* ===== OVERLAY PRODUCTO ===== */
.product-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999; /* por si tienes headers con z-index alto */
}

.product-overlay.open{ display: flex; }

/* ===== MODAL ===== */
.product-modal{
  position: relative; /* IMPORTANTE */
  width: min(1280px, 96vw);   /* MUCHO más grande */
  max-height: 96vh;
  background: radial-gradient(circle at top left, #1a1a1a, #050505);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.75);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn{
  from{ transform: scale(0.96); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

.product-close{
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 26px;
  cursor: pointer;
  z-index: 5;
}

.product-modal-media{
  background: #000; 
  min-height: 620px;
}

.product-modal-slider{
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.product-modal-slider img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  scroll-snap-align: center;
  flex-shrink: 0;
  display: block;
}

.product-modal-content{
  padding: 2rem;
  overflow-y: auto;
}

.product-modal-content p{
  color: #cfcfcf;
}

.product-modal-features{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.product-modal-features li{
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #eee;
}

@media (max-width: 880px){
  .product-modal{
    grid-template-columns: 1fr;
    grid-template-rows: 260px auto;
  }
}

