/* =======================================================
   ARTEPRINT — CSS UNIFICADO (formularios + vasos)
   ======================================================= */

/* ------------------------------
   Variables base
   ------------------------------ */
:root{
  --ap-bg: #fff;
  --ap-text: #111;
  --ap-dim:  #555;
  --ap-muted:#777;
  --ap-border:#e9ecef;
  --ap-border-strong:#dfe3e8;
  --ap-accent:#1a73e8;
  --ap-primary:#111;
  --ap-radius: 12px;
  --ap-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06);
  --ap-shadow-hover: 0 4px 10px rgba(0,0,0,.10), 0 10px 26px rgba(0,0,0,.12);
}

/* ------------------------------
   Estructura base de formularios
   ------------------------------ */
.ap-wrap{ max-width:860px; margin:0 auto; }

.ap-badge{
  background:#111; color:#fff;
  padding:6px 10px; border-radius:6px;
  display:inline-block; margin:6px 0 12px;
  font-size:12px;
}

.ap-section{ margin:28px 0 30px; }

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

.ap-label{
  display:block; margin-bottom:8px;
  font-weight:700; color:#111;
}

.ap-req{ color:#c00; margin-left:4px; }

.ap-field{
  width:100%; padding:12px;
  border:1px solid #ccc; border-radius:10px;
  font-size:15px;
}

.ap-err{ color:#b33; font-size:12px; margin:8px 0 0; display:none; }

.ap-actions{ margin-top:22px; }

.ap-btn{
  display:inline-block; padding:10px 14px;
  border-radius:10px; cursor:pointer;
  border:1px solid #ccc; background:#f7f7f7; color:#333;
}

.ap-btn-primary{ background:#111; color:#fff; border-color:#111; }
.ap-btn-ghost{ background:#f7f7f7; }
.ap-btn:hover{ filter:brightness(.96); }

.ap-hint{ color:#666; font-size:14px; margin-top:10px; }

/* ------------------------------
   Hero interno (encabezado negro)
   ------------------------------ */
.ap-form-hero{
  background:#181818; color:#fff;
  border-radius:16px; padding:20px;
  margin-bottom:22px; box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.ap-form-hero__title{
  font-size:24px; font-weight:800;
  margin:0 0 6px; color:#fff;
}
.ap-form-hero__subtitle{
  font-size:15px; margin:0 0 10px; color:#e0e0e0;
}
.ap-form-hero__bullets{
  list-style:none; padding:0; margin:0;
  display:flex; gap:16px; flex-wrap:wrap;
  font-size:14px; color:#d0d0d0;
}
@media(max-width:720px){
  .ap-form-hero__bullets{ display:grid; grid-template-columns:1fr; gap:8px; }
}

/* ------------------------------
   Fix espacio superior (TT4)
   ------------------------------ */
.page .wp-site-blocks{ padding-top:0 !important; }
.page .wp-block-post-content > :first-child{ margin-top:0 !important; }
.ap-wrap:first-of-type{ margin-top:0 !important; }

/* =======================================================
   CUADROS — Selector de Colores (2 columnas como Lámparas)
   ======================================================= */

/* Contenedor (recuadro con grilla) */
.ap-wrap #ap-colores-box{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;  /* 2 columnas */
  gap:10px 24px !important;
  align-items:start !important;
  margin-top:8px !important;

  /* limpiar restos anteriores */
  max-height:none !important;
  overflow:visible !important;

  border:1px solid #ccc; border-radius:10px; padding:12px;
  background:#fff;
}

/* Ítem (checkbox + texto) */
.ap-wrap #ap-colores-box .ap-color-item{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  line-height:1.25 !important;
  color:#111 !important;
  white-space:normal !important;    /* permite salto y evita línea eterna */
  margin:0 !important;
}

/* Checkbox */
.ap-wrap #ap-colores-box .ap-color-item input[type="checkbox"]{
  width:16px !important; height:16px !important; margin:0 !important;
  accent-color:#111 !important;
}

/* Ayuda/notas debajo del recuadro */
.ap-colores-help{ margin-top:12px; color:#444; font-size:14px; }
.ap-colores-help .ap-inline{ display:inline-flex; align-items:center; gap:8px; }
.ap-notes{ color:#444; font-size:14px; margin:10px 0 0; padding-left:18px; }

/* Responsivo */
@media(max-width:720px){
  .ap-wrap #ap-colores-box{ grid-template-columns:1fr 1fr !important; gap:10px 16px !important; }
}
@media(max-width:460px){
  .ap-wrap #ap-colores-box{ grid-template-columns:1fr !important; }
}

/* =======================================================
   LÁMPARAS — Selector de Colores (consistente)
   ======================================================= */

/* Por si hiciera falta unificar con el mismo look */
#ap2-colores-box{
  display:grid; grid-template-columns:1fr 1fr;
  gap:10px 24px; align-items:start; margin-top:8px;
}
#ap2-colores-box label{ display:flex; align-items:center; gap:8px; line-height:1.25; }
#ap2-colores-box input[type="checkbox"]{ width:16px; height:16px; margin:0; accent-color:#111; }

/* =======================================================
   VASOS — Formulario (1 fila por producto)
   ======================================================= */

.apv-list{ display:flex; flex-direction:column; gap:16px; }

.apv-row{
  display:flex; justify-content:space-between; align-items:center;
  border:1px solid var(--ap-border); background:#fff;
  border-radius:14px; padding:16px; gap:18px;
  box-shadow: var(--ap-shadow);
}

.apv-row--sel{ border-color:#111; outline:3px solid rgba(17,17,17,.12); }

.apv-left{ flex:1 1 auto; min-width:0; }
.apv-right{ flex:0 0 auto; }

.apv-pick-line{
  display:flex; align-items:center; gap:8px;
  font-weight:700; font-size:15px;
}
.apv-pick-line input[type="radio"]{ width:18px; height:18px; accent-color:#111; }

.apv-price{ margin:6px 0; font-size:15px; font-weight:700; color:#111; }
.apv-desc{ font-size:13px; color:#1a73e8; text-decoration:none; }
.apv-desc:hover{ text-decoration:underline; }

.apv-thumb-link{ display:block; border-radius:10px; overflow:hidden; }
.apv-thumb{ display:block; width:180px; height:auto; border-radius:12px; object-fit:cover; background:#f6f7f8; }
.apv-thumb img{ width:100%; height:auto; object-fit:cover; display:block; }

@media(max-width:680px){
  .apv-row{ flex-direction:column; align-items:flex-start; }
  .apv-thumb{ width:100%; }
}

/* =======================================================
   VASOS — Catálogo (grilla simple)
   ======================================================= */

.apv-catalogo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px; margin:8px 0 22px;
}
.apv-cat-card{
  border:1px solid var(--ap-border);
  background:#fff; border-radius:var(--ap-radius);
  box-shadow: var(--ap-shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  overflow:hidden;
}
.apv-cat-card:hover{
  box-shadow: var(--ap-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--ap-border-strong);
}
.apv-cat-thumb{ display:block; aspect-ratio:4/3; background:#f6f7f8; }
.apv-cat-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.apv-cat-title{ margin:10px 12px 6px; font-size:16px; line-height:1.3; font-weight:750; }
.apv-cat-title a{ color:#111; text-decoration:none; }
.apv-cat-title a:hover{ text-decoration:underline; }
.apv-cat-price{ margin:0 12px 12px; color:#111; font-weight:700; font-size:14px; }

/* =======================================================
   Accesibilidad (foco)
   ======================================================= */
.apv-row a:focus-visible,
.apv-row input[type="radio"]:focus-visible,
.apv-form-card a:focus-visible,
.apv-form-card input[type="radio"]:focus-visible{
  outline:2px solid var(--ap-accent);
  outline-offset:2px; border-radius:8px;
}
