/* assets/css/bianti.css */

/* ✅ Variables BIANTI (negro / blanco / morado) */
:root{
  --bg0:#07070a;
  --bg1:#0b0c12;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.10);
  --text:#f4f5ff;
  --muted:rgba(244,245,255,.70);

  --purple:#7c3aed;
  --purple2:#a78bfa;
  --white:#ffffff;

  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;

  --max: 1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(1000px 650px at 80% 10%, rgba(255,255,255,.08), transparent 62%),
    radial-gradient(900px 540px at 12% 90%, rgba(124,58,237,.16), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button, input, select{font:inherit}

.container{width:min(var(--max), calc(100% - 40px)); margin:0 auto}
.muted{color:var(--muted)}
.tiny{font-size:12px}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8,9,14,.82), rgba(8,9,14,.55));
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar__in{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; min-width:220px}
.brand__logo{
  width:38px; height:38px;
  border-radius:12px;
  object-fit:cover;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
}
.brand__txt strong{display:block; font-weight:800; letter-spacing:.2px; line-height:1}
.brand__txt span{display:block; font-size:12px; color:var(--muted); margin-top:2px}

.nav{display:flex; gap:16px; align-items:center}
.nav a{
  font-size:14px;
  color:rgba(244,245,255,.78);
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  transition:.15s ease;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.07)}
.btn:active{transform: translateY(0)}
.btn--primary{
  border:none;
  background: linear-gradient(135deg, var(--purple), #5b21b6);
  box-shadow: 0 14px 30px rgba(124,58,237,.24);
}
.btn--ghost{
  background: transparent;
  border:1px solid rgba(255,255,255,.14);
}
.btn--glow{
  border:none;
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(255,255,255,.12));
  box-shadow: 0 16px 40px rgba(124,58,237,.25);
}

/* Hero */
.hero{position:relative; padding:44px 0 36px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:26px;
  align-items:stretch;
}
.hero__copy{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius2);
  padding:28px;
  box-shadow: var(--shadow);
}
.pill{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background: rgba(124,58,237,.14);
  border:1px solid rgba(124,58,237,.25);
  color: rgba(244,245,255,.92);
  font-size:12px;
  letter-spacing:.3px;
  margin:0 0 10px;
}
.hero h1{
  margin:0 0 12px;
  font-size:44px;
  line-height:1.05;
  letter-spacing:-.8px;
}
.grad{
  background: linear-gradient(90deg, var(--purple2), var(--white));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero__cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px}

/* Stats */
.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.stat{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding:14px 14px;
}
.stat__n{font-size:22px; font-weight:800}
.stat__l{font-size:12px; color:var(--muted); margin-top:2px}

/* Showcase */
.hero__showcase{
  border-radius: var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(124,58,237,.18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Carousel: compatible con catalogo.js (#carousel-track .carousel__item) */
.carousel{height:100%; display:flex; flex-direction:column}
.carousel__track{
  flex:1;
  display:flex;
  gap:12px;
  padding:14px;
  overflow:hidden;
}
.carousel__item{
  flex: 0 0 100%;
  position:relative;
  display:none;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.carousel__item.is-active{display:block}
.carousel__item img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.carousel__cap{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}
.carousel__capTitle{font-weight:900}
.carousel__capSub{font-size:12px; color: rgba(244,245,255,.75); margin-top:2px}

.carousel__dots{
  display:flex; gap:8px; justify-content:center;
  padding:10px 14px 14px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.22);
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
}
.dot.is-active{
  background: rgba(167,139,250,.9);
  border-color: transparent;
}

/* Sections */
.section{padding:34px 0}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.section__head h2{margin:0; font-size:28px; letter-spacing:-.3px}

/* Filters */
.filters{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.input{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding:10px 12px;
  min-width: 240px;
}
.input input, .input select{
  width:100%;
  border:0;
  outline:0;
  background: transparent;
  color: var(--text);
}
.input select option{color:#111}

/* Grid + Cards (compatible con catalogo.js: .card, .card__media, .badge, etc.) */
.grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
}

.card{
  border-radius: 18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  display:flex;
  flex-direction:column;
  min-height: 320px;
  transition:.16s ease;
}
.card:hover{transform: translateY(-2px); border-color:rgba(255,255,255,.16)}
.card__media{height: 210px; background: rgba(0,0,0,.18)}
.card__media img{width:100%; height:100%; object-fit:cover}
.card__body{padding:14px 14px 16px; display:flex; flex-direction:column; gap:8px; flex:1}
.card__title{font-weight:900; letter-spacing:-.2px; line-height:1.15; margin:0}
.card__price{font-weight:900}
.card__actions{margin-top:auto; display:flex; gap:10px}
.card__actions .btn{height:40px; border-radius:12px; padding:0 14px}

.badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background: rgba(124,58,237,.16);
  border: 1px solid rgba(124,58,237,.25);
}

/* Empty */
.empty{
  margin-top:18px;
  border-radius: 18px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  padding:18px;
}

/* Contact */
.section--contact .contact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding:18px 18px;
}

/* Modal */
.modal{position:fixed; inset:0; display:none; z-index:80}
.modal.is-open{display:block}
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position:relative;
  width:min(980px, calc(100% - 28px));
  margin: 44px auto;
  border-radius: 22px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(14,15,22,.95), rgba(10,10,14,.92));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__close{
  position:absolute; top:14px; right:14px;
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
}
.modal__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:0;
}
.gallery{padding:16px; border-right:1px solid rgba(255,255,255,.08)}
.gallery__main{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.gallery__main img{width:100%; height:420px; object-fit:cover}
.gallery__thumbs{display:flex; gap:10px; margin-top:12px; overflow:auto; padding-bottom:6px}
.thumb{
  width:78px; height:78px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  flex:0 0 auto;
}
.thumb img{width:100%; height:100%; object-fit:cover}
.thumb.is-active{border-color: rgba(167,139,250,.8)}
.modal__info{padding:18px}
.kicker{font-size:12px; color:rgba(244,245,255,.68)}
.modal__info h3{margin:6px 0 8px; font-size:24px; letter-spacing:-.4px}
.price{font-size:20px; font-weight:900}
.chips{margin-top:12px}
.chips__label{font-size:12px; color:var(--muted); margin-bottom:8px}
.chips__row{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size:12px;
  font-weight:900;
}
.chip--muted{color: rgba(244,245,255,.70)}
.modal__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.modal__actions .btn{height:42px}

/* Responsive */
@media (max-width: 980px){
  .grid{grid-template-columns: repeat(3, minmax(0,1fr))}
  .hero__grid{grid-template-columns: 1fr; }
  .hero__showcase{min-height: 320px}
  .modal__grid{grid-template-columns:1fr}
  .gallery{border-right:0; border-bottom:1px solid rgba(255,255,255,.08)}
  .gallery__main img{height: 340px}
}
@media (max-width: 720px){
  .nav{display:none}
  .brand{min-width:unset}
  .hero h1{font-size:34px}
  .stats{grid-template-columns:1fr}
  .grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .section__head{flex-direction:column; align-items:stretch}
  .input{min-width: 0; width:100%}
  .filters{width:100%}
  .section--contact .contact{flex-direction:column; align-items:stretch}
}
@media (max-width: 430px){
  .grid{grid-template-columns: 1fr}
  .card{min-height: 310px}
  .card__media{height: 220px}
}
/* ============================= */
/* HERO PRO — tamaño fijo y portada estética */
/* ============================= */

.hero {
  min-height: 82vh;          /* hero grande y estable */
  max-height: 82vh;
  display: flex;
  align-items: stretch;
}

.hero__media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* 🔥 clave: recorta sin deformar */
  object-position: center;
  transition: transform .6s ease;
}

/* pequeño lujo visual */
.hero__media:hover img {
  transform: scale(1.04);
}

/* lado izquierdo siempre centrado */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* mobile */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    max-height: none;
  }

  .hero__media {
    height: 340px;          /* altura fija en celular */
  }
}
