/* ==============================
   TIENDA (venta.css) – V3 (IMAGEN REAL)
   - Grid sólido (sin superposición)
   - Cards tipo Adipa: imagen, badge, sombra, hover
   ============================== */

:root{
  --venta-bg: #020617;
  --venta-bg2: #0b1220;

  --venta-surface: #ffffff;
  --venta-surface-2: #f5f7fa;

  --venta-text: #0f172a;
  --venta-muted: #475569;
  --venta-border: #e5e7eb;

  --venta-primary: #2563eb;
  --venta-primary-strong: #1d4ed8;

  --venta-radius-xl: 18px;
  --venta-shadow-soft: 0 10px 24px rgba(0,0,0,.08);
}

/* Base */
.page-venta, .page-venta *{ box-sizing: border-box; }

.page-venta{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--venta-surface-2);
  color: var(--venta-text);
}

/* ==============================
   HERO
============================== */
.venta-hero{
  padding: 4.5rem 1.25rem 3rem;
  background: radial-gradient(circle at top left, #1e293b 0%, #020617 55%, #020617 100%);
}

.venta-hero-inner{
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: start;
}

.venta-kicker{
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  margin: 0 0 .75rem;
}

.venta-hero-text h1{
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 2.8vw, 3.1rem);
  line-height: 1.05;
}

.venta-subtitle{
  margin: 0 0 1.25rem;
  color: rgba(255,255,255,.80);
  line-height: 1.6;
  max-width: 55ch;
}

.venta-hero-actions{
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.venta-chips{
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.venta-chip{
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.85);
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .85rem;
  background: rgba(15,23,42,.25);
  backdrop-filter: blur(6px);
}

.venta-hero-panel{
  border-radius: var(--venta-radius-xl);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(2,6,23,.35);
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
  padding: 1.25rem 1.25rem 1.1rem;
  color: #fff;
}

.venta-hero-panel h3{
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}

.venta-hero-panel ul{
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}

.venta-wsp-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #0b1220;
  background: #6ee7b7;
  box-shadow: 0 16px 36px rgba(0,0,0,.25);
}
.venta-wsp-btn:hover{ filter: brightness(0.98); }

.venta-hero-note{
  margin: .85rem 0 0;
  font-size: .9rem;
  color: rgba(255,255,255,.72);
}

/* ==============================
   SECCIÓN LISTADO
============================== */
.venta-section{
  padding: 3rem 1.25rem 4rem;
}

.venta-wrap{
  max-width: 1220px;
  margin: 0 auto;
}

.venta-title{
  margin: 0;
  font-size: 1.8rem;
}

.venta-lead{
  margin: .5rem 0 1.25rem;
  color: var(--venta-muted);
}

/* Toolbar */
.venta-toolbar{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .9rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.venta-search input{
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--venta-border);
  outline: none;
  background: #fff;
}

.venta-search input:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.venta-filters{
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vfilter{
  border: 1px solid var(--venta-border);
  background: #fff;
  color: var(--venta-text);
  padding: .55rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.vfilter:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
}
.vfilter.is-active{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.55);
}

/* ==============================
   GRID (sin overlap)
============================== */
.venta-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

/* Responsivo de grilla */
@media (max-width: 1100px){
  .venta-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .venta-grid{ grid-template-columns: 1fr; }
}

/* ==============================
   CARD tipo Adipa (imagen real)
============================== */
.vcard{
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--venta-radius-xl);
  box-shadow: var(--venta-shadow-soft);
  overflow: hidden;

  display: flex;
  flex-direction: column;

  /* IMPORTANTE para evitar “crecimiento” raro */
  min-width: 0;
}

.vcard:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.12);
  border-color: rgba(37,99,235,.22);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

/* Imagen (thumbnail) */
.vthumb{
  width: 100%;
  height: 150px;                /* ajustable */
  overflow: hidden;
  background: #0b1220;          /* fallback si imagen no carga */
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.vthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contenido interno con padding */
.vcard-top,
.vcard-body,
.vcard-actions{
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.vcard-top{ padding-top: 1rem; padding-bottom: .65rem; }
.vcard-body{ padding-bottom: .25rem; }
.vcard-actions{ padding-bottom: 1.1rem; }

/* Badge (sticker sobre imagen) */
.vbadge{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  font-size: .70rem;
  font-weight: 900;
  letter-spacing: .12em;
  padding: .38rem .62rem;
  border-radius: 999px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(6px);
}

.vbadge-curso{ color: #1d4ed8; }
.vbadge-doc{ color: #047857; }

/* Títulos */
.vcard-title{
  margin: 0 0 .45rem;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.vcard-sub{
  margin: 0;
  color: var(--venta-muted);
  line-height: 1.45;
}

/* Body */
.vcard-body{
  color: var(--venta-text);
  line-height: 1.6;
}

.vcard-body p{ margin: 0 0 .75rem; }

.vlist{
  margin: .65rem 0 .5rem;
  padding-left: 1.1rem;
  color: var(--venta-muted);
}
.vlist li{ margin: .25rem 0; }

.vmeta{
  display: grid;
  gap: .3rem;
  margin-top: .8rem;
  font-size: .92rem;
  color: var(--venta-muted);
  padding-top: .7rem;
  border-top: 1px dashed rgba(15,23,42,.12);
}

/* Acciones abajo SIEMPRE */
.vcard-actions{
  margin-top: auto;
  padding-top: .95rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

/* Botones dentro de cards (evita desproporción) */
.vbtn{
  flex: 1 1 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-height: 44px;
  border-radius: 999px;
}

/* Asegura que links .btn no subrayen */
.page-venta .vcard .btn{ text-decoration: none; }

/* CTA final */
.venta-cta{
  margin-top: 1.25rem;
  padding: 1.15rem 1.1rem;
  border-radius: var(--venta-radius-xl);
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--venta-shadow-soft);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.venta-cta h3{ margin: 0 0 .25rem; }
.venta-cta p{ margin: 0; color: var(--venta-muted); }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 980px){
  .venta-hero-inner{ grid-template-columns: 1fr; }
  .venta-toolbar{ grid-template-columns: 1fr; }
  .venta-filters{ justify-content: flex-start; }
  .venta-cta{ flex-direction: column; align-items: stretch; }
}

/* Si tu header global es fixed y tapa el hero */
@media (max-width: 600px){
  .venta-hero{ padding-top: 3.5rem; }
  .vthumb{ height: 160px; }
}


/*tamaño imagen tarjeta"*/


.vthumb{
  width: 100%;
  height: 160px;          /* AJUSTA AQUÍ (140–180 ideal) */
  overflow: hidden;
  background: #0b1220;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.vthumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;     /* CLAVE */
  object-position: center;
  display: block;
}

@media (max-width: 600px){
  .vthumb{
    height: 180px;
  }
}
