/* ════════════════════════════════════════════════════
   BASE
════════════════════════════════════════════════════ */
.pe-trigger-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border: 0; border-radius: 999px;
    background: #0d6efd; color: #fff; font-size: 16px; font-weight: 700;
    cursor: pointer; box-shadow: 0 10px 25px rgba(13,110,253,.28);
    transition: all .2s ease;
}
.pe-trigger-button:hover { background: #0b5ed7; transform: translateY(-2px); }

.pe-modal[hidden] { display: none !important; }
.pe-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; font-family: inherit;
}
.pe-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.pe-modal__dialog {
    position: relative; width: 100%; max-width: 1180px;
    max-height: 90vh; overflow: auto; z-index: 1;
}
@media (min-width:1400px){ .pe-modal__dialog { max-width: 1300px; } }

.pe-modal__content {
    background: #fff; border-radius: 22px; overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.25);
}
.pe-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 20px 26px; border-bottom: 1px solid #e9ecef;
}
.pe-modal__header h2 { margin: 0; color: #212529; font-size: 20px; font-weight: 800; }
.pe-modal__close {
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #f1f3f5; color: #212529; font-size: 26px; line-height: 1;
    cursor: pointer; transition: background .15s;
}
.pe-modal__close:hover { background: #dee2e6; }
.pe-modal__body { padding: 24px; }

/* ════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════ */
.pe-estola-layout {
    display: grid;
    grid-template-columns: minmax(0,7fr) minmax(320px,5fr);
    gap: 28px;
    align-items: start;
    max-height: calc(90vh - 140px); /* descuenta header + footer + pasos */
}

.pe-estola-preview {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #edf0f2;
    position: sticky;
    top: 0;
    align-self: start;
}
/* AGREGA esta regla nueva */
.pe-estola-selector {
    width: 100%;
    max-height: calc(95vh - 140px);
    overflow-y: auto;
    padding-right: 6px; /* evita que el scrollbar tape contenido */
    scrollbar-width: thin; /* Firefox */
}

/* Scrollbar visual para Chrome/Safari (opcional pero elegante) */
.pe-estola-selector::-webkit-scrollbar {
    width: 5px;
}
.pe-estola-selector::-webkit-scrollbar-track {
    background: transparent;
}
.pe-estola-selector::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 99px;
}
.pe-estola-selector::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}
.pe-estola-map {
    position: relative;
    width: min(100%, 400px);
    margin: 0 auto;
}
.pe-estola-map__img {
    width: 100%; height: auto; display: block;
    object-fit: contain; transition: opacity .18s ease;
    pointer-events: none; user-select: none;
}
.pe-estola-map__img.is-changing { opacity: .35; }

/* ════════════════════════════════════════════════════
   PANEL DERECHO
════════════════════════════════════════════════════ */
.pe-estola-selector { width: 100%; }
.pe-estola-selector__title { margin: 0 0 6px; color: #212529; font-size: 20px; font-weight: 800; }
.pe-estola-selector__text  { margin: 0 0 18px; color: #6c757d; font-size: 14px; line-height: 1.5; }

.pe-config-section {
    padding: 14px; border: 1px solid #e9ecef; border-radius: 14px;
    background: #fff; margin-bottom: 12px;
}
.pe-config-section__title { margin: 0 0 10px; color: #212529; font-size: 14px; font-weight: 800; }

/* dropdown color */
.pe-color-dropdown { position: relative; width: 100%; }
.pe-color-dropdown__button {
    width: 100%; min-height: 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 9px 13px; border: 1px solid #ced4da; border-radius: 11px;
    background: #fff; color: #212529; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all .2s;
}
.pe-color-dropdown__button:hover,
.pe-color-dropdown__button.is-open {
    border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}
.pe-color-dropdown__arrow {
    width: 8px; height: 8px;
    border-right: 2px solid #212529; border-bottom: 2px solid #212529;
    transform: rotate(45deg); transition: transform .2s; flex-shrink: 0;
}

.pe-color-dropdown__button.is-open .pe-color-dropdown__arrow { transform: rotate(225deg); }
.pe-color-dropdown__menu {
    position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 30;
    background: #fff; border: 1px solid #dee2e6; border-radius: 13px;
    box-shadow: 0 16px 40px rgba(0,0,0,.13); padding: 5px; max-height: 280px; overflow-y: auto;
}
.pe-color-dropdown__menu[hidden] { display: none !important; }
.pe-color-dropdown__item {
    width: 100%; display: flex; align-items: center; gap: 11px;
    padding: 8px 10px; border: 0; border-radius: 9px;
    background: transparent; color: #212529; font-size: 13px; font-weight: 700;
    text-align: left; cursor: pointer; transition: background .15s;
}
.pe-color-dropdown__item:hover { background: #f8f9fa; }
.pe-color-dropdown__item.is-selected { background: rgba(13,110,253,.1); color: #0d6efd; }
.pe-color-dropdown__item img {
    width: 28px; height: 44px; object-fit: contain; border-radius: 7px;
    border: 1px solid #e9ecef; background: #f8f9fa; flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   ZONAS FIJAS DE ESTAMPADO
   ─ overflow:hidden = máscara de recorte garantizada
   ─ El contenido interno (.pe-inner) se transforma
     con translate+scale, nunca sale del bbox
════════════════════════════════════════════════════ */
.pe-zonas-wrapper { position: absolute; inset: 0; z-index: 4; pointer-events: none; }

.pe-zona {
    position: absolute;
    overflow: hidden;              /* ← REGLA DE ORO: nada sale */
    box-sizing: border-box;
    border-radius: 3px;
    pointer-events: auto;          /* la zona recibe gestos */
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.pe-zona:active { cursor: grabbing; }

/* Bordes de zona */
.pe-zona--texto,
.pe-zona--imagen,
.pe-zona--mix { border: 1.5px dashed rgba(255,255,255,.85); background: transparent; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

/* Etiqueta flotante */
.pe-zona__label {
    position: absolute; bottom: 2px; right: 4px;
    font-size: 6px; font-weight: 800; letter-spacing: .05em;
    color: rgba(255,255,255,.9); white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    pointer-events: none; user-select: none; z-index: 2;
}

/* Hint de arrastre (se oculta al mover) */
.pe-zona__hint {
    position: absolute; inset: 0; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: rgba(255,255,255,.9);
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    pointer-events: none; transition: opacity .2s;
}
.pe-zona.has-content .pe-zona__hint { display: none; }

/*
  .pe-inner: elemento hijo directo que se transforma.
  transform-origin: center center siempre.
  overflow:hidden en .pe-zona actúa como clip.
*/
.pe-inner {
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    transform-origin: center center;
    will-change: transform;
    pointer-events: none;   /* el drag lo gestiona la zona padre */
}

/* Texto dentro del inner */
.pe-inner__texto {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    text-align: center; line-height: 1.25;
    overflow: visible;           /* el clip lo hace el padre */
    white-space: pre-wrap; word-break: break-word;
    padding: 2px;
    box-sizing: border-box;
    pointer-events: none;
}
.pe-inner__texto.is-horizontal         { writing-mode: horizontal-tb; }
.pe-inner__texto.is-vertical           { writing-mode: vertical-rl; transform: rotate(180deg); }
.pe-inner__texto.is-diagonal-derecha   { writing-mode: horizontal-tb; transform: rotate(20deg);  }
.pe-inner__texto.is-diagonal-izquierda { writing-mode: horizontal-tb; transform: rotate(-20deg); }

/* Imagen dentro del inner */
.pe-inner__img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none; user-select: none; draggable: false;
}

/* ─── POSICIONES ABSOLUTAS DE LAS 5 ZONAS ─── */
.pe-zona--iz-txt1  { top: 20%; left: 22.5%; width: 16.5%; height: 16%; }
.pe-zona--iz-txt2  { top: 53%; left: 22.5%; width: 16.5%; height: 28%; }
.pe-zona--iz-img   { top: 35%; left: 22.5%; width: 16.5%; height: 18%; }
.pe-zona--der-txt3 { top: 20%; left: 63%; width: 16.5%; height: 30%; }
.pe-zona--der-txt3 .pe-inner { z-index: 10; }
.pe-zona--der-img  { top: 50%; left: 63%; width: 16.5%; height: 31%; }

/* ─── Medidas ─── */
.pe-medidas { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.pe-mdd-w { position: absolute; top: 5%; left: 24%; width: 15%; }
.pe-mdd-w__linea { width:100%; height:1px; background:rgba(25,25,25,.4); position:relative; }
.pe-mdd-w__linea::before,.pe-mdd-w__linea::after {
    content:''; position:absolute; top:-4px; width:1px; height:9px; background:rgba(25,25,25,.4);
}
.pe-mdd-w__linea::before{left:0}.pe-mdd-w__linea::after{right:0}
.pe-mdd-w__valor {
    position:absolute; top:4px; left:50%; transform:translateX(-50%);
    font-size:8px; font-weight:800; color:#212529;
    background:rgba(255,255,255,.9); padding:1px 4px; border-radius:99px; white-space:nowrap;
}
.pe-mdd-h { position:absolute; left:7%; top:20%; height:63%; width:1px; background:rgba(25,25,25,.4); }
.pe-mdd-h::before,.pe-mdd-h::after {
    content:''; position:absolute; left:-4px; width:9px; height:1px; background:rgba(25,25,25,.4);
}
.pe-mdd-h::before{top:0}.pe-mdd-h::after{bottom:0}
.pe-mdd-h__valor {
    position:absolute; left:9px; top:40%;
    font-size:8px; font-weight:800; color:#212529;
    background:rgba(255,255,255,.9); padding:4px 2px; border-radius:99px; white-space:nowrap;
    writing-mode:vertical-rl; transform:rotate(180deg);
}

/* Medidas individuales por zona izquierda */
.pe-mdd-zona {
    position: absolute;
    left: 13%;
    width: 1px;
    background: rgba(25,25,25,.4);
}
.pe-mdd-zona::before, .pe-mdd-zona::after {
    content: ''; position: absolute; left: -4px; width: 9px; height: 1px; background: rgba(25,25,25,.4);
}
.pe-mdd-zona::before { top: 0; }
.pe-mdd-zona::after  { bottom: 0; }
.pe-mdd-zona--1 { top: 20%;  height: 16%; }
.pe-mdd-zona--2 { top: 35%;  height: 18%; }
.pe-mdd-zona--3 { top: 53%;  height: 28%; }
/* Zonas derechas — espejo del lado izquierdo */
.pe-mdd-zona--der-1 { top: 20%; height: 30%; left: 88%; }
.pe-mdd-zona--der-2 { top: 50%; height: 31%; left: 88%; }
.pe-mdd-zona__valor {
    position: absolute; left: 9px; top: 50%;
    transform: translateY(-50%) rotate(180deg);
    font-size: 8px; font-weight: 800; color: #212529;
    background: rgba(255,255,255,.9); padding: 4px 2px; border-radius: 99px; white-space: nowrap;
    writing-mode: vertical-rl;
}
/* Valor al lado derecho — el texto sale hacia la derecha */
.pe-mdd-zona__valor--der {
    left: auto; right: 9px;
}

/* ════════════════════════════════════════════════════
   PANEL: ITEMS DE ZONA
════════════════════════════════════════════════════ */
.pe-zonas-lista { display: flex; flex-direction: column; gap: 10px; }

.pe-zona-item {
    padding: 11px 13px; border-radius: 11px;
    border: 1px solid #e9ecef; background: #f8f9fa;
}
.pe-zona-item__header {
    display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.pe-zona-item__dot  { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pe-zona-item__title { font-size: 12px; font-weight: 800; color: #212529; flex: 1; }
.pe-zona-item__badge {
    font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 99px;
}
.pe-zona-item__badge--txt { background: rgba(13,110,253,.12); color: #0d6efd; }
.pe-zona-item__badge--img { background: rgba(25,135,84,.12);  color: #198754; }
.pe-zona-item__badge--mix { background: rgba(102,16,242,.12); color: #6610f2; }

/* Toggle texto / imagen */
.pe-tipo-toggle {
    display: flex; gap: 5px; margin-bottom: 8px;
}
.pe-tipo-btn {
    flex: 1; padding: 5px 8px;
    border: 1px solid #dee2e6; border-radius: 7px;
    background: #f8f9fa; color: #6c757d;
    font-size: 11px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.pe-tipo-btn.is-active  { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.pe-tipo-btn:not(.is-active):hover { background: #e9ecef; color: #212529; }

.pe-zona-controls { display: grid; gap: 7px; }
.pe-zona-controls--texto  { grid-template-columns: 44px 1fr 1fr 1fr; }
.pe-zona-controls--imagen { grid-template-columns: 1fr 1fr; }
.pe-zona-controls--texto .pe-ctrl-full,
.pe-zona-controls--imagen .pe-ctrl-full { grid-column: 1 / -1; }

.pe-ctrl { display: flex; flex-direction: column; gap: 3px; }
.pe-ctrl__label { font-size: 10px; font-weight: 800; color: #495057; }

.pe-ctrl__color {
    width: 48px; height: 48px; padding: 0; border: none;
    border-radius: 8px; cursor: pointer; display: block;
    overflow: hidden; background: transparent;
    align-self: flex-end;
    -webkit-appearance: none; appearance: none;
}
.pe-ctrl__color::-webkit-color-swatch-wrapper { padding: 0; margin: 0; border: none; width: 100%; height: 100%; }
.pe-ctrl__color::-webkit-color-swatch { border: none; border-radius: 8px; width: 100%; height: 100%; }
.pe-ctrl__color::-moz-color-swatch { border: none; border-radius: 8px; width: 100%; height: 100%; }
.pe-ctrl__select {
    width: 100%; min-height: 32px; padding: 5px 7px;
    border: 1px solid #ced4da; border-radius: 7px;
    background: #fff; color: #212529; font-size: 11px; font-weight: 600;
    font-family: inherit; outline: none; cursor: pointer;
}
.pe-ctrl__select:focus { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.12); }

.pe-ctrl__textarea {
    width: 100%; min-height: 48px; padding: 6px 8px;
    border: 1px solid #ced4da; border-radius: 7px;
    background: #fff; color: #212529; font-size: 11px; font-weight: 600;
    font-family: inherit; outline: none; resize: vertical;
}
.pe-ctrl__textarea:focus { border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13,110,253,.12); }

.pe-char-counter {
    display: block; text-align: right;
    font-size: 10px; font-weight: 600; color: #adb5bd;
    margin-top: 2px;
}
.pe-char-counter.is-limit { color: #dc3545; }

.pe-ctrl__file {
    width: 100%; padding: 5px 7px; border: 1px solid #ced4da; border-radius: 7px;
    background: #fff; color: #212529; font-size: 11px; cursor: pointer;
}

/* Slider de escala / posición reset */
.pe-ctrl__range {
    width: 100%; accent-color: #0d6efd; cursor: pointer; height: 4px;
}
.pe-ctrl-reset {
    border: 0; background: transparent; color: #6c757d;
    font-size: 10px; font-weight: 700; cursor: pointer; padding: 0;
    text-decoration: underline; text-underline-offset: 2px;
    align-self: flex-end;
}
.pe-ctrl-reset:hover { color: #0d6efd; }
/* ════════════════════════════════════════════════════
   PASOS DEL MODAL
════════════════════════════════════════════════════ */
.pe-steps-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 22px;
}

.pe-step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #adb5bd;
    font-size: 13px;
    font-weight: 800;
}

.pe-step-indicator__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.pe-step-indicator.is-active {
    color: #0d6efd;
}

.pe-step-indicator.is-active .pe-step-indicator__num {
    background: #0d6efd;
    color: #fff;
}

.pe-step-line {
    width: 48px;
    height: 2px;
    background: #dee2e6;
}

.pe-step[hidden] {
    display: none !important;
}

/* Formulario de datos del cliente */
.pe-client-form {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pe-client-form__intro {
    grid-column: 1 / -1;
    margin-bottom: 6px;
}

.pe-client-form__intro h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #212529;
}

.pe-client-form__intro p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.pe-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pe-field--full {
    grid-column: 1 / -1;
}

.pe-field label {
    font-size: 12px;
    font-weight: 800;
    color: #343a40;
}

.pe-field input,
.pe-field textarea {
    width: 100%;
    border: 2px solid #0d6efd !important;
    border-radius: 10px;
    padding: 14px 16px 14px 20px !important;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    background: #fff;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

.pe-field textarea {
    resize: vertical;
    min-height: 80px;
}

.pe-field input:focus,
.pe-field textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13,110,253,.18), 0 0 0 3px rgba(13,110,253,.15);
}

.pe-field small {
    color: #6c757d;
    font-size: 11px;
}

@media (max-width:767px) {
    .pe-client-form {
        grid-template-columns: 1fr;
    }

    .pe-field--full {
        grid-column: auto;
    }

    .pe-steps-header {
        gap: 8px;
    }

    .pe-step-line {
        width: 26px;
    }
        .pe-estola-layout { 
        grid-template-columns: 1fr;
        max-height: none; /* sin límite en móvil, fluye normal */
    }
    .pe-estola-preview {
        min-height: 300px;
        padding: 16px;
        position: relative; /* cancela el sticky en móvil */
        top: auto;
    }
    .pe-estola-selector {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* ════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════ */
.pe-modal__footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid #e9ecef;
}
.pe-btn {
    border: 0; border-radius: 11px; padding: 10px 16px;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s;
}
.pe-btn-primary   { background: #0d6efd; color: #fff; }
.pe-btn-primary:hover   { background: #0b5ed7; }
.pe-btn-secondary { background: #f1f3f5; color: #212529; }
.pe-btn-secondary:hover { background: #dee2e6; }
body.pe-modal-open { overflow: hidden; }

/* ═════ MENSAJES DE ERROR ═════ */
.pe-field-error {
    display: block; margin-top: 4px;
    font-size: 12px; color: #dc3545; font-weight: 500;
}
.pe-field-error[hidden] { display: none; }

.pe-field-optional {
    font-size: 11px; font-weight: 400; color: #6c757d;
    background: #f1f3f5; border-radius: 4px;
    padding: 1px 6px; margin-left: 4px;
}
.pe-field-hint {
    font-size: 11px; font-weight: 400; color: #6c757d; margin-left: 4px;
}

.pe-form-error {
    display: block; width: 100%; padding: 8px 12px;
    background: #fff5f5; border: 1px solid #f5c2c7;
    border-radius: 6px; font-size: 13px; color: #842029;
}
.pe-form-error[hidden] { display: none; }

/* ═════ RESPONSIVE ═════ */
@media (max-width:767px){
    .pe-estola-layout { grid-template-columns: 1fr; }
    .pe-estola-preview { min-height: 300px; padding: 16px; }
    .pe-estola-map { width: min(100%,280px); }
    .pe-zona-controls--texto { grid-template-columns: 1fr 1fr; }
    .pe-zona-controls--imagen { grid-template-columns: 1fr; }
}
@media (max-width:480px){
    .pe-modal { padding: 8px; }
    .pe-modal__header,.pe-modal__body,.pe-modal__footer { padding-left:14px; padding-right:14px; }
    .pe-modal__footer { flex-direction:column; }
    .pe-btn { width:100%; }
}
.pe-remove-img-btn{
    border:none;
    background:transparent;
    color:#6c757d;
    font-size:.85rem;
    padding:4px 0;
    cursor:pointer;
    transition:.2s ease;
    display:inline-flex;
    align-items:center;
    gap:6px;
}

.pe-remove-img-btn:hover{
    color:#dc3545;
    transform:translateY(-1px);
}

/* ═══════════════════════════════════════════════════
   BOTÓN DISPARADOR — Personaliza tu estola
   · Gradiente cian → esmeralda con pulse de color
   · Shine diagonal al hover
   · Bounce en el wrapper interior
═══════════════════════════════════════════════════ */

.btn-personaliza-label {
    font-style: italic;
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 10px;
    text-align: center;
    font-family: sans-serif;
}

#btnAbrirPersonalizadorEstola {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: #000 !important;
    background-color: #FCF414;
    border: 2px solid #000;
    border-radius: 10px;
    box-shadow: 5px 5px 0px #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

#btnAbrirPersonalizadorEstola:hover {
    background-color: #fff;
    color: #000 !important;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
    text-decoration: none;
}

#btnAbrirPersonalizadorEstola:active {
    background-color: #FCF414;
    box-shadow: none;
    transform: translateY(4px);
}

#btnAbrirPersonalizadorEstola:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

/* ── Wrapper interior ── */
#btnAbrirPersonalizadorEstola .btn-banda-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ── Icono ── */
#btnAbrirPersonalizadorEstola .btn-banda-icon {
    display: inline-flex;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

#btnAbrirPersonalizadorEstola:hover .btn-banda-icon {
    transform: rotate(20deg) scale(1.25);
}

/* ═══════════════════════════════════════════════════
   FAQ ACCORDION – faq-fiubags
═══════════════════════════════════════════════════ */
.faq-fiubags {
    --hf-green: #3a7d78;
    --hf-green-mid: #6eaba5;
    --hf-text: #1a3634;
    --hf-muted: #4e7b78;
    --hf-mint: #e4f2f1;
    --ff-bg: #f6fbfb;
    --ff-white: #fff;
    --ff-rule: rgba(110, 171, 165, 0.20);
    --ff-shadow: 0 4px 24px rgba(61, 125, 120, 0.10);
    clear: both;
    width: 100%;
    background: var(--ff-bg);
    padding: clamp(3rem, 6vw, 5rem) 0;
    font-family: 'Poppins', sans-serif;
    color: var(--hf-text);
}
.faq-fiubags .ff-container { max-width: 920px; margin: 0 auto; padding: 0 15px; }
.faq-fiubags .ff-header { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.faq-fiubags .ff-badge {
    display: inline-block;
    background: var(--hf-mint);
    color: var(--hf-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.faq-fiubags .ff-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--hf-text);
    line-height: 1.2;
    margin: 0 0 12px;
}
.faq-fiubags .ff-desc {
    font-size: 1rem;
    color: var(--hf-muted);
    max-width: 560px;
    line-height: 1.65;
    margin: 0 auto;
}
.faq-fiubags .ff-list { display: flex; flex-direction: column; gap: 0.65rem; }
.faq-fiubags .ff-item {
    background: var(--ff-white);
    border: 1px solid var(--ff-rule);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-fiubags .ff-item:hover { border-color: var(--hf-green-mid); box-shadow: var(--ff-shadow); }
.faq-fiubags .ff-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    color: var(--hf-text);
    transition: color 0.2s ease, background 0.2s ease;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
}
.faq-fiubags .ff-question:hover { color: var(--hf-green); background: rgba(228,242,241,0.35); }
.faq-fiubags .ff-question[aria-expanded="true"] { color: var(--hf-green); background: rgba(228,242,241,0.55); }
.faq-fiubags .ff-question:focus-visible { outline: 2px solid var(--hf-green-mid); outline-offset: -2px; }
.faq-fiubags .ff-question h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    color: inherit;
}
.faq-fiubags .ff-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hf-mint);
    color: var(--hf-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease;
}
.faq-fiubags .ff-icon svg { width: 14px; height: 14px; transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1); }
.faq-fiubags .ff-question[aria-expanded="true"] .ff-icon { background: var(--hf-green); color: #fff; }
.faq-fiubags .ff-question[aria-expanded="true"] .ff-icon svg { transform: rotate(180deg); }
.faq-fiubags .ff-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--hf-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-fiubags .ff-answer::before { content: ""; display: block; height: 1px; background: var(--ff-rule); margin: 0 0 1rem; }
@media (max-width: 575px) {
    .faq-fiubags .ff-question { padding: 1rem; gap: 0.75rem; }
    .faq-fiubags .ff-question h3 { font-size: 0.95rem; }
    .faq-fiubags .ff-answer { padding: 0 1rem 1rem; font-size: 0.92rem; }
    .faq-fiubags .ff-icon { width: 32px; height: 32px; }
}

