/* ══════════════════════════════════════
   518-base.css — estructura general
   ══════════════════════════════════════ */

/* ── FAB flotante ── */
.pw-fab {
  position: fixed;
  bottom: 134px;
  right: 24px;
  z-index: 1045;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #314054;
  background: #16202d;
  color: #7fbe92;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.pw-fab:hover,
.pw-fab:focus {
  background: #7fbe92;
  color: #ffffff;
  border-color: #7fbe92;
  transform: translateY(-1px);
}

/* ── Offcanvas override ── */
.pw-offcanvas {
  width: 430px !important;
  background: #0f1722;
  border-left: 1px solid #2d3a4c;
  color: #d7dfeb;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
}

/* ── Header ── */
.pw-header {
  background: #16202d;
  border-bottom: 1px solid #2d3a4c;
  padding: 16px;
}

.pw-title {
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.pw-subtitle {
  color: #93a1b5;
  font-size: 11px;
  font-family: monospace;
}

/* ── Body ── */
.pw-body {
  padding: 16px;
  background: #0f1722;
}
/* Compactar grupo Imágenes: 2 por línea */
#pwImagenes .pw-table,
#pwImagenes .pw-table tbody {
    display: block;
    width: 100%;
}

#pwImagenes .pw-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#pwImagenes .pw-extra-row {
    display: block;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
}

#pwImagenes .pw-extra-row td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
}

#pwImagenes .pw-td-label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}

#pwImagenes .pw-extra-image-preview {
    min-height: 70px;
    margin-bottom: 6px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

#pwImagenes .pw-extra-image-preview img {
    max-width: 100%;
    max-height: 90px;
    border-radius: 6px;
    object-fit: cover;
}

#pwImagenes .pw-extra-input {
    font-size: 12px;
    padding: 4px 6px;
    margin-bottom: 6px !important;
}

#pwImagenes .pw-extra-image-file {
    font-size: 12px;
    padding: 4px 6px;
}

#pwImagenes .pw-extra-image-clear {
    font-size: 12px;
    padding: 4px 8px;
    line-height: 1.2;
}

#pwImagenes .pw-td-value > .d-flex {
    gap: 6px !important;
}

#pwImagenes .pw-td-value small.text-muted {
    font-size: 11px;
    line-height: 1.25;
}

/* En móvil vuelve a 1 por línea */
@media (max-width: 768px) {
    #pwImagenes .pw-table tbody {
        grid-template-columns: 1fr;
    }
}
/* ══════════════════════════════════════
   518-extras-render.php
   Minimalista
   ══════════════════════════════════════ */

.pw-accordion-btn {
    font-size: 13px;
    font-weight: 500;
}

.pw-accordion-icon {
    width: 18px;
    margin-right: 8px;
    text-align: center;
    opacity: .75;
    font-size: 13px;
}

.pw-accordion-label {
    display: inline-flex;
    align-items: center;
}

.pw-accordion-count {
    margin-left: auto;
    font-size: 11px;
    opacity: .55;
    font-weight: 400;
}

/* Estado abierto */

.pw-accordion-btn:not(.collapsed) .pw-accordion-icon {
    opacity: 1;
}

/* Imagen principal */

.pw-k2-main-image-preview {
    padding: 10px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 6px;
    margin-bottom: 10px;
    text-align: center;
}

.pw-k2-main-image-preview img {
    max-width: 100%;
    max-height: 180px;
    border-radius: 6px;
}

/* Inputs */

.pw-k2-main-image-value {
    font-size: 11px;
}

/* Botones inferiores */

#pwGuardarExtras,
.pw-k2-main-image-clear {
    font-size: 12px;
}

/* Ajuste visual Bootstrap */

.pw-accordion-item {
    border: 0;
}

.pw-accordion-body {
    padding-top: 12px;
}