/* =====================================================
   BASE
===================================================== */

.rf-components {
  
  margin: 0 auto;
  padding: 32px 20px 80px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rf-components h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.rf-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

/* =====================================================
   STEPS
===================================================== */

.rf-step {
  margin-bottom: 48px;
}

.rf-step h2 {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 0px solid #eee;
}

/* =====================================================
   PASO 1 · SISTEMA
===================================================== */

.rf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.rf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 5px;
  border-radius: 0px;
  background: #fff;
  border: 2px solid #ddd;
  cursor: pointer;
  text-align: left;
  transition: all .25s ease;
  text-align:center;
  padding-bottom:10px;
}

.rf-card strong {
  font-size: 18px;
  font-weight: 600;
}

.rf-card span {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.rf-card:hover {
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.rf-card.active {
  border-color: #8f7961;
  
  background: #f5f5f5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.rf-card.active::after {
  content: "✓";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #8f7961;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   PASO 2 · MATERIALES
===================================================== */

.rf-material-block {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.rf-material-section {
  margin-bottom: 20px;
}

.rf-material-section h3 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #444;
}

#rf-category-tabs,
#rf-subcategory-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#rf-category-tabs button {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 15px;
  cursor: pointer;
  color: #444;
}

#rf-category-tabs button.active {
  border-bottom: 3px solid #000;
  font-weight: 600;
}

#rf-subcategory-tabs button {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

#rf-subcategory-tabs button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* =====================================================
   COLORES / TEXTURAS
===================================================== */

#rf-color-zone {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 12px;
  max-width: 420px;
}

.rf-color-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform .2s ease, border-color .2s ease;
}

.rf-color-dot:hover {
  transform: scale(1.08);
}

.rf-color-dot.active {
  border-color: #000;
}

/* =====================================================
   PASO 3 · COMPONENTES Y MEDIDAS
===================================================== */

#rf-door-dimensions {
  background: #fafafa;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #eee;
  margin-bottom: 16px;
}

.rf-dimensions-row.inline {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.rf-dimension-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rf-dimension-inline span {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.rf-dimension-inline input,
.rf-dimension-inline select {
  padding: 6px 8px;
  min-width: 80px;
}

.rf-unit {
  font-size: 12px;
  color: #777;
}

/* =====================================================
   PRECIO EN VIVO
===================================================== */

.rf-live-price {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
}

.rf-live-price.ok {
  color: #2c3e50;
}

.rf-live-price.error {
  color: #c0392b;
}

/* =====================================================
   BOTONES
===================================================== */

.rf-primary {
  height: 44px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity .2s ease;
}

.rf-primary:hover {
  opacity: .85;
}

#rf-add-to-cart {
  height: 52px;
  width: 100%;
  font-size: 18px;
  border-radius: 10px;
}

/* =====================================================
   RESUMEN
===================================================== */

#rf-items {
  display: grid;
  gap: 12px;
}

.rf-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.rf-item strong {
  font-weight: 600;
}

.rf-item button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #999;
}

.rf-item button:hover {
  color: #000;
}

/* =====================================================
   ESTADOS UX
===================================================== */

.rf-disabled {
  opacity: .4;
  pointer-events: none;
}



#rf-add-door:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#rf-ral {
  display: none;
}


.rf-component-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.rf-component-card {
  border: 2px solid #ddd;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: all .2s ease;
}

.rf-component-card:hover {
  border-color: #000;
  transform: translateY(-2px);
}

.rf-component-card.active {
  border-color: #000;
  background: #f5f5f5;
}

.rf-component-card strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.rf-component-card span {
  font-size: 14px;
  color: #666;
}

.rf-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius:0px;
  margin-bottom: 12px;
}



.rf-type-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  cursor: pointer;
  transition: all .25s ease;
}

.rf-type-card input {
  display: none;
}

/* Imagen izquierda */
.rf-type-thumb {
  flex: 0 0 70px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.rf-type-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto derecha */
.rf-type-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.rf-type-content span {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

/* Hover */
.rf-type-card:hover {
  border-color: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* Activo */
.rf-type-card:has(input:checked) {
  border-color: #000;
  background: #f9f9f9;
}

/* Check sutil (opcional pero recomendado) */
.rf-type-card:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* ===============================
   STEP CONTAINER
=============================== */

.rf-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0px;
  padding: 50px;
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.rf-step h2 {
  position: relative;
  padding-left: 48px; /* espacio para el círculo */
  font-size: 20px;
}

/* círculo del número */
.rf-step h2::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* paso completado */
.rf-step.rf-completed h2::before {
  background: #8f7961;
  color: #fff;
}


/* =====================================================
   PASO 2 · MÁS AIRE Y RITMO VISUAL
===================================================== */

.rf-step-material .rf-material-block {
  padding: 28px 32px;
}

/* Separación clara entre secciones internas */
.rf-material-section {
  margin-bottom: 32px;
}

/* Títulos de sección más respirados */
.rf-material-section h3 {
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
}

/* Tabs principales (Maderas / Lacas / etc.) */
#rf-category-tabs {
  margin-top: 8px;
  margin-bottom: 20px;
  gap: 20px;
}

/* Subcategorías (Naturales / Laminados) */
#rf-subcategory-tabs {
  margin-top: 6px;
  margin-bottom: 22px;
  gap: 14px;
}

/* Chips de subcategoría un poco más grandes */
#rf-subcategory-tabs button {
  padding: 8px 18px;
  font-size: 14px;
}

/* Zona de colores con más aire */
#rf-color-zone {
  margin-top: 16px;
  gap: 16px;
}

/* Círculos de color ligeramente más grandes */
.rf-color-dot {
  width: 48px;
  height: 48px;
}

/* Caja general del paso (más “card”) */
.rf-step-material.rf-box {
  padding-top: 36px;
  padding-bottom: 36px;
}

.rf-step-material .rf-tabs {
  border-bottom: none;
}
/* H2 ocupa todo el ancho */
.rf-step h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Texto estado (derecha) */
.rf-step-status {
  font-size: 18px;
  font-weight: 500;
  color: #777;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Estado activo */
.rf-step-status.is-active {
  color: #000;
}

/* ✔ ÚNICA, SOLO UNA */
.rf-step-status.is-active::before {
  content: "✔";
  font-weight: 700;
}

/* ✔ delante del nombre del sistema cuando está activo */
.rf-card.active strong::before {
  content: "✔ ";
  color: #000; 
  font-weight: 700;
}



.rf-sistemid-title {
  font-size:30px !important;
  text-transform: uppercase;

}


.rf-material-block {
  position: relative;
}

/* Overlay central */
.rf-board-preview {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rf-board-preview.is-visible {
  display: flex;
}

/* Card */
.rf-board-card {
  pointer-events: all;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 260px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Imagen tablero */
.rf-board-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

/* Texto */
.rf-board-info strong {
  font-size: 14px;
  font-weight: 600;
}

.rf-board-info span {
  font-size: 12px;
  color: #777;
}

/* Botón */
.rf-board-btn {
  margin-top: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}


.rf-board-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.rf-board-btn.secondary {
  background: #f3f3f3;
  color: #333;
  border: 1px solid #ddd;
}

.rf-board-btn.secondary:hover {
  background: #e6e6e6;
}


.rf-board-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 99999999;
}

.rf-board-sidebar.is-open {
  transform: translateX(0);
}

.rf-board-sidebar-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rf-board-sidebar-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.rf-board-sidebar-image {
  flex: 1;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rf-board-sidebar-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rf-board-sidebar-info strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.rf-board-sidebar-info span {
  color: #666;
  font-size: 14px;
}


.rf-board-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.rf-board-switch-btn {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f6f6f6;
  cursor: pointer;
}

.rf-board-switch-btn.active {
  background: #000;
  color: #fff;
}

.rf-board-zoom {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: zoom-in;
}

.rf-board-zoom img {
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
  transform-origin: 50% 50%;
  will-change: transform;
}

.rf-board-zoom.is-zoomed {
  cursor: zoom-out;
}

.rf-board-zoom.is-zoomed img {
  transform: scale(3.5); /* ajusta si quieres más o menos */
}


/* ================================
   PASO 3 · COMPONENTES EN LÍNEA
================================ */

.rf-component-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}


/* Ajuste responsive */
@media (max-width: 768px) {
  .rf-component-types {
    grid-template-columns: 1fr;
  }
}


.rf-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.rf-step-left,
.rf-step-right {
  min-width: 0;
}

.rf-step-action {
  position: relative;
}


.rf-help-highlight {
  margin-top: 16px;
  padding: 14px 16px;

  background: rgba(0, 0, 0, 0.035);
  border-left: 3px solid var(--rf-accent, #111);

  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.rf-help-highlight b {
  font-weight: 600;
  color: #000;
}

.rf-help-system.hidden {
  display: none;
}

.rf-help {
  background: #F7F7F5;
  border-left: 4px solid #e3e6ea;
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 14px;
}

.rf-help strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.rf-help-highlight {
  margin-top: 12px;
  padding: 10px 12px;
  background: #E5DED4;
  color:#000;
  border-left: 4px solid #8F7961;
  border-radius: 4px;
  font-weight: 500;
}


/* ===============================
   APERTURA · SELECTOR VISUAL
=============================== */

.rf-apertura-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 6px;
}

/* Tarjeta */
.rf-apertura-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .15s ease;
}

/* Hover */
.rf-apertura-option:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* Ocultar radio */
.rf-apertura-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Seleccionado */
.rf-apertura-option:has(input:checked) {
  border-color: #111;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.14),
    0 0 0 1px rgba(0,0,0,0.04) inset;
}

/* Imagen */
.rf-apertura-visual {
  width: 110px;
  height: 180px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-bottom: 10px;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}

/* Imagen activa */
.rf-apertura-option:has(input:checked) .rf-apertura-visual {
  opacity: 1;
  transform: scale(1.04);
}

/* Texto */
.rf-apertura-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #111;
}

/* Imágenes */
.rf-apertura-visual.izquierda {
  background-image: url("/wp-content/plugins/renderfront-connector/assets/img/componentes/apertura_izquierda.webp");
}

.rf-apertura-visual.derecha {
  background-image: url("/wp-content/plugins/renderfront-connector/assets/img/componentes/apertura_derecha.webp");
}

.rf-apertura-visual.superior {
  background-image: url("/wp-content/plugins/renderfront-connector/assets/img/componentes/apertura_superior.webp");
}

.rf-apertura-visual.frontal {
  background-image: url("/wp-content/plugins/renderfront-connector/assets/img/componentes/apertura_frontal.webp");
}

/* Responsive */
@media (max-width: 640px) {
  .rf-apertura-selector {
    grid-template-columns: 1fr;
  }

  .rf-apertura-visual {
    height: 200px;
  }
}


.rf-apertura-field {
  display: none;
}


/* ===============================
   RESUMEN · GRID 2 COLUMNAS
=============================== */

.rf-summary-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* Izquierda */
.rf-summary-left {
  min-width: 0;
}

/* Derecha */
.rf-summary-right {
  position: sticky;
  top: 100px;
}

/* Caja resumen */
.rf-summary-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Líneas resumen */
.rf-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

.rf-summary-line strong {
  
  font-weight: 600;
}

/* Botón final */
.rf-summary-box .rf-primary {
  margin-top: 12px;
  height: 52px;
  
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .rf-summary-grid {
    grid-template-columns: 1fr;
  }

  .rf-summary-right {
    position: static;
  }

  .rf-step-grid {
    grid-template-columns: 1fr;
  }
}


.rf-method-types-block {
  display: none;
}

