:root{
  --bg:#ffffff;
  --bg-2:#f7fbff;
  --panel:rgba(255,255,255,0.96);
  --panel-2:rgba(255,255,255,0.88);
  --line:rgba(18,84,160,0.10);
  --text:#0d1b3d;
  --muted:#6b7a96;

  --primary:#1565b7;
  --primary-2:#2d8ae0;
  --accent:#59b52c;
  --accent-2:#7ad141;

  --shadow:0 20px 50px rgba(21,101,183,0.10);
  --shadow-soft:0 10px 28px rgba(21,101,183,0.08);
  --radius:24px;
  --max:1180px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(21,101,183,0.06), transparent 28%),
    radial-gradient(circle at top right, rgba(89,181,44,0.05), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #f8fbff 100%);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea,
select{
  font:inherit;
}

button{
  cursor:pointer;
  border:0;
}

.container{
  width:min(100% - 32px, var(--max));
  margin:0 auto;
}

.hidden{
  display:none !important;
}

/* NAV */
.nav{
  position:sticky;
  top:0;
  z-index:40;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,0.94);
  border-bottom:1px solid rgba(21,101,183,0.08);
  box-shadow:0 8px 24px rgba(21,101,183,0.05);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:92px;
}

.logo{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
  font-weight:800;
  letter-spacing:-0.03em;
  color:var(--text);
}

.logo-img{
  height:72px;
  width:auto;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 6px 14px rgba(21,101,183,0.10));
}

.logo-text{
  font-size:1.55rem;
  font-weight:900;
  letter-spacing:-0.05em;
  line-height:1;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:26px;
}

.nav-links a{
  position:relative;
  color:var(--muted);
  transition:.2s ease;
  font-weight:700;
  white-space:nowrap;
  font-size:1rem;
  padding:8px 0;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  transition:width .22s ease;
}

.nav-links a:hover{
  color:var(--primary);
}

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

.nav-right{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav-user{
  font-size:14px;
  opacity:.75;
  margin-right:8px;
  white-space:nowrap;
}

.nav-right .btn{
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
}

#openLoginBtn{
  background:#fff;
  border:1px solid rgba(21,101,183,0.12);
}

#openRegisterBtn{
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
}

#adminBtn{
  border:1px solid rgba(37,99,235,0.15);
  color:#2563eb;
}

#logoutBtn{
  min-width:90px;
  border:1px solid rgba(0,0,0,0.08);
}

/* HERO */
.hero{
  padding:52px 0 42px;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,520px);
  gap:60px;
  align-items:center;
}

/* HERO TRUST */
.hero-trust{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:22px 0 10px;
}

.hero-trust span{
  background:rgba(255,255,255,.75);
  border:1px solid rgba(15,23,42,.08);
  padding:10px 14px;
  border-radius:999px;
  font-size:.92rem;
  color:#0f172a;
  font-weight:600;
  backdrop-filter:blur(10px);
}

/* CITY BREADCRUMB */
.city-breadcrumb{
  max-width:1120px;
  margin:18px auto 0;
  padding:0 24px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:700;
  color:#64748b;
}

.city-breadcrumb a{
  color:#2563eb;
  text-decoration:none;
}

.city-breadcrumb a:hover{
  opacity:.75;
}

.city-breadcrumb span:last-child{
  color:#0f172a;
}

/* PREMIUM HERO FIX */
.show-window{
  position:relative;
  width:100%;
  max-width:520px;
  justify-self:end;
}

.mini-app{
  width:100%;
  overflow:hidden;
}

.premium-wrapper{
  position:relative;
  width:100%;
  overflow:hidden;
}

.premium-cards{
  width:100%;
  overflow-x:auto;
  scroll-behavior:smooth;
}

@media (max-width:900px){

  .hero-grid{
    grid-template-columns:1fr;
    gap:42px;
  }

  .show-window{
    max-width:100%;
    justify-self:center;
  }

}

h1{
  margin:0 0 14px;
  font-size:clamp(2.4rem,5vw,4.8rem);
  letter-spacing:-0.065em;
  line-height:.98;
  color:var(--text);
}

h2{
  margin:0 0 8px;
  font-size:clamp(1.7rem,3vw,2.6rem);
  letter-spacing:-.04em;
}

.section-head{
  margin-bottom:18px;
}

.eyebrow{
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.74rem;
  font-weight:800;
  margin-bottom:10px;
}

.section-text{
  color:var(--muted);
  line-height:1.75;
}

/* BUTTONS */
.btn{
  min-height:52px;
  padding:0 20px;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease,
    opacity .22s ease;
}

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

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:0 18px 35px rgba(21,101,183,0.18);
}

.btn-primary:hover{
  box-shadow:0 22px 40px rgba(21,101,183,0.22);
}

.btn-soft{
  color:var(--text);
  background:#fff;
  border:1px solid rgba(21,101,183,0.10);
  box-shadow:var(--shadow-soft);
}

.btn-soft:hover{
  background:#fff;
  border-color:rgba(89,181,44,0.18);
}

.btn-full{
  width:100%;
}

/* HERO PREMIUM */
.hero-badge-v2{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 18px;
  border-radius:999px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(37,99,235,0.10);
  box-shadow:0 10px 30px rgba(15,23,42,0.06);
  color:#2563eb;
  font-size:14px;
  font-weight:700;
  letter-spacing:-0.01em;
  backdrop-filter:blur(12px);
  margin-bottom:24px;
  animation:heroFadeUp .55s ease both;
}

.hero-title-v2{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
  font-size:clamp(48px, 8vw, 88px);
  line-height:.96;
  letter-spacing:-0.065em;
  font-weight:900;
  color:#0f172a;
  animation:heroFadeUp .8s ease both;
}

.hero-title-v2 span{
  display:block;
}

.hero-sub-v2{
  margin:22px 0 0;
  font-size:clamp(18px, 2.2vw, 22px);
  line-height:1.5;
  color:#64748b;
  font-weight:500;
  max-width:520px;
  animation:heroFadeUp 1s ease both;
}

.hero-actions-v2{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:34px;
  animation:heroFadeUp 1.15s ease both;
}

.hero-btn-main,
.hero-btn-secondary{
  min-height:56px;
  padding:0 24px;
  border-radius:18px;
  font-size:16px;
  font-weight:800;
  text-decoration:none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    background .22s ease,
    border-color .22s ease;
}

.hero-btn-main{
  background:linear-gradient(135deg, #2563eb, #22c55e);
  box-shadow:0 24px 50px rgba(34,197,94,0.28);
  font-weight:800;
  letter-spacing:.3px;
}

.hero-btn-main:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 30px 60px rgba(34,197,94,0.35);
}

.hero-btn-main:active{
  transform:scale(.97);
}

.hero-btn-secondary{
  background:rgba(255,255,255,0.82);
  border:1px solid rgba(15,23,42,0.08);
  backdrop-filter:blur(10px);
}

.hero-btn-secondary:hover{
  transform:translateY(-2px);
  border-color:rgba(37,99,235,0.18);
  background:rgba(255,255,255,0.96);
}

.hero-microcopy{
  margin-top:6px;
  font-size:.9rem;
  color:var(--muted);
  opacity:.85;
}

.gradient-text{
  background:linear-gradient(270deg, #2563eb, #22c55e, #2563eb);
  background-size:200% 200%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:gradientFlow 6s ease infinite;
  text-shadow:0 8px 30px rgba(37,99,235,0.25);
  letter-spacing:-.03em;
}

@keyframes gradientFlow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}

@keyframes heroFadeUp{
  from{
    opacity:0;
    transform:translateY(18px);
    filter:blur(6px);
  }
  to{
    opacity:1;
    transform:translateY(0);
    filter:blur(0);
  }
}

/* STATS */
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.stat{
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow-soft);
  border:1px solid rgba(21,101,183,0.07);
}

.stat strong{
  display:block;
  font-size:1.5rem;
  margin-bottom:4px;
  color:var(--text);
}

.stat span{
  color:var(--muted);
}

/* SHOW WINDOW / MINI APP */
.show-window{
  border-radius:32px;
  overflow:hidden;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(21,101,183,0.08);
  box-shadow:var(--shadow);
}

.window-top{
  display:flex;
  gap:8px;
  padding:14px 16px;
  border-bottom:1px solid rgba(21,101,183,0.05);
  background:rgba(255,255,255,0.92);
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(21,101,183,0.18);
}

.mini-app{
  padding:20px;
}

.mini-toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:18px;
}

.mini-search,
.mini-filter{
  background:rgba(255,255,255,0.98);
  border:1px solid rgba(21,101,183,0.08);
  border-radius:14px;
  padding:12px 14px;
  color:var(--muted);
}

.mini-search{
  flex:1;
}

.mini-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

.mini-card{
  position:relative;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(21,101,183,0.08);
  box-shadow:var(--shadow-soft);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
  cursor:pointer;
}

.mini-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 36px rgba(21,101,183,0.12);
  border-color:rgba(89,181,44,0.18);
}

.mini-body{
  padding:14px;
}

.mini-body strong{
  display:block;
  line-height:1.25;
  transition:color .2s ease;
  font-size:1rem;
}

.mini-card:hover .mini-body strong{
  color:var(--primary);
}

.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(89,181,44,0.10);
  color:var(--accent);
  font-size:.78rem;
  font-weight:700;
  margin-bottom:8px;
}

.hero-mini-price{
  margin-top:6px;
  font-size:.9rem;
  font-weight:800;
  color:var(--text);
  letter-spacing:-.02em;
}

.hero-mini-empty{
  grid-column:1 / -1;
  background:rgba(255,255,255,0.98);
  border:1px solid rgba(21,101,183,0.08);
  border-radius:20px;
  padding:20px;
  color:var(--muted);
  text-align:center;
}

.hero-mini-image{
  width:100%;
  height:92px;
  object-fit:cover;
  transition:transform .28s ease;
}

.hero-mini-placeholder{
  height:92px;
  background:linear-gradient(135deg, rgba(21,101,183,0.12), rgba(89,181,44,0.10));
}

.hero-mini-controls{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}

.hero-mini-arrow{
  width:42px;
  height:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.98);
  border:1px solid rgba(21,101,183,0.10);
  color:var(--text);
  font-size:1.4rem;
  font-weight:700;
  box-shadow:var(--shadow-soft);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero-mini-arrow:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(21,101,183,0.14);
  background:#fff;
}
/* PANELS */
.panel{
  background:#fff;
  border-radius:26px;
  padding:22px;
  box-shadow:0 10px 30px rgba(21,101,183,0.05);
  border:1px solid rgba(21,101,183,0.06);
}

/* FORM BASE */
.toolbar{
  display:grid;
  grid-template-columns:2fr 1fr 1fr auto;
  gap:14px;
  margin-bottom:20px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field label{
  color:var(--muted);
  font-size:.88rem;
  font-weight:700;
}

input,
textarea,
select{
  width:100%;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(21,101,183,0.10);
  background:#fff;
  color:var(--text);
  outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder,
textarea::placeholder{
  color:#98a5bf;
}

input:focus,
textarea:focus,
select:focus{
  border-color:rgba(21,101,183,0.35);
  box-shadow:0 0 0 4px rgba(21,101,183,0.10);
  background:#fff;
}

textarea{
  min-height:120px;
  resize:vertical;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.grid-3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}

.upload-box{
  background:linear-gradient(180deg, rgba(21,101,183,0.04), rgba(89,181,44,0.04));
  border:1px dashed rgba(89,181,44,0.30);
  border-radius:20px;
  padding:18px;
}

.preview{
  margin-top:10px;
  min-height:200px;
  background:#f8fbff;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  border:1px solid rgba(21,101,183,0.08);
  overflow:hidden;
}

/* POSTS */
.post-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:20px;
}

.card{
  background:#fff;
  border-radius:24px;
  padding:18px;
  border:1px solid rgba(21,101,183,0.08);
  box-shadow:0 14px 34px rgba(21,101,183,0.08);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
  cursor:pointer;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 22px 44px rgba(21,101,183,0.14);
  border-color:rgba(89,181,44,0.18);
}

.card img{
  width:100%;
  height:230px;
  object-fit:cover;
  border-radius:18px;
  margin-bottom:14px;
  transition:transform .28s ease;
}

.card:hover img{
  transform:scale(1.04);
}

.card h3{
  margin:0 0 10px;
  line-height:1.2;
  letter-spacing:-.03em;
  transition:color .2s ease;
}

.card:hover h3{
  color:var(--primary);
}

.price{
  font-weight:800;
  font-size:1.3rem;
  color:var(--text);
  margin-bottom:6px;
}

.location{
  color:var(--muted);
  font-size:.9rem;
  margin-bottom:8px;
}

.tag{
  background:rgba(89,181,44,0.10);
  color:var(--accent);
  padding:4px 10px;
  border-radius:999px;
  font-size:.75rem;
  display:inline-block;
  margin:6px 0 10px;
  font-weight:700;
}

.desc{
  color:var(--muted);
  line-height:1.6;
}

/* CARD PREMIUM */
.card-premium{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:0;
  overflow:hidden;
  border-radius:24px;
  background:#fff;
  border:1px solid rgba(21,101,183,0.08);
  box-shadow:0 16px 38px rgba(21,101,183,0.10);
  transition:transform .25s ease, box-shadow .25s ease;
}

.card-premium:hover{
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 20px 40px rgba(0,0,0,0.08);
}

.card-media{
  position:relative;
  height:260px;
  overflow:hidden;
  background:#eef5fb;
}

.card-image{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.card-premium:hover .card-image{
  transform:scale(1.06);
}

.card-image-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:700;
  background:linear-gradient(135deg, rgba(21,101,183,0.10), rgba(89,181,44,0.10));
}

.card-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(13,27,61,0.22), transparent 55%);
  pointer-events:none;
}

.card-topbar{
  position:absolute;
  top:14px;
  left:14px;
  right:14px;
  display:flex;
  justify-content:flex-start;
  z-index:2;
}

.card-tag{
  margin:0;
  background:rgba(255,255,255,0.92);
  color:var(--text);
  box-shadow:0 8px 18px rgba(13,27,61,0.10);
}

.card-price-badge{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:2;
  background:rgba(255,255,255,0.96);
  color:var(--text);
  padding:10px 14px;
  border-radius:999px;
  font-size:1rem;
  font-weight:900;
  letter-spacing:-.02em;
  box-shadow:0 10px 24px rgba(13,27,61,0.14);
}

.card-content{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
  padding:18px 18px 20px;
}

.card-title{
  margin:0 0 8px;
  font-size:1.25rem;
  font-weight:900;
  line-height:1.25;
  letter-spacing:-.04em;
}

.card-location{
  margin-bottom:10px;
  color:var(--muted);
  font-size:.94rem;
}

.card-description{
  margin:0;
  color:var(--muted);
  line-height:1.65;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* DETAIL */
.detail-modal{
  width:min(100%,920px);
  will-change:transform;
}

.detail-image-wrap{
  border-radius:22px;
  overflow:hidden;
  background:#f8fbff;
  border:1px solid rgba(21,101,183,0.08);
  min-height:340px;
}

.detail-image{
  width:100%;
  height:100%;
  min-height:340px;
  object-fit:cover;
  transition:transform .28s ease;
}

.detail-image-wrap:hover .detail-image{
  transform:scale(1.04);
}

.detail-content{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding-top:4px;
}

.detail-meta-top{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.detail-price{
  font-size:2.4rem;
  font-weight:900;
  letter-spacing:-.04em;
  line-height:1;
  margin:0;
}

.detail-location{
  color:var(--muted);
  font-size:1rem;
  line-height:1.5;
  padding-bottom:2px;
  border-bottom:1px solid rgba(21,101,183,0.08);
}

.detail-tag{
  display:inline-flex;
  width:fit-content;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(89,181,44,0.10);
  color:var(--accent);
  font-size:.82rem;
  font-weight:700;
}

.detail-description{
  color:#4e5f7d;
  line-height:1.75;
  margin:0;
  font-size:1rem;
}

.detail-phone-wrap{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:2px;
}

.detail-phone-wrap .btn{
  width:100%;
}

.detail-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:4px;
}

.detail-actions .btn{
  width:100%;
  min-width:0;
}

/* ADMIN */
.admin-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:18px;
}

.admin-stat{
  background:#fff;
  border:1px solid rgba(21,101,183,0.08);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow-soft);
}

.admin-stat strong{
  display:block;
  font-size:1.35rem;
  margin-bottom:6px;
}

.admin-stat span{
  color:var(--muted);
}

.admin-only{
  display:none;
}

.admin-only-section{
  display:none;
}

body.admin-mode .admin-only{
  display:inline-flex;
}

body.admin-mode .admin-only-section{
  display:block;
}

.admin-panel{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.admin-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.admin-tabs .btn.active{
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#fff;
  border-color:transparent;
}

.admin-danger{
  background:#fff5f5;
  color:#c81e1e;
  border:1px solid rgba(200,30,30,0.18);
  box-shadow:none;
}

.admin-danger:hover{
  background:#ffe8e8;
}

.admin-top-actions{
  display:flex;
  justify-content:flex-end;
  margin-bottom:12px;
}

.table-wrap{
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(21,101,183,0.08);
  background:#fff;
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

th,
td{
  text-align:left;
  padding:14px 16px;
  border-bottom:1px solid rgba(21,101,183,0.08);
  vertical-align:top;
}

th{
  color:var(--muted);
  font-size:.84rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.admin-empty{
  color:var(--muted);
  padding:16px 4px;
}

/* MARKETPLACE */
.market-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
  margin-top:20px;
}

.market-card{
  position:relative;
  height:240px;
  border-radius:24px;
  overflow:hidden;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease;
  box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

.market-card:hover{
  transform:translateY(-8px) scale(1.01);
  box-shadow:0 28px 60px rgba(0,0,0,0.25);
}

.market-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  transition:transform .5s ease;
}

.market-card:hover .market-bg{
  transform:scale(1.08);
}

.market-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.25), transparent);
}

.market-content{
  position:absolute;
  bottom:0;
  padding:20px;
  color:#fff;
  z-index:2;
}

.market-content h3{
  margin:0;
  font-size:1.3rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:#fff;
}

.market-content p{
  margin:6px 0 0;
  font-size:.95rem;
  opacity:.85;
  color:rgba(255,255,255,0.92);
  padding:0;
}

.market-badge{
  position:absolute;
  top:14px;
  left:14px;
  padding:6px 12px;
  font-size:.75rem;
  font-weight:700;
  border-radius:999px;
  background:rgba(255,255,255,0.15);
  backdrop-filter:blur(10px);
  color:#fff;
  z-index:2;
}
/* CONTACTO */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}

.contact-info{
  padding:28px;
}

.contact-points{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
  font-weight:600;
}

.contact-success,
.contact-error{
  margin-top:14px;
  padding:14px 16px;
  border-radius:16px;
  font-weight:600;
}

.contact-success{
  background:rgba(34,197,94,0.10);
  color:#15803d;
  border:1px solid rgba(34,197,94,0.20);
  animation:fadeInUp .4s ease;
}

.contact-error{
  background:rgba(239,68,68,0.10);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,0.20);
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* WHATSAPP FLOAT */
.floating-wa{
  position:fixed;
  right:22px;
  bottom:22px;
  width:64px;
  height:64px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;

  background:linear-gradient(135deg,#25D366,#1ebe5d);
  color:white;
  font-size:30px;
  text-decoration:none;

  box-shadow:
    0 10px 30px rgba(37,211,102,.35),
    0 0 0 8px rgba(37,211,102,.08);

  z-index:9999;
  transition:.25s ease;
}

.floating-wa:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(37,211,102,.45),
    0 0 0 10px rgba(37,211,102,.10);
}

@media (max-width:768px){

  .floating-wa{
    width:58px;
    height:58px;
    font-size:28px;
    right:18px;
    bottom:18px;
  }

}

/* FOOTER */
.site-footer{
  margin-top:120px;
  padding:55px 0 80px;
  position:relative;
  text-align:center;
  background:rgba(255,255,255,0.4);
  backdrop-filter:blur(6px);
}

.site-footer::before{
  content:"";
  display:block;
  width:80%;
  margin:0 auto 40px auto;
  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.25),
    transparent
  );
}

.site-footer p{
  margin:10px 0;
  line-height:1.8;
  opacity:.85;
  font-size:14px;
}

/* MODAL BASE CLEAN */
body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13,27,61,.24);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: #fff;
  padding: 22px;
  border-radius: 28px;
  width: min(100%, 520px);
  box-shadow: 0 30px 80px rgba(21,101,183,0.18);
  border: 1px solid rgba(21,101,183,0.08);
}

.modal-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 64px;
}

.modal-title {
  margin: 0;
  font-size: 1.35rem;
}

.close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(21,101,183,0.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
}

.link-btn {
  display: inline-flex;
  background: transparent;
  border: 0;
  padding: 2px 0 10px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

/* DETAIL MODAL */
#detailModal {
  align-items: center;
}

#detailModal .detail-modal {
  width: min(100%, 760px);
  max-height: 88vh;
  overflow-y: auto;
}
/* STICKY */
.sticky-publish-btn{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:1200;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:0 22px;
  border-radius:999px;
  background:linear-gradient(135deg, #2563eb, #22c55e);
  color:#fff;
  font-weight:800;
  font-size:16px;
  letter-spacing:-.02em;
  box-shadow:0 18px 40px rgba(34,197,94,0.32);
  text-decoration:none;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease;
}

.sticky-publish-btn:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:0 24px 52px rgba(34,197,94,0.40);
}

.sticky-publish-btn:active{
  transform:scale(.97);
}

.sticky-publish-btn.is-hidden{
  opacity:0;
  pointer-events:none;
  transform:translateY(16px);
}

/* TABLET */
@media(max-width:1080px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .toolbar{
    grid-template-columns:1fr 1fr;
  }

  .stats,
  .admin-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:860px){
  .detail-price{
    font-size:2rem;
  }
}

/* MOBILE */
@media(max-width:760px){
  .container{
    width:min(100% - 18px, var(--max));
  }

  .nav{
    background:rgba(255,255,255,0.96);
  }

  .nav-inner{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    min-height:auto;
    padding:10px 0;
  }

  .logo{
    justify-content:center;
    gap:10px;
  }

  .logo-img{
    height:58px;
  }

  .logo-text{
    font-size:1.18rem;
  }

  .nav-links{
    width:100%;
    display:flex;
    justify-content:center;
    gap:18px;
    overflow-x:auto;
    padding:2px 0 4px;
    scrollbar-width:none;
  }

  .nav-links::-webkit-scrollbar{
    display:none;
  }

  .nav-links a{
    flex:0 0 auto;
    font-size:.96rem;
    padding:6px 0;
  }

  .nav-right{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }

  .nav-user{
    display:none;
  }

  .nav-right .btn{
    min-height:40px;
    padding:0 12px;
    font-size:.9rem;
    border-radius:14px;
  }

  .hero{
    padding:10px 0 20px;
  }

  .hero-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .hero-badge-v2{
    width:100%;
    justify-content:center;
    text-align:center;
    font-size:13px;
    padding:10px 14px;
    margin-bottom:18px;
  }

  .hero-title-v2{
    font-size:clamp(46px, 12vw, 72px);
    line-height:.88;
    letter-spacing:-.06em;
    text-align:center;
    max-width:520px;
    margin:0 auto;
  }

  .hero-sub-v2{
    font-size:18px;
    margin-top:18px;
    text-align:center;
    opacity:.85;
    font-weight:500;
  }

  .hero-actions-v2{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin-top:26px;
  }

  .hero-btn-main,
  .hero-btn-secondary{
    width:100%;
    justify-content:center;
  }

  .hero-microcopy{
    text-align:center;
  }

  .stats{
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:6px;
    margin-bottom:20px;
    padding-bottom:10px;
  }

  .stat{
    padding:12px 10px;
    border-radius:16px;
  }

  .stat strong{
    font-size:1rem;
  }

  .stat span{
    font-size:.8rem;
  }

  .show-window{
    border-radius:22px;
  }

  .mini-app{
    padding:12px;
  }

  .mini-toolbar{
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    margin-bottom:10px;
  }

  .mini-search,
  .mini-filter{
    padding:10px 12px;
    font-size:.9rem;
    border-radius:12px;
  }

  .mini-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .mini-card{
    border-radius:16px;
  }

  .hero-mini-image,
  .hero-mini-placeholder{
    height:118px;
  }

  .mini-body{
    padding:12px;
  }

  .mini-body strong{
    font-size:.98rem;
  }

  .hero-mini-price{
    font-size:.95rem;
  }

  .hero-mini-controls{
    justify-content:center;
    margin-top:10px;
  }

  .hero-mini-arrow{
    width:42px;
    height:42px;
    font-size:1.2rem;
  }

  .panel,
  .modal,
  .card{
    border-radius:18px;
  }

  .panel{
    padding:14px;
  }

  .panel h2{
    font-size:1.4rem;
    line-height:1.2;
  }

  .section-text{
    font-size:.95rem;
  }

  .toolbar,
  .grid-2,
  .grid-3,
  .admin-grid{
    grid-template-columns:1fr;
  }

  .admin-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  input,
  textarea,
  select{
    font-size:16px;
    padding:13px 14px;
    border-radius:15px;
  }

  .preview{
    min-height:170px;
  }

  .post-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .card{
    padding:13px;
  }

  .card img{
    height:210px;
    border-radius:14px;
  }

  .card h3{
    font-size:1.05rem;
  }

  .detail-image-wrap{
    min-height:210px;
    border-radius:16px;
  }

  .detail-image{
    min-height:210px;
  }

  .detail-actions{
    grid-template-columns:1fr;
  }

  .modal{
    width:min(100%,100%);
    padding:16px;
    border-radius:20px;
  }

  .modal-title{
    font-size:1.1rem;
  }

  .close{
    top:10px;
    right:10px;
    width:46px;
    height:46px;
    font-size:24px;
  }

  #detailModal{
    padding:0;
  }

  #detailModal .detail-modal{
    width:100%;
    max-width:100%;
    min-height:72vh;
    padding:18px 16px 28px;
    border-top-left-radius:28px;
    border-top-right-radius:28px;
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
  }

  #detailModal .detail-modal::before{
    content:"";
    display:block;
    width:52px;
    height:5px;
    border-radius:999px;
    background:rgba(13, 27, 61, 0.14);
    margin:2px auto 14px;
  }

  .market-card{
    height:180px;
    border-radius:18px;
  }

  .market-content h3{
    font-size:1.05rem;
  }

  .market-content p{
    font-size:.85rem;
  }

  .admin-top-actions{
    justify-content:stretch;
  }

  .admin-top-actions .btn{
    width:100%;
  }

  .contact-grid{
    grid-template-columns:1fr;
  }

  .sticky-publish-btn{
    left:16px;
    right:16px;
    bottom:calc(16px + env(safe-area-inset-bottom));
    width:auto;
    min-height:56px;
    font-size:17px;
    box-shadow:0 16px 36px rgba(34,197,94,0.28);
  }

  body{
    padding-bottom:env(safe-area-inset-bottom);
  }
}

@media(min-width:761px){
  #detailModal{
    align-items:center;
  }

  #detailModal .detail-modal{
    border-bottom-left-radius:28px;
    border-bottom-right-radius:28px;
    transform:scale(.96);
    opacity:0;
    transition:transform .25s ease, opacity .25s ease;
  }

  #detailModal.active .detail-modal{
    transform:scale(1);
    opacity:1;
  }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
    scroll-behavior:auto !important;
  }
}

/* SWIPE HERO */
#heroMiniGrid{
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
}

#heroMiniGrid.swiping{
  cursor:grabbing;
}
/* ============================= */
/* FOOTER PRO UPGRADE */
/* ============================= */

.site-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.site-footer a {
  transition: all 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .site-footer .container {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    text-align: left !important;
  }

  .site-footer .container > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    align-items: flex-start !important;
  }

  .site-footer .container > div:first-child > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
  }

  .site-footer .container > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 22px !important;
  }

  .site-footer .container > div:last-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .site-footer a {
    font-size: 16px;
  }
}
.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
  }

  .footer-legal {
    margin-top: 10px;
    opacity: 0.8;
  }

  .footer-social a {
    padding: 6px 10px;
    border-radius: 8px;
  }

  .footer-links a:active {
    transform: scale(0.96);
  }

}
/* ============================= */
/* STARTUP PREMIUM FOOTER FINAL */
/* ============================= */

.site-footer {
  background:
    radial-gradient(circle at bottom right, rgba(89,181,44,0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(21,101,183,0.06), transparent 24%),
    rgba(255,255,255,0.72);
}

.footer-brand h3 {
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.7;
}

.footer-social a,
.footer-links a,
.footer-legal a {
  border-radius: 999px;
}

.footer-social a:hover,
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 0 120px;
  }

  .footer-brand h3 {
    font-size: 1.55rem;
  }

  .footer-brand p {
    font-size: 1rem;
    max-width: 340px;
  }

  .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-social a {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(21,101,183,0.08);
    padding: 8px 12px;
    box-shadow: var(--shadow-soft);
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
  }

  .footer-links a,
  .footer-legal a {
    font-size: 1rem;
    font-weight: 800;
  }

  .footer-legal {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0.85;
  }

  .footer-bottom {
    padding-top: 10px;
    border-top: 1px solid rgba(13,27,61,0.06);
  }
}
/* ============================= */
/* IMAGE CTA PRO (hover + motion) */
/* ============================= */

.detail-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* Botón base */
.image-cta {
  position: absolute;
  bottom: 16px;
  right: 16px;

  background: linear-gradient(135deg, #1565b7, #59b52c);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  /* 🔥 animación base */
  transform: translateY(20px) scale(0.95);
  opacity: 0;

  transition: all 0.35s ease;
}

/* 👆 aparece al hacer hover en desktop */
.detail-image-wrap:hover .image-cta {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* 📱 en móvil SIEMPRE visible */
@media (max-width: 768px) {
  .image-cta {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ✨ micro efecto al pasar mouse */
.image-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

/* 📱 efecto tap */
.image-cta:active {
  transform: scale(0.95);
}

/* ✨ efecto glow suave */
.image-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #59b52c, #1565b7);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.image-cta:hover::after {
  opacity: 0.2;
}
/* IMAGE DETAIL HOVER / TAP PRO */
.detail-image {
  transition: transform 0.18s ease, filter 0.18s ease;
}

.detail-image:hover {
  transform: scale(1.01);
  filter: brightness(1.03);
}

.detail-image:active {
  transform: scale(0.99);
}
/* FOOTER DESKTOP PRO */

.site-footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-top {
  flex-direction: column;
  align-items: flex-start;
}

.footer-links,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom {
  grid-column: span 3;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

/* EXTRA HOVER PREMIUM */

.site-footer a {
  opacity: 0.7;
  transition: 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
}
/* MODAL DETAIL MOBILE / DESKTOP FIX */
.detail-modal {
  max-height: 88vh;
  overflow-y: auto;
  padding-bottom: 24px;
}

.detail-modal .close {
  position: sticky;
  top: 0;
  z-index: 20;
}

.detail-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f6f8fb;
}

.detail-actions,
.detail-phone-wrap {
  position: relative;
  z-index: 5;
}

@media (max-width: 768px) {
  .detail-modal {
    width: calc(100% - 24px);
    max-height: 82vh;
    overflow-y: auto;
    padding: 18px;
  }

  .detail-image {
    max-height: 360px;
    object-fit: contain;
  }

  .detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
/* =============================== */
/* FIX FINAL MODALES + CLICKS */
/* =============================== */

.modal-backdrop {
  display: none;
  pointer-events: none;
}

.modal-backdrop.active {
  display: flex;
  pointer-events: auto;
}

.modal {
  pointer-events: auto;
  position: relative;
  z-index: 10001;
}

.modal input,
.modal textarea,
.modal select,
.modal button,
.modal a {
  pointer-events: auto;
}

body.modal-open {
  overflow: auto !important;
}
/* =============================== */
/* PREMIUM CARDS */
/* =============================== */

.premium-cards {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  overflow-x: auto;
}

.premium-card {
  min-width: 180px;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.premium-card:hover {
  transform: translateY(-5px);
}

.premium-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.premium-card h4 {
  margin: 8px;
  font-size: 14px;
}

.premium-card span {
  margin: 8px;
  display: block;
  color: green;
  font-weight: bold;
}
/* 🔥 Premium nav PRO */
.premium-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: white;
  border: none;
  font-size: 22px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-nav.left {
  left: 6px;
}

.premium-nav.right {
  right: 6px;
}
.show-window {
  position: relative;
}
/* MODAL DETALLE PRO */
#postDetailModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#postDetailModal.active {
  display: flex;
}

#postDetailModal .modal {
  background: white;
  padding: 20px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  animation: fadeIn 0.2s ease;
}

#postDetailModal img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

#postDetailModal h2 {
  margin: 10px 0;
}

#postDetailModal p {
  margin: 5px 0;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* MODAL DETALLE FINAL */

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: white;
  padding: 20px;
  border-radius: 16px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  font-weight: bold;
  border: none;
}
.premium-active {
  border: 2px solid gold;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  position: relative;
}

.badge-premium {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(45deg, gold, orange);
  color: black;
  font-weight: bold;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 6px;
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 10px;
}
.detail-seller {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}
.btn-whatsapp {
  background: #25D366;
  color: white;
  font-weight: 600;
  font-size: 15px;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}
.detail-content {
  padding-bottom: 10px;
}
.btn-whatsapp {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  transform: scale(1.02);
  transition: 0.2s ease;
}
.premium-check {
  margin-top: 14px;
}

.premium-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  cursor: pointer;
}

.premium-check-label input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.premium-check-label span {
  display: inline-block;
}
/* Ocultar botón + Publicar dentro del modal solo en móvil */
@media (max-width: 768px) {
  #detailModal a[href="#publicar"],
  #detailModal button[onclick*="publicar"],
  #detailModal .btn-publicar,
  #detailModal .publish-btn {
    display: none !important;
  }
}
@media (max-width: 768px) {
  a.btn.btn-primary {
    display: none !important;
  }
}

  .hero-right {
    display: none !important;
  }
}
/* FOOTER PRO LIMPIO */
.site-footer {
  margin-top: 80px;
  padding: 64px 24px 36px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
  text-align: center;
}

/* LEFT */
.footer-left {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.footer-left h3 {
  margin: 0 0 12px;
  color: #0b1533;
}

.footer-left p {
  margin: 0 auto;
  color: #52627a;
  max-width: 360px;
  line-height: 1.6;
}

/* SOCIAL */
.footer-social {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* RIGHT */
.footer-right {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 8px;
  color: #0b1533;
}

/* LINKS */
.site-footer a {
  text-decoration: none;
  color: #52627a;
  transition: 0.2s;
}

.site-footer a:hover {
  color: #2563eb;
}

/* BOTTOM */
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  color: #52627a;
  font-weight: 500;
}

.footer-bottom p {
  margin: 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-right {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* MENU HAMBURGUESA MOBILE FINAL */
/* ============================= */

.hamburger-btn {
  display: none;
}

@media (max-width: 760px) {
  .nav-inner {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
  }

  .logo {
    justify-content: flex-start;
  }

  .hamburger-btn {
    display: flex;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(21,101,183,0.12);
    box-shadow: 0 8px 24px rgba(21,101,183,0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 60;
  }

  .hamburger-btn span {
    width: 22px;
    height: 2px;
    background: #0d1b3d;
    border-radius: 999px;
    transition: 0.25s ease;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(21,101,183,0.08);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 18px 40px rgba(21,101,183,0.10);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow: visible;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .nav-links a:hover {
    background: rgba(21,101,183,0.06);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-right {
    grid-column: 1 / -1;
  }
}
/* ============================= */
/* FIX TABLET HERO - PREMIUM A LA DERECHA */
/* ============================= */

@media (min-width: 761px) and (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: center;
  }

  .hero {
    padding: 44px 0 32px;
  }

  .hero-title-v2 {
    font-size: clamp(54px, 7vw, 78px);
  }

  .hero-sub-v2 {
    font-size: 18px;
  }

  .hero-actions-v2 {
    gap: 12px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .show-window {
    width: 100%;
    max-width: 520px;
    justify-self: end;
  }

  .premium-card {
    min-width: 160px;
  }

  .premium-card img {
    height: 100px;
  }
}
/* ============================= */
/* FORMULARIO PUBLICAR PREMIUM */
/* ============================= */

#publicar .panel {
  background:
    radial-gradient(circle at top left, rgba(21,101,183,0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(89,181,44,0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(21,101,183,0.10);
  box-shadow: 0 30px 70px rgba(21,101,183,0.12);
  border-radius: 28px;
  padding: 30px;
}

/* Inputs más premium */
#publicar input,
#publicar select,
#publicar textarea {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(21,101,183,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(21,101,183,0.05);
  transition: all 0.2s ease;
}

/* Hover + focus */
#publicar input:focus,
#publicar select:focus,
#publicar textarea:focus {
  border-color: #1565b7;
  box-shadow: 0 0 0 4px rgba(21,101,183,0.10);
  outline: none;
}

/* Labels más claros */
#publicar .field label {
  color: #1565b7;
  font-weight: 800;
  margin-bottom: 6px;
  display: block;
}

/* Sección imagen más pro */
#publicar .field-upload {
  background: linear-gradient(180deg, rgba(21,101,183,0.05), rgba(89,181,44,0.06));
  border: 1px dashed rgba(21,101,183,0.25);
  border-radius: 22px;
  padding: 22px;
}
/* ============================= */
/* FIX DESKTOP PUBLICAR PREMIUM */
/* ============================= */

@media (min-width: 1090px) {
  #publicar .panel {
    background:
      radial-gradient(circle at top left, rgba(21,101,183,0.16), transparent 32%),
      radial-gradient(circle at bottom right, rgba(89,181,44,0.16), transparent 32%),
      linear-gradient(180deg, #ffffff 0%, #eef7ff 100%) !important;
    border: 1px solid rgba(21,101,183,0.18) !important;
    box-shadow: 0 34px 90px rgba(21,101,183,0.18) !important;
    border-radius: 32px !important;
    padding: 34px !important;
  }

  #publicar input,
  #publicar select,
  #publicar textarea {
    background: rgba(255,255,255,0.98) !important;
    border: 1px solid rgba(21,101,183,0.18) !important;
    box-shadow: 0 12px 30px rgba(21,101,183,0.08) !important;
  }

  #publicar .upload-box {
    background:
      linear-gradient(135deg, rgba(21,101,183,0.08), rgba(89,181,44,0.10)) !important;
    border: 1px dashed rgba(21,101,183,0.35) !important;
  }
}
/* ============================= */
/* BOOST PREMIUM DESKTOP FINAL */
/* ============================= */

@media (min-width: 1090px) {

  #publicar {
    padding-top: 30px;
  }

  /* PANEL */
  #publicar .panel {
    background: #ffffff !important;
    border: 1px solid rgba(21,101,183,0.22) !important;

    box-shadow:
      0 50px 140px rgba(21,101,183,0.18),
      0 12px 40px rgba(0,0,0,0.08) !important;

    border-radius: 32px !important;
    padding: 36px !important;
  }

  /* INPUTS */
  #publicar input,
  #publicar select,
  #publicar textarea {
    background: #f9fbff !important;
    border: 1.5px solid rgba(21,101,183,0.28) !important;
    box-shadow: none !important;
  }

  /* HOVER */
  #publicar input:hover,
  #publicar textarea:hover,
  #publicar select:hover {
    border-color: var(--primary) !important;
  }

  /* FOCUS PRO */
  #publicar input:focus,
  #publicar textarea:focus,
  #publicar select:focus {
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(21,101,183,0.12) !important;
  }

  /* LABELS */
  #publicar .field label {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

}
/* ============================= */
/* BOTÓN PUBLICAR PRO */
/* ============================= */

#publicar .btn-primary {
  margin-top: 18px;
  height: 64px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;

  background: linear-gradient(135deg, #1565b7, #59b52c);
  border-radius: 20px;

  box-shadow:
    0 20px 50px rgba(21,101,183,0.25),
    0 8px 20px rgba(0,0,0,0.08);

  transition: all 0.25s ease;
}

/* HOVER */
#publicar .btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 26px 60px rgba(21,101,183,0.30),
    0 12px 30px rgba(0,0,0,0.12);
}

/* CLICK */
#publicar .btn-primary:active {
  transform: scale(0.97);
}

/* FULL WIDTH */
#publicar .btn-primary {
  width: 100%;
}
/* ============================= */
/* UPLOAD IMAGEN PRO */
/* ============================= */

#publicar .upload-box {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  border: 2px dashed rgba(21,101,183,0.28);
  background:
    radial-gradient(circle at top left, rgba(21,101,183,0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(89,181,44,0.10), transparent 35%),
    #f8fbff;
}

#publicar .upload-box strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: #0d1b3d;
  margin-bottom: 8px;
}

#publicar .upload-box .helper {
  margin: 0 0 16px;
  color: #6b7a96;
}

#publicar input[type="file"] {
  background: #fff;
  border: 1px solid rgba(21,101,183,0.18);
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
}

#publicar .preview {
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(21,101,183,0.04), rgba(89,181,44,0.05)),
    #ffffff;
  border: 1px solid rgba(21,101,183,0.10);
  border-radius: 22px;
  color: #6b7a96;
  font-weight: 800;
}

#publicar .upload-box:hover {
  border-color: rgba(21,101,183,0.45);
  box-shadow: 0 20px 50px rgba(21,101,183,0.10);
}
/* ============================= */
/* WIZARD BASE (PASO 2) */
/* ============================= */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.wizard-dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eef4ff;
  color: #6b7a96;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  border: 1px solid rgba(21,101,183,0.12);
}

.wizard-dot.active {
  background: linear-gradient(135deg, #1565b7, #59b52c);
  color: #fff;
}

.wizard-line {
  width: 50px;
  height: 3px;
  background: #e5eef9;
  border-radius: 999px;
}

/* páginas */
.wizard-page {
  display: none;
}

.wizard-page.active {
  display: block;
}

/* botones */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}
#createPostBtn {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: all 0.25s ease;
}

#createPostBtn:hover {
  transform: scale(1.02);
  box-shadow: 0 26px 60px rgba(34,197,94,0.45);
}

#createPostBtn.loading {
  opacity: 0.8;
  pointer-events: none;
}

#createPostBtn.success {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}
.toast {
  position: fixed;

  bottom: 130px; /* 🔥 aquí está el cambio */
  left: 50%;
  transform: translateX(-50%) translateY(20px);

  background: #111827;
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;

  font-weight: 600;
  font-size: 15px;

  box-shadow: 0 20px 50px rgba(0,0,0,0.25);

  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-call {
  width: 100%;
  background: #ffffff;
  color: #0d1b3d;
  border: 1px solid rgba(21,101,183,0.12);
  border-radius: 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(21,101,183,0.08);
}

.btn-call:hover {
  background: #f8fbff;
}
/* FIX MANCHA NEGRA EN MODAL DETALLE */
#detailPhone,
.detail-phone-wrap {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

#detailPhone:empty {
  display: none !important;
}

#detailPhone .btn-call {
  margin-top: 10px;
}
.btn-call {
  width: 100%;
  min-height: 52px;
  background: #ffffff !important;
  color: #0d1b3d !important;
  border: 1px solid rgba(21,101,183,0.12) !important;
  border-radius: 16px !important;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(21,101,183,0.08);
}
.detail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.detail-thumb {
  width: 86px;
  height: 70px;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #fff;
  padding: 0;
  flex: 0 0 auto;
}

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

.detail-thumb.active {
  border-color: #1565b7;
}
.card-image-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  height: 260px;
}

.card-image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.card-image-stack img:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.card-image-stack img:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}
/* GALERÍA MODAL PRO - NO VERTICAL */
.detail-gallery {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.detail-thumb {
  width: 86px !important;
  height: 70px !important;
  min-width: 86px !important;
  border-radius: 14px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #fff;
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.detail-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 12px;
}

.detail-thumb.active {
  border-color: #1565b7;
}
/* FIX FINAL GALERÍA MODAL - MINIATURAS */
#detailGallery {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  margin-top: 12px !important;
  overflow-x: auto !important;
  padding: 6px 0 10px !important;
  max-height: 90px !important;
}

#detailGallery .detail-thumb {
  width: 88px !important;
  height: 70px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  max-height: 70px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  border: 2px solid transparent !important;
  overflow: hidden !important;
  background: #fff !important;
  flex: 0 0 88px !important;
}

#detailGallery .detail-thumb img {
  width: 88px !important;
  height: 70px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  min-height: 70px !important;
  max-height: 70px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 12px !important;
}

#detailGallery .detail-thumb.active {
  border-color: #1565b7 !important;
}
/* DETAIL GALLERY PRO CONTROLS */
.detail-image-wrap {
  position: relative;
}

.detail-image-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.detail-img-arrow {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #0d1b3d;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.detail-img-counter {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: -150px;
  transform: translateX(-50%);
  background: rgba(13,27,61,0.78);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}
/* BUSCADOR PRO+ VISUAL */
.toolbar {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(21,101,183,0.10);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(21,101,183,0.08);
}

#searchInput {
  background-image: linear-gradient(90deg, rgba(21,101,183,0.06), rgba(89,181,44,0.05));
}

.search-results-note {
  grid-column: 1 / -1;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(21,101,183,0.06);
  color: #1565b7;
  font-weight: 800;
}

.card-premium {
  animation: filterFade .22s ease;
}

@keyframes filterFade {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ===== FOOTER PRO LIMPIO ===== */

.site-footer {
  position: relative;
  margin-top: 90px;
  padding: 70px 24px 36px;
}

/* efecto suave arriba */
.site-footer::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(13,27,61,0.04));
}

/* GRID */
.footer-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

/* CAJAS */
.footer-left,
.footer-right {
  border-radius: 28px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(21,101,183,0.08);
  box-shadow: 0 24px 70px rgba(21,101,183,0.08);
}

/* LEFT */
.footer-left {
  padding: 34px;
  text-align: center;
}

.footer-left p {
  margin: 10px auto 20px;
  max-width: 420px;
}

/* SOCIAL */
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* RIGHT */
.footer-right {
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-col h4 {
  margin-bottom: 12px;
}

/* LINKS */
.site-footer a {
  text-decoration: none;
  color: #6b7a96;
  transition: 0.2s;
}

.site-footer a:hover {
  color: #1565b7;
}

/* ===== COPYRIGHT CENTRADO (REAL Y LIMPIO) ===== */
.footer-bottom {
  max-width: 1120px;
  margin: 34px auto 0;
  padding-top: 20px;

  border-top: 1px solid rgba(13,27,61,0.08);

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #6b7a96;
  font-size: 14px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 50px;
    padding: 46px 20px 30px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .footer-right {
    grid-template-columns: 1fr;
  }
}
.footer-left,
.footer-right {
  backdrop-filter: blur(10px);
}
/* ===== FOOTER ULTRA PRO MICRO ANIMATIONS ===== */

.footer-left,
.footer-right {
  backdrop-filter: blur(14px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.footer-left:hover,
.footer-right:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 90px rgba(21,101,183,0.14);
  border-color: rgba(21,101,183,0.16);
}

.site-footer a {
  position: relative;
  font-weight: 700;
}

.site-footer a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1565b7, #59b52c);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.site-footer a:hover::after {
  width: 70%;
}

.footer-social a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(21,101,183,0.08);
}

.footer-social a:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom {
  opacity: 0.85;
}
.btn-sold {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
  font-weight: 900;
  cursor: pointer;
}

.btn-sold:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-sold {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: none;

  background: linear-gradient(135deg, #111827, #374151);
  color: white;
  font-weight: 900;
  font-size: 15px;

  cursor: pointer;
  transition: 0.25s;
}

.btn-sold:hover {
  transform: scale(1.02);
  opacity: 0.9;
}
.premium-push {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: #ef4444;
}
.badge-premium {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg,#ff7a00,#ff3d00);
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 10;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.pro-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.pro-actions .btn {
  min-height: 52px;
  border-radius: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pro-actions .btn-call {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: white;
  border: none;
}

.pro-actions .btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
}

.pro-actions .btn-soft {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.pro-actions .btn-full {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .pro-actions {
    grid-template-columns: 1fr;
  }
}
.badge-premium {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111827;
  border: 1px solid rgba(120, 53, 15, 0.18);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.28);
  font-weight: 900;
  letter-spacing: .04em;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.badge-premium {
  background: linear-gradient(90deg, #facc15, #f59e0b);
  color: #000;
  font-weight: 700;
}
.cta-final {
  margin: 90px 0 40px;
  padding: 70px 24px;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.cta-final h2 {
  font-size: clamp(30px, 5vw, 54px);
  margin-bottom: 12px;
}

.cta-final p {
  color: #6b7a96;
  margin-bottom: 24px;
}
.detail-image {
  touch-action: pan-y;
  user-select: none;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-sub {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}
.hero-brand {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}
.footer-bottom {
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}
/* PREMIUM HERO - mejora visual segura */
.hero-preview,
.hero-showcase,
.premium-window,
.show-window {
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.premium-card,
.mini-premium-card,
.hero-premium-card {
  border: 2px solid rgba(250, 204, 21, 0.85);
  box-shadow: 0 18px 45px rgba(250, 204, 21, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.premium-card:hover,
.mini-premium-card:hover,
.hero-premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(250, 204, 21, 0.26);
}

.badge-premium {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111827;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.35);
}
/* ============================= */
/* LISTOYA TRANSLATOR ULTRA PRO */
/* ============================= */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,251,255,0.88));
  border: 1px solid rgba(21,101,183,0.12);
  box-shadow:
    0 12px 30px rgba(21,101,183,0.10),
    inset 0 1px 0 rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  z-index: 80;
}

.lang-btn {
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: #6b7a96;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  transition:
    background .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  color: #1565b7;
}

.lang-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #1565b7, #59b52c);
  box-shadow: 0 10px 22px rgba(21,101,183,0.22);
}

/* MOBILE */
@media (max-width: 760px) {
  .lang-switch {
    order: -1;
    margin-right: 6px;
  }

  .nav-right {
    align-items: center;
  }

  .lang-btn {
    min-width: 40px;
    height: 32px;
    font-size: 11px;
  }
}
