p{font-size:1.5em;}
#rf-configurator {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  color: #444;
  
  
  border-radius: 8px;
}

.rf-hide {
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  width: 1px;
}

.rf-accordion {
  background: #fff;
  width: 100%;
 
  border-radius: 0px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rf-accordion-item {
  position: relative;
  width: 100%;
  
}

.rf-accordion-item:last-child {
  border-bottom: none;
}

.rf-accordion-label {
  padding: 1rem 0 1rem 2rem;
  width: 100%;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.rf-accordion-label:hover {
  background: #fafafa;
}

.rf-accordion-label:before {
  content: "";
  position: absolute;
  height: 5px;
  width: 5px;
  top: 1.1rem;
  left: 0.75rem;
  border-left: 5px solid #999;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transition: transform 0.3s ease;
}

input[type=checkbox]:checked + .rf-accordion-label:before {
  transform: rotate(90deg);
}

.rf-accordion-child {
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  height: 0;
  transform: scaleY(0);
  transform-origin: top center;
}

input[type=checkbox]:checked ~ .rf-accordion-child {
  
  margin: 0 0 1rem 0;
  background: #fff;
  
  padding: 1rem 1.5rem;
  height: auto;
  opacity: 1;
  transform: scaleY(1);
}


/* slider de ancho */
.rf-slider-wrap {
  width: 100%;
  max-width: 400px;
  margin: 2rem auto;
  
}

.rf-slider-label {
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #111;
}

.rf-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.rf-slider-value {
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.rf-slider-wrapper {
  position: relative;
  flex: 1;
}

/* === Slider base === */
.rf-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
  outline: none;
  position: relative;
  z-index: 2;
}

/* Círculo */
.rf-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.rf-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.rf-slider-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

/* === Puntos (ticks) === */
.rf-slider-ticks {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.rf-slider-ticks span {
  width: 4px;
  height: 4px;
  background: #000;
  border-radius: 50%;
  opacity: 0.5;
  transition: background 0.2s ease;
}

.rf-slider-ticks span.active {
  background: #0073aa;
  opacity: 1;
}

/* ============================================================
   🔠 TIPOGRAFÍA RENDERFRONT — UTILIDADES DE TEXTO
   ============================================================ */

/* Tamaños (basados en escalas modernas tipo Tailwind/Bootstrap) */
.rf-text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.rf-text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.rf-text-base { font-size: 1rem;      line-height: 1.5rem; }
.rf-text-lg   { font-size: 1.125rem;  line-height: 1.75rem; }
.rf-text-xl   { font-size: 1.25rem;   line-height: 1.75rem; }
.rf-text-2xl  { font-size: 1.5rem;    line-height: 2rem; }
.rf-text-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.rf-text-4xl  { font-size: 2.25rem;   line-height: 2.5rem; }
.rf-text-5xl  { font-size: 3rem;      line-height: 1; }

/* Peso de fuente */
.rf-font-light   { font-weight: 300; }
.rf-font-normal  { font-weight: 400; }
.rf-font-medium  { font-weight: 500; }
.rf-font-semibold{ font-weight: 600; }
.rf-font-bold    { font-weight: 700; }

/* Altura de línea */
.rf-leading-tight   { line-height: 1.1; }
.rf-leading-normal  { line-height: 1.5; }
.rf-leading-relaxed { line-height: 1.75; }

/* Alineación adicional */
.rf-text-justify { text-align: justify; }
/* ============================================================
   📱 AJUSTE DE TIPOGRAFÍAS PARA MÓVIL (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

    .rf-text-xs   { font-size: 0.70rem; }
    .rf-text-sm   { font-size: 0.80rem; }
    .rf-text-base { font-size: 0.90rem; }
    .rf-text-lg   { font-size: 1rem; }

    /* TITULARES */
    .rf-text-xl   { font-size: 1.15rem; }
    .rf-text-2xl  { font-size: 0.8rem;  }
    .rf-text-3xl  { font-size: 1.45rem; }
    .rf-text-4xl  { font-size: 1.7rem;  }
    .rf-text-5xl  { font-size: 2.1rem;  }
}


@media (max-width: 768px) {

    /* BOTÓN FIJO */
    .rf-buy-section {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1rem;
        z-index: 9999;
        box-shadow: 0 -3px 8px rgba(0,0,0,0.15);
    }

    .rf-buy-btn {
        width: 100%;
        padding: 1.1rem;
        font-size: 1.3rem;
        border-radius: 10px;
        font-weight: 700;
    }

    /* ESPACIO PARA QUE EL CONTENIDO SIGA SIENDO VISIBLE */
    #rf-configurator {
        padding-bottom: 140px;
    }
}

  @media (min-width: 768px) {
    .rf-top-menu {
        display: none !important;
    }
}
@media (max-width: 768px) {

    /* BLOQUE COMPLETO FIJO ARRIBA */
    .rf-top-fixed {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 9000;
        padding-bottom: 0.5rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }

    /* Imagen */
    .rf-armario-img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Espaciador para empujar el contenido debajo */
    .rf-top-spacer {
        width: 100%;
        height: 240px;
    }

    /* ---- MENU SUPERIOR (REPARADO) ---- */
    .rf-top-menu {
        display: grid !important;
         grid-template-columns: 1fr 2fr 1fr 1fr;
        width: 100%;
        margin-top: .5rem;
    }
  

    .rf-top-menu > div {
    padding: 5px; /* MÁS ESPACIO */
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
      border-right: 1px solid #ddd;
}


    .rf-top-menu > div:last-child {
        border-right: none;
    }
}



/* FORZAR que el menú esté siempre arriba */
/* FORZAR HEADER SIEMPRE FIJO */
header, .site-header, #header, .elementor-location-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999 !important;
    background: #fff; /* importante para evitar transparencias */
}


.rf-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: .5rem 1rem;
    box-sizing: border-box;
}

.rf-price-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.rf-price-value {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: right;
}
/* ============================================================
   🔵 VISIBILIDAD DE BARRAS SUPERIOR / INFERIOR
   ============================================================ */

/* ----- DESKTOP (≥ 768px) ----- */
@media (min-width: 768px) {

    /* SUPERIOR visible en desktop */
    .rf-price-bar--top {
        display: flex;
    }

    /* INFERIOR OCULTA en desktop */
    .rf-buy-section {
        display: none;
    }
}

/* ----- MÓVIL (< 768px) ----- */
@media (max-width: 767px) {

    /* SUPERIOR oculta en móvil */
    .rf-price-bar--top {
        display: none !important;
    }

    /* INFERIOR visible en móvil */
    .rf-buy-section {
        display: block;
    }
}

/* ============================================================
   📌 RENDERFRONT — ESTILO DEL LINK ACTIVO
   ============================================================ */

.rf-top-link {
    cursor: pointer;
    padding: .75rem .25rem;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
}

/* Cuando está clicado o activo por scroll */
.rf-top-link.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
    font-weight: 700;
}

.armario-render{width:100%;}

/* Caja general */
.rf-composition-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 8px;
}

/* Título general */
.rf-composition-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Fila de elemento */
.rf-comp-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.rf-comp-row:last-child {
  border-bottom: none;
}

/* Cantidad */
.rf-comp-qty {
  width: 40px;
  font-weight: 600;
  font-size: 18px;
}

/* Info */
.rf-comp-info {
  flex: 1;
}

.rf-comp-name {
  font-size: 16px;
  font-weight: 500;
}

.rf-comp-code {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

/* Precio */
.rf-comp-price {
  font-weight: 600;
  font-size: 16px;
}

/* Precio en título */
.rf-price-right {
  float: right;
  font-weight: 600;
}


#rf-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999999999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rf-toast {
    min-width: 260px;
    padding: 14px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.35s ease;
}

.rf-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.rf-toast-error {
    background: #e53935;
}
.rf-toast-success {
    background: #43a047;
}


/* ============================================
   🛒 Botón Añadir al carrito — estilo RenderFront
   Igual que .rf-option label
   ============================================ */

.rf-add-to-cart {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    background: #e8e8e8;
    text-align: center;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    border-radius: 0rem;
    border: 1px solid #ccc;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    color: #111;
    width: 100%;
    max-width: 250px;
    margin: 1.5rem auto;
}

/* Hover igual que los selectores */
.rf-add-to-cart:hover {
    background: #000;
}

/* Estado activo (click) — opcional */
.rf-add-to-cart:active {
    background: #000;
    color: #fff;
    border: 1px solid #3e9143;
    transform: scale(1.05);
}


/* Solo en desktop */
@media (min-width: 1024px) {
    .rf-top-fixed {
        position: sticky;
        top: 100px;     /* separación desde arriba */
        z-index: 50;
    }
}


.rf-modulos-container {
    padding: 10px 0;
}

.rf-modulo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.rf-mod-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 0px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
    color:#111
}

.rf-mod-btn:hover {
    background: #e4e4e4;
}

.rf-mod-btn:focus,
.rf-mod-btn:active {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}

.rf-mod-display {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-weight: 600;
}

.rf-mod-count {
    width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
}

.rf-modulos-resumen {
    margin-top: 20px;
    font-weight: 600;
    font-size: 18px;
}


.rf-aperturas-50 {
    background:#f9f9f9;
    padding:20px;
    border-radius:0px;
    margin-top:20px;
    border:1px solid #e1e1e1;
}

.rf-aperturas-title {
    margin:0 0 8px;
    font-size:18px;
    font-weight:600;
}

.rf-aperturas-desc {
    margin:0 0 15px;
    color:#666;
    font-size:14px;
}

.rf-apertura-item {
    background:#fff;
    border:1px solid #ddd;
    padding:12px 15px;
    border-radius:0px;
    margin-bottom:12px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.rf-apertura-label {
    font-weight:600;
}

.rf-apertura-options {
    display:flex;
    gap:18px;
}

.rf-radio {
    display:flex;
    align-items:center;
    gap:4px;
    cursor:pointer;
}

.rf-radio input {
    margin:0;
}


.rf-sidebar-altura {

    width: 500px;
    position: fixed;
    right: -500px;
    top: 0;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ddd;
    padding: 20px;
    box-shadow: -4px 0 10px rgba(0,0,0,0.15);
    transition: right .3s ease;
    z-index: 999999999;
}

.rf-sidebar-altura.open {
    right: 0;
}

.rf-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.rf-altura-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0 20px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.rf-guardar-btn {
    width: 100%;
    padding: 12px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}


#rf-preview-3d {
    width: 100%;
    max-width: 760px;
    aspect-ratio: 1 / 1;
    height: auto;
    position: relative;
}




@media (max-width: 768px) {
    #rf-preview-3d {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1; /* mantiene forma cuadrada sin forzar altura fija */
    }
}


#rf-preview-canvas {
    background: transparent !important;
}
 
/* Overlay */
.rf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;

    /* Esto hace que SIEMPRE reciba los clics */
    pointer-events: auto !important;
}

/* Caja interior */
.rf-lightbox-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;

    /* Importante: el contenido NO absorbe clics del overlay */
    pointer-events: auto !important;
}

/* El canvas NUNCA debe capturar clics */
#rf-lightbox-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    pointer-events: none !important;
}

.rf-close {
    position: absolute;
    top: -30px;
    right: -10px;
    color: white;
    font-size: 38px;
    cursor: pointer;
    z-index: 9999999;
}


/* Caja principal del formulario */
#mensaje_personalizacion {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffca2c;
    border-radius: 4px;
}

/* Texto introductorio */
#mensaje_personalizacion .rf-pers-info {
    margin-bottom: 15px;
}

/* Inputs y textarea */
#mensaje_personalizacion input[type="text"],
#mensaje_personalizacion input[type="email"],
#mensaje_personalizacion input[type="file"],
#mensaje_personalizacion textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* --- CHECKBOX (reparado) --- */
.rf-pers-rgpd-wrap {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Forzar que el checkbox se vea siempre */
#rf-pers-rgpd {
    width: 18px !important;
    height: 18px !important;
    appearance: auto !important;
    opacity: 1 !important;
    display: inline-block !important;
    cursor: pointer;
}

/* Etiqueta RGPD */
.rf-pers-rgpd-label {
    font-size: 14px;
    line-height: 1.4;
}

.rf-pers-rgpd-label a {
    color: #000;
    text-decoration: underline;
}

/* Botón */
.rf-pers-btn {
    margin-top: 12px;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0px;
    cursor: pointer;
    font-weight: 600;
    width: auto;
    border: none;
}

/* Estado / Mensajes */
#rf-pers-estado {
    margin-top: 10px;
    display: none;
}


.rf-handles-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.rf-handle-tabs .rf-handle-tab , .handle-selector, .handle-sidebar-close, .rf-sidebar-close {
  background: #e8e8e8 !important;
  color: #000 !important;
  border: 1px solid #ccc;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0px;
}

.rf-handle-tabs .rf-handle-tab.active, .handle-selector:hover, .handle-sidebar-close:hover, .rf-sidebar-close:hover {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}




.rf-handles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.rf-handle-card {
  border: 1px solid #ddd;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: box-shadow .2s;
}

.rf-handle-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.rf-handle-card.active {
  border: 2px solid #8f7961;
  box-shadow: 0 6px 18px rgba(143, 121, 97, 0.35);
  transform: translateY(-2px);
}
.rf-handle-card.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: #8f7961;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}



.rf-handle-img {
  height: 70px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 8px;
}

.rf-handle-name {
  font-size: 14px;
  font-weight: 600;
}

.rf-sidebar-handle {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: #fff;
  z-index: 99999;
  box-shadow: -4px 0 20px rgba(0,0,0,.25);
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
}

.rf-sidebar-handle.open {
  right: 0;
}

.rf-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rf-sidebar-body {
  padding: 16px;
  overflow-y: auto;
}

.rf-handle-image {
  width: 100%;
  margin-top:-20px; 
  background: #f5f5f5;
}


.rf-handle-finishes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rf-handle-finishes button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
}

.rf-handle-finishes button.active {
  background: #111;
  color: #fff;
}

.rf-handle-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rf-handle-price {
  font-size: 18px;
  font-weight: 700;
}


.rf-handle-tab.active {
  background: #111;
  color: #fff;
}
.rf-handle-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.rf-handle-finish {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}

.rf-handle-finish.active {
  border-color: #000;
}

.rf-handle-finish::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color2);
}

.rf-real-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* ajustable según tus renders */
}

.rf-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.rf-real-preview {
    position: relative;
    width: 100%;
    display: block;
}

.rf-real-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.rf-real-loading.active {
    opacity: 1;
    pointer-events: all;
}

.rf-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #ddd;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}