/* CONTENEDOR */
.panel {

    font-family: "Poppins", sans-serif;
    background-color: transparent;
}

.btn-link {
    background: none;
    border: none;
    color: var(--bc-1);
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}

.btn-link:hover {
    text-decoration: underline;
}

/* HEADER */
.panel-title {
    padding: 30px 60px;
    width: 100%;
    background-color: var(--bc-1-lighter-75);
    color: var(--bc-1);
    display: flex;
    align-items: center;
    padding: var(--space-m) var(--space-l);
    font-weight: 800;
}

.panel-title h1 {
    font-size: 30px;
}

.icon-title {
    margin-left: auto;
}

.icon-title img {
    margin-left: auto;
    height: 50px;
}

.panel-subtitle {
    display: flex;
    width: 100%;
    background-color: var(--bc-1-lighter-75);
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px 30px;
    gap: 5%
}

.panel-subtitle p {
    margin-top: 10px;
    color: var(--bc-1);
    line-height: 19px;
    font-weight: 600;
}


.panel-box-text {
    padding: var(--space-m);
    margin-top: var(--space-m);
    margin-bottom: var(--space-m);
}

.panel-box-text p {
    font-size: 0.9rem;
    line-height: 1.2rem;
    color: var(--bc-1);
    font-weight: var(--caption-fw);
    letter-spacing: 1px;
}


/* SECCIONES */
.panel-section {
    background-color: var(--bc-1-lighter-75);
    padding: var(--space-m);
}


.section-title {
    font-size: 1rem;
    border-bottom: 1px solid var(--bc-1);
    padding-bottom: 6px;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.section-desc {
    font-size: 13px;
    margin-bottom: 12px;
}

/* GRID EXACTO */
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #cfcaca;
}

/* ITEMS */
.data-item {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    align-items: center;
    border-bottom: 1px solid #fff;
}

/* colores EXACTOS alternos */
.data-item:nth-child(1),
.data-item:nth-child(4) {
    background: #F8F4F3;
}

.data-item:nth-child(2),
.data-item:nth-child(3) {
    background: #E5DCD7;
}

/* ICONOS */
.data-item img {
    width: 30px;
}

/* TEXTOS */
.data-item span {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.data-item p {
    font-size: 0.9rem;
    margin-top: 2px;
}

/* FACTURACIÓN */
.billing-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 30px 0;
    position: relative;
}

/* línea vertical EXACTA */
.billing-box::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #6b4c3b;
}

/* texto centrado */
.billing-text {
    text-align: right;
    font-size: 1rem;
    margin-right: 2rem;
    font-weight: initial;
}

.billing-action {
    text-align: center;
}

/* TEXTAREA */
.panel-textarea {
    width: 100%;
    height: 120px;
    border: 1px solid #d3d3d3;
    background: #efefef;
    border-radius: 6px;
    padding: 10px;
}

/* INPUT DENTRO DE PANEL (p.ej. email de facturación electrónica) */
.panel-input {
    width: 100%;
    border: 1px solid #d3d3d3;
    background: #efefef;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* BOTÓN FINAL */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/*ESTABLECIMIENTOS*/
.listado-locales {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ITEM */
.item-local {
    border-radius: 6px;
    overflow: hidden;
}

/* HEADER */
.item-local-header {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
    padding: 15px 20px;
}

/* IZQUIERDA */
.item-local-left {
    display: flex;
    align-items: center;
    gap: 49px;
}

.avatar-local {
    border-radius: 50%;
    background-color: var(--bc-1);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    justify-self: center;
    text-transform: uppercase;
    font-family: var(--display-1-ff);
    font-size: 1.3rem;
    font-weight: var(--display-1-fw);
    line-height: var(--display-1-lh);
    letter-spacing: 1px;
}

.title-local {
    font-weight: 600;
}

/* CENTRO */
.item-local-center {
    font-weight: lighter;
}

/* BOTÓN */
.btn-detalles {}

/* BODY */
.item-local-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    background: #e8e4e4;
}

/* GRID DETALLE */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #333;
}

/* DETALLE ITEM */
.detail {
    display: flex;
    gap: 15px;
    padding: 15px;
    align-items: center;
}

.detail:nth-child(1),
.detail:nth-child(2) {
    background: #e8e4e4;
}

.detail:nth-child(3),
.detail:nth-child(4) {
    background: #dcd7d7;
}

/* ICONO */
.icon {
    font-size: 20px;
}

/* TEXTO */
.detail strong {
    font-size: 12px;
}

.detail p {
    font-size: 14px;
}

/* TOGGLE */
.item-local input {
    display: none;
}

.item-local input:checked~.item-local-body {
    max-height: 400px;
}

/******************* Listado de contratos *******************/
.contract-card {
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
}

/* CABECERA */
.contract-header {
    background: #5a382b;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contract-header-buttons {
    display: flex;
    gap: 10px;
}

/* CUERPO */
.contract-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #f3eeee;
    padding: 25px 30px;
    gap: 40px;
}

/* COLUMNAS */
.contract-col {
    display: flex;
    flex-direction: column;
}

/* TITULO */
.contract-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 1px solid #bdbdbd;
    padding-bottom: 5px;
    font-size: 1.3rem;
}

.contract-title img {
    width: 40px;
}

/* INFO */
.contract-info {
    margin-bottom: 12px;
}

.contract-info span {
    font-size: 16px;
    font-weight: 600;
}

.contract-info p {
    font-size: 14px;
    margin-top: 2px;
}

/* FOOTER */
.contract-footer {
    display: flex;
    justify-content: flex-end;
    background: #f3eeee;
    padding: 0 30px 20px;
}

.contract-machines-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.contract-machines-list li {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    padding: 80px 20px;
    min-height: 400px;

    color: #333;
}

/* ICONO */
.empty-icon {
    width: 90px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* TITULO */
.empty-state h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 15px;
}

/* TEXTO */
.empty-state p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    line-height: 1.5;
}

/**************************FACTURAS *********************/
/* FILTRO */
.invoice-filter {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.filter-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
}

/* TABLA */
.invoice-table {
    border: 1px solid #d0cccc;
    border-radius: 8px;
    overflow: hidden;
}

/* CABECERA */
.table-invoice-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    gap: 10px;
    background: #e8e4e4;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
}

/* FILAS */
.table-invoice-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
    gap: 10px;
    padding: 12px 15px;
    align-items: center;
    border-top: 1px solid #fff;
    background: #f3eeee;
}

.table-invoice-row:nth-child(even) {
    background: #e6e1e1;
}

.table-invoice-head>div,
.table-invoice-row>div {
    min-width: 0;
    overflow-wrap: break-word;
}

/* REFERENCIA + PDF */
.ref-invoice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    min-width: 0;
}

.pdf-icon {
    width: 18px;
    cursor: pointer;
}

/* ESTADOS */
.status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status.pagada {
    background: #d4edda;
    color: #2e7d32;
}

.status.pendiente {
    background: #fff3cd;
    color: #856404;
}

.status.vencida {
    background: #f8d7da;
    color: #842029;
}

/**************************Información fiscal *********************/

/* BLOQUE AÑO */
.year-block-347 {
    margin-bottom: 25px;
}

/* TITULO */
.year-title-347 {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #3a2a20;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* FILA */
.quarter-row-347 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 2rem;
}

/*********************** Nueva Incidencia ***************************/
/* SECTION */
.troubleshooting-section {
    padding-bottom: 40px;
}

/* GRID */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
}

/* CELDAS */
.problem,
.solution {
    padding: 22px 30px;
    display: flex;
    align-items: center;
    min-height: 82px;
}

/* PREGUNTAS */
.problem {
    justify-content: flex-end;
    text-align: right;
    font-weight: 700;
    font-size: 18px;
    color: #1f1f1f;
    border-right: 4px solid #5b3a2d;
    padding-right: 28px;
}

/* RESPUESTAS */
.solution {
    font-size: 16px;
    line-height: 1.5;
    color: #3d3d3d;
    padding-left: 30px;
}

/* FOOTER */
.troubleshooting-footer {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* TEXTO FINAL */
.troubleshooting-footer p {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #1f1f1f;
}


/******************** Nueva Incidencia Wizard **************/

.incidencia-wizard {
    position: relative;
    background: #ece7e7;
    padding: 0 !important;
}



/* LOADER */

.global-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity .2s ease, visibility 0s linear 0s;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility 0s linear .2s;
    pointer-events: none;
}

.global-loader img {
    width: 200px;
    animation: global-loader-spin 4.4s linear infinite;
}

@keyframes global-loader-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}



/* STEPS */

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 35px 40px 20px;
    text-align: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.step-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid #b3aaaa;
    color: #5b5b5b;
    font-size: 21px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.active .step-circle {
    border-color: #dc930f;
    color: #000;
}

.step span {
    font-size: 15px;
    font-weight: 600;
}

/* GRADIENT */

.wizard-gradient {
    height: 16px;
    background: linear-gradient(90deg, #83c733, #e7df2d, #f0842d);
}

/* PROGRESO (móvil) */

.wizard-progress {
    display: none;
}

/* PANELS */

.wizard-panel {
    display: none;
    padding: 14px;
}

.wizard-panel.active {
    display: block;
}

.machine-list {
    width: 100%;
}

.machine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 18px;
    background: rgba(255, 255, 255, 0.35);
    margin-bottom: 14px;
}

.machine-info {
    flex: 1;
}

.machine-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.3;
}

.machine-code {
    font-size: 15px;
    color: #4d3b35;
}

.machine-button {
    flex-shrink: 0;
}

.machine-button .btn-select {
    min-width: 250px;
}

/* QUESTION */

.question-block {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    align-items: center;
    min-height: 340px;
}

.question-divider {
    width: 2px;
    height: 250px;
    background: #4b3228;
    margin: auto;
}

.question-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.question-number {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 4px solid #4b3228;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 33px;
    font-weight: bold;
}

.question-left h3 {
    font-size: 24px;
    font-weight: lighter;
    text-align: center;
    max-width: 700px;
    line-height: 1.3;
}

.question-right {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* SELECT */

.custom-select {
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    border: none;
    border-bottom: 2px solid #d89217;
    padding: 6px;
    font-size: 14px;
    letter-spacing: 1px;

}

/* TEXTAREA */

.observaciones {
    width: 100%;
    height: 180px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #b9b9b9;
    resize: none;
    background: #fff;
}

/* SUMMARY */

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 40px auto;
    max-width: 1200px;
}

.summary-label {
    padding: 28px 30px;
    font-size: 18px;
}

.summary-value {
    padding: 28px 30px;
    font-size: 15px;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.summary-label {
    font-weight: 700;
    text-align: right;
    border-right: 4px solid #4b3228;
}

.summary-value input {
    width: 320px;
    padding: 6px;
    border: 1px solid #a8a8a8;
    font-size: 16px;
}

.wizard-panel[data-panel="6"].active {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.incident-finished-content {
    margin: auto auto;
    text-align: center;
    max-width: 700px;
}

.finished-icon {
    width: 90px;
    margin-bottom: 25px;
}

.incident-finished-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #3f2a22;
    margin-bottom: 35px;
}

.incident-finished-content p {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 600;
    color: #3f2a22;
    max-width: 760px;
    margin: 0 auto 45px;
}

.finished-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.wizard-panel[data-panel="7"].active {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}


/* FOOT BUTTONS */

.wizard-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 30px;
}

/* Maintenance */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.video-card {
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
}

.video-info {
    padding: 20px 20px 10px;
}

.video-info h2 {
    margin: 10px 0 10px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.video-wrapper {
    padding: 0 20px 20px;
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: black;
}

.video-frame:hover {
    cursor: pointer;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: scale-down;
}

/**************************** PEDIDOS **********************/

/* =========================
   LAYOUT
========================= */

.order-panel-page {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.order-left {
    width: 68%;
}

.order-right {
    width: 32%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =========================
   PANEL BASE
========================= */

.panel-section {
    background: #ece8e8;
    margin-bottom: 16px;
}

/* =========================
   CABECERA
========================= */

.order-header {}



/* =========================
   FILTROS
========================= */

.order-filters {
    padding: 26px;
}

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




.filter-group input,
.filter-group select {
    height: 33px;
    border: none;
    border-bottom: 1px solid #442d25;
    background: #f2f2f2;
    padding: 0 18px;
    font-size: 1rem;
    outline: none;
}

.filters-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 26px;
}

/* =========================
   TITULOS
========================= */

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f1f1f;
    border-bottom: 1px solid #442d25;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

/* =========================
   PRODUCTOS
========================= */

.products-section {
    padding: 18px;
}

.products-list {
    display: flex;
    flex-direction: column;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
}

.product-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.product-image-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.product-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    cursor: pointer;
}

.product-image-zoom-icon.fas {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5A119;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-ref {
    font-size: 0.95rem;
    color: #3f2a22;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f1f1f;
}

.product-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Promoción agrupada dentro de "Mi cesta" (confirm-cart.php) */
.product-item--promo-group {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.product-item__promo-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-item__promo-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f1f1f;
    text-transform: uppercase;
}

.product-item__promo-lines {
    padding-left: 68px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-item__promo-line {
    font-size: 0.9rem;
    color: #3f2a22;
}

.product-item__promo-line--gift {
    color: #8a5a2b;
    font-style: italic;
}

.qty-input {
    width: 68px;
    height: 34px;
    border: 1px solid #bbb;
    background: #f4f4f4;
    padding: 0 12px;
}

.add-product-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #442d25;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #442d25;
}

/* =========================
   MODAL DETALLE PRODUCTO
========================= */

.product-modal-box {
    position: relative;
    max-width: 640px;
    border: 3px solid var(--bc-2-lighter-40, #f19f19);
    background: #fff;
    border-radius: 10px;
}

.product-modal-body {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
}

.product-modal-image {
    flex: 0 0 auto;
    width: 260px;
}

.product-modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-modal-info {
    flex: 1 1 auto;
    min-width: 0;
}

.product-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1f1f1f;
}

.product-modal-header .modal-close {
    font-size: 1.4rem;
    color: #1f1f1f;
}

.product-modal-desc-corta {
    margin-top: 14px;
    font-size: 1rem;
    color: #1f1f1f;
    line-height: 1.4;
}

.product-modal-vermas {
    display: inline-block;
    margin-top: 6px;
    color: var(--bc-2, #c58124);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.product-modal-vermas:hover {
    text-decoration: underline;
}

.product-modal-desc-larga {
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 6px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
}

.product-modal-desc-larga.is-visible {
    display: block;
}

@media (max-width: 576px) {
    .product-modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-modal-header {
        flex-direction: row;
        width: 100%;
    }
}

/* =========================
   RESUMEN
========================= */

.resume-box {
    padding: 0;
    overflow: hidden;
    background: #FFF;
}

.resume-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 15px;
    border-bottom: 1px solid #d2cccc;
    color: #1f1f1f;
}

.resume-content {
    padding: 20px 22px;
}

.resume-item {
    margin-bottom: 5px;
    font-size: 1rem;
    color: #1f1f1f;
}

.delete-item {
    cursor: pointer;
    font-weight: 100 !important;
    margin-right: 10px;
}

/* Promoción agrupada dentro del Resumen de pedido */
.resume-item--promo-group {
    margin-bottom: 14px;
}

.resume-item__promo-header {
    font-weight: 700;
    text-transform: uppercase;
}

.resume-item__promo-lines {
    padding-left: 24px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.resume-item__promo-line {
    font-size: 0.9rem;
    color: #3f2a22;
}

.resume-item__promo-line--gift {
    color: #8a5a2b;
    font-style: italic;
}

.selected-local {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f1f1f;
    display: flex;
}

.select-local-name {
    width: 70%;
}

.empty-suggestions {
    color: #555;
    font-size: 1rem;
}

.continue-btn {
    margin: 0 22px 22px;
}



/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .order-panel-page {
        flex-direction: column;
    }

    .order-left,
    .order-right {
        width: 100%;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .product-right {
        width: 100%;
        justify-content: flex-end;
    }

    .order-title-row h1 {
        font-size: 1.8rem;
    }

    .resume-actions {
        flex-direction: column;
    }

    .resume-actions .continue-btn {
        margin: 0 0 12px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .resume-actions .continue-btn:last-child {
        margin-bottom: 0;
    }

}




.improvement-title h2,
.notice-title h2 {
    text-align: center;
    font-size: 1.8em;
    font-family: var(--display-1-ff);
    font-weight: var(--display-1-fw);
    letter-spacing: 1px;
    color: #3f2b23;
}

.notice-title h2 {
    font-size: var(--display-1-fs);
    color: #4C372B;
}

.title-notice h3 {
    font-family: var(--display-1-ff);
    font-size: 1.8em;
    font-weight: var(--display-1-fw);
    letter-spacing: 1px;
    margin: 0.5em 0;
    color: #4C372B;
}

.notice-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.notice-card {
    color: #4c372b;
    padding: 2em;
    border-radius: 1em;
    display: flex;
    gap: 2em;
    align-items: stretch;
    background: white;
    box-shadow: 5px 5px 10px 0px #888;
    width: 80%;
    min-height: 20em;
    margin: 1.5em auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.notice-card:hover {
    background-color: #d7d7d7;
    cursor: pointer;
}

.notice-card .img-noticia {
    flex: 0 0 23em;
    height: 16em;
    overflow: hidden;
    border-radius: 1.5em;
}

.img-noticia img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.notice-card:hover .img-noticia img {
    transform: scale(1.1);
}

.descripcion-noticia {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.notice-card .descripcion-noticia {
    justify-content: space-evenly;
    gap: 1em;
}

.descripcion-noticia h2 {
    font-family: var(--display-1-ff);
    font-size: 1.8em;
    font-weight: var(--display-1-fw);
    line-height: 1.2;
    letter-spacing: 1px;
    color: #4C372B;
    margin: 0;
}

.descripcion-noticia p {
    font-family: var(--display-1-ff);
    color: #4C372B;
    line-height: 1.5;
    margin: 0;
}

.leer-mas {
    font-weight: 600;
    white-space: nowrap;
}

/* Botón de Video (decoratunegocio) */
.video-button-container {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding-top: 1em;
}

.video-button {
    color: #3f2b23;
    padding: .5em 3.5em;
    border: 1px solid #FF8800;
    border-radius: 0.3em;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.video-button:hover {
    background-color: #f19f19;
}

/* Vista de Detalle news.php */
.notice-body {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 5px 5px 10px 5px rgb(136, 136, 136);
    padding: 2.5em;
    border-radius: 0.5em;
    background: white;
    overflow: hidden;
}

.notice-content {
    display: grid;
    overflow: hidden;
}

.notice-body .img-noticia {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 2em;
    margin: 1em 0;
}

.notice-body .descripcion-noticia p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.back-button {
    text-align: right;
    margin-top: 1.5em;
}

.back-button a {
    color: #4C372B;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    background: white;
}

/* Estilos compartidos en Atención al Cliente y Ayúdanos a Mejorar */

/* Componentes Compartidos / Reutilizados */
.customer-service-title,
.feedback-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--space-m) var(--space-l);
    border-bottom: 1px solid #333140;
}

.customer-service-title h1,
.feedback-title h1 {
    font-family: var(--display-1-ff);
    font-size: var(--display-1-fs);
    font-weight: var(--display-1-fw);
    letter-spacing: 1px;
    margin: 0;
}

.feedback-title {
    padding: 16px 32px;
    margin-bottom: 20px;
}

.feedback-title h1 {
    display: inline-block;
    font-size: clamp(1.5rem, 1.87rem, 2rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* customer-service.php */
.customer-service-panel {
    padding: 0;
    background-color: #ffffff;
}

.customer-service-container {
    width: 100%;
    overflow: visible;
}

.promotions-title {
    font-weight: lighter;
    text-align: center;
    font-size: x-large;
    padding: 1em 0;
}

.customer-service-subtitle {
    padding: 0 .5rem;
    text-align: center;
    font-family: var(--body-ff);
    font-style: normal;
    font-weight: var(--body-fw);
    line-height: var(--body-lh);
}

.customer-service-content {
    position: relative;
    width: min(1200px, 65%);
    margin: auto;
    padding: 8rem 0 10rem 0;
}

.customer-service-box {
    width: 75%;
    border: 1px solid #4a4453;
    background-color: transparent;
    margin-bottom: 1rem;
    padding: 1rem 18rem 1rem 2rem;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.customer-service-box button {
    background-color: #ff9100;
    /*font-size: 1.5rem;*/
    font-size: clamp(0.95rem, 2.5vw, 1.4rem);
    line-height: 1;
    text-transform: unset;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    color: #3F281E;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 0.45rem;
    cursor: pointer;

    overflow-wrap: break-word;
    word-break: break-word;
}

.customer-service-box>button>a {
    font-weight: bold;
    color: #3f2b23;
    text-decoration: none;
}

.customer-service-box p {
    margin: 0;
    line-height: 1.2;
}

.customer-service-box:last-of-type {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.customer-service-body:last-child button:last-child {
    margin-bottom: 0;
}

.customer-service-body img {
    position: absolute;
    right: -7%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(380px, 38vw, 650px);
    z-index: 10;
}

/* help-improve.php */
.panel-section.feedback-section {
    width: 100%;
    padding: 0 0 55px;
    background: #ffffff;
    color: #3b2417;
}

.feedback-container {
    width: 100%;
    margin: 0 auto;
}

.feedback-header {
    text-align: center;
    margin-bottom: 32px;
}

.feedback-header h2 {
    margin-bottom: 16px;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.feedback-header p {
    max-width: 900px;
    margin: 0 auto 12px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #5f5f5f;
}

.feedback-box {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 34px 32px 38px;
    border: 1px solid #d6d6d6;
    border-radius: 14px;
    background: #fff;
    justify-items: center;
    box-sizing: border-box;
}

.feedback-block {
    margin-bottom: 1px;
    width: 100%;
}

.feedback-block.small {
    width: 60%;
}

.feedback-block:last-child {
    margin-bottom: 0;
}

.feedback-box h3 {
    margin: 16px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2e2e2e;
}

.emoji-rating {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.emoji-rating label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 110px;
    min-height: 120px;
    justify-content: center;
    box-sizing: border-box;
}

.emoji-rating label:hover {
    border: 1px solid #f4b35e;
    border-radius: 12px;
}

.emoji-rating input,
.stars-rating input {
    display: none;
}

.emoji {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    transition: transform 0.2s ease;
}

.emoji-rating label:hover .emoji {
    transform: scale(1.08);
}

.excellent {
    background: #2eb500;
}

.good {
    background: #95ef33;
}

.regular {
    background: #ffe44d;
}

.bad {
    background: #ff8a00;
}

.emoji-rating label:has(input:checked) {
    border: 1px solid #f4b35e;
    border-radius: 12px;
}

.label-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

.stars-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 6px;
}

.stars-rating label {
    cursor: pointer;
    font-size: 52px;
    line-height: 1;
    color: #d4d4d4;
    transition: color 0.2s ease, transform 0.2s ease;
}

.stars-rating label:hover,
.stars-rating label:hover~label,
.stars-rating input:checked~label {
    color: #f4b35e;
}

.stars-rating label:hover {
    transform: translateY(-2px);
}

/* Inputs formulario */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.radio-item:hover {
    border-color: #f4b35e;
}

.radio-item input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 1px solid #666;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-custom::after {
    content: "✕";
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

.radio-item input:checked+.radio-custom {
    background: #f4b35e;
    border-color: #f4b35e;
}

.radio-item input:checked+.radio-custom::after {
    opacity: 1;
    transform: scale(1);
}

.radio-item span:last-child {
    font-size: 0.98rem;
    color: #5c5c5c;
}

.radio-item:focus-within {
    outline: 2px solid #f4b35e;
    outline-offset: 3px;
}

.feedback-textarea {
    width: 100%;
    max-width: 760px;
    min-height: 110px;
    margin: 0 auto;
    display: block;
    padding: 18px 20px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    resize: vertical;
    font-size: 0.98rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    border-color: #f4b35e;
}

.feedback-submit {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.feedback-submit button {
    min-width: 260px;
    padding: 14px 28px;
    border: 2px solid #eb9d32;
    border-radius: 10px;
    background: #f4b35e;
    color: #5a3200;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: "Poppins", sans-serif;
}

.feedback-submit button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Estilos compartidos en Coffee Coins */
.coffee-coins-main-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--space-m) var(--space-l);
    font-weight: 800;
    color: var(--bc-1);
    text-align: center;
    box-sizing: border-box;
}

.coffee-coins-main-title h1 {
    font-family: var(--display-1-ff), "Poppins", sans-serif;
    font-size: var(--display-1-fs);
    font-weight: var(--display-1-fw);
    letter-spacing: 1px;
    margin: 0;
}

.coffee-coins-btn {
    font-family: "Poppins", sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.3rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: var(--space-s) var(--space-m);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.margintop20 {
    margin-top: 20px;
}

/* COFFEE COINS REGALO */

.coffee-coins-gift-panel {
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.coffee-coins-gift-banner {
    margin-top: auto;
}

#gallery-coffee {
    padding: 2em 0;
    background-color: white;
    width: 100%;
    overflow: hidden;
}

.gallery-container-coffee {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: none;
    scroll-behavior: smooth;
    padding: 10px 5%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-y;
}

.gallery-container-coffee:active {
    cursor: grabbing;
}

.gallery-container-coffee::-webkit-scrollbar {
    display: none;
}

.columnPrivateArea {
    flex: 0 0 30%;
    min-width: 260px;
    height: 30em;
    border-radius: 25px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    box-sizing: border-box;
}

.btn_ficha_regalo {
    user-select: none;
    border: 1px solid #FF8800;
    background-color: transparent;
    color: #3F281E;
    background: rgba(255, 255, 255, 0.9);
}

.btn_ficha_regalo:hover {
    background-color: #FF8800;
    color: #3F281E;
}

/* Resumen e historial */
.coffee-coins-gift-summary {
    /*background-color: white;*/
    padding: var(--space-m);
    box-sizing: border-box;
    width: 100%;
}

.order-summary__container {
    background-color: white;
    max-width: 1000px;
    margin: 0 auto var(--space-m) auto;
    padding: 2em var(--space-m);
    border: 1px solid rgba(137, 98, 82, 0.25);
    line-height: 1.2;
    border-radius: 12px;
}

.titulo_elige_regalo {
    font-family: var(--display-1-ff), "Poppins", sans-serif;
    font-size: 2em;
    font-weight: var(--display-1-fw);
    line-height: var(--display-1-lh);
    letter-spacing: 1px;
    text-align: center;
    color: #3f2b23;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.subtitulo-coffee-coins {
    text-align: center;
    font-style: italic;
    color: #3f2b23;
    margin-bottom: 1rem;
}

.barra {
    width: 50%;
    min-width: 100px;
    height: 0.3em;
    background: #3f2b23;
    margin: 1.5rem auto;
}

.coffee-coins-display-1 {
    font-family: var(--display-1-ff), "Poppins", sans-serif;
    font-size: 1.5em;
    font-weight: var(--display-1-fw);
    line-height: var(--display-1-lh);
    letter-spacing: 1px;
    text-align: center;
    color: #3f2b23;
}

.coffee-coins-display-1 b {
    font-weight: 600;
}

.coffee-coins-display-1 p {
    display: inline-block;
    margin-left: 15px;
    font-size: 0.9em;
}

.disponibles-color {
    color: #63ff49;
}

.canjeados-color {
    color: #00d9d9;
}

.caducados-color {
    color: #ff0000;
}

.coffee-coins-log-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 750px;
    margin: 0.8rem auto;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 0.5rem;
}

.coffee-coins-display-2 {
    font-style: italic;
    color: #3f2b23;
    margin: 0;
    text-align: left;
}

.coffee-coins-display-3 {
    font-weight: 600;
    color: #3f2b23;
    margin: 0;
    text-align: right;
}

/* FLECHAS DE NAVEGACIÓN DEL SLIDER */

.coffee-coins-gift-banner {
    position: relative;
    margin-top: auto;
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #FF8800;
    /*background: rgba(63, 40, 30, 0.85);*/
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav-btn:hover {
    border: 2px solid #ff8800;
    background: #F5A119;
    color: white;
    /*color: #3F281E;*/
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* LÍNEAS GUÍA (INDICADORES) DEL SLIDER */
.slider-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 1em;
    width: 100%;
}

.indicator-line {
    width: 20px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 10px;
    transition: background-color 0.3s ease, width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado activo usando el color corporativo naranja */
.indicator-line.active {
    background-color: #FF8800;
    width: 38px;
    /* Crece horizontalmente dando una sensación de app moderna */
}

/* COFFEE COINS INFORMATIVO */

.coffee-coins-panel {
    background-color: #ffffff;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.coffee-coins-panel .coffee-coins-main-title {
    border-bottom: 1px solid #333140;
}

.coffee-coins-body {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 40px auto;

    box-sizing: border-box;
}

.coffee-coins-content {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    background: #efe6c8;
    border: 1px solid #d6cba7;
    padding: 25px;
    box-sizing: border-box;
}

.coffee-coins-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.coffee-coins-block h2 {
    display: inline-block;
    background: #f39c12;
    color: #4C372B;
    font-size: 1.5em;
    font-weight: bold;
    padding: 6px 34px;
    border-radius: 10px;
    margin: 0 0 15px 0;
}

.coffee-coins-block p {
    font-size: 18px;
    color: #4C372B;
    line-height: 1.1;
    margin: 10px auto;
    max-width: 90%;
}

.table-coins {
    width: 90%;
    max-width: 850px;
    border-collapse: collapse;
    /*border-radius: 6px;*/
    overflow: hidden;
    margin: 15px auto;
    background-color: #ffffff;
}

.table-coins th,
.table-coins td {
    font-size: 16px;
    border: 2px solid #d6cba7;
    padding: 12px 15px;
    color: #4C372B;
}

.table-coins thead th {
    text-align: center;
    font-weight: bold;
    background-color: #efe6c8;
    /* Cabecera adaptada sutilmente */
}

.table-coins tbody td {
    text-align: left;
    padding-left: 40px;
}

.table-coins td:last-child {
    text-align: center;
    padding-left: 0;
}

.info-box-coins {
    padding: 12px 20px;
    font-size: 1em;
    background: #fff;
    border: 1px solid #cfcfcf;
    text-align: left;
    width: 100%;
    max-width: 850px;
    margin: 20px auto;
    line-height: 1.6;
    color: #4C372B;
    box-sizing: border-box;
    border-radius: 6px;
}

.btn-gradient {
    cursor: pointer;
    border: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: #F5A119;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bc-2-lighter-40, #f39c12), var(--bc-2-darker-40, #e67e22));
    z-index: -1;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.btn-gradient:hover::before {
    opacity: 0;
}

.btn-gradient.selected::before {
    opacity: 0;
}


.password-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.password-field p {
    margin-bottom: 10px;
    font-weight: 600;
}

.password-value {
    /* padding: 28px 30px;*/
    font-size: 15px;
}

.password-field .password-value,
.password-field .password-input {
    width: 100%;
}

.password-value input {
    width: 320px;
    padding: 6px;
    border: 1px solid #a8a8a8;
    font-size: 16px;
}

.password-field .password-input {
    box-sizing: border-box;
}


/****************FACTURACION ELECTRONICA ******************/
.invoice-electronic-intro {
    margin-bottom: 40px;
}

.invoice-electronic-intro p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #3f2a22;
    font-size: 1rem;
}

.invoice-electronic-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 50px;
}

.invoice-electronic-option {
    flex: 1;
    text-align: center;
    max-width: 450px;
    padding: 0 40px;
}

.invoice-electronic-icon {
    width: 95px;
    height: auto;
    margin-bottom: 15px;
}

.invoice-electronic-option h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: #1f1f1f;
    line-height: 1.1;
    margin-bottom: 20px;
    font-style: italic;
}

.invoice-electronic-option p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    color: #3f2a22;
}

.invoice-electronic-divider {
    width: 1px;
    align-self: stretch;
    background: #4c372f;
    min-height: 250px;
}

.invoice-electronic-actions {
    text-align: center;
    margin-top: 20px;
}

.invoice-electronic-actions .button {
    display: inline-flex;
}

.debt-summary {
    display: flex;
    width: 100%;
}

.debt-column {
    flex: 1;
    text-align: center;
}

.debt-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #1f1f1f;
    padding: 10px 20px;
    /* border-bottom: 1px solid #4c372f;*/
}

.debt-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f1f1f;
    padding: 0px;
}

/* ==========================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================== */

@media (max-width: 1350px) and (min-width: 901px) {
    .customer-service-box {
        padding: 1rem 9rem 1rem 2rem;
    }

    .customer-service-body img {
        right: -10%;
        width: 38vw;
        transform: translateY(-55%) translateX(20%);
    }
}

@media (max-width: 992px) {
    .troubleshooting-grid {
        grid-template-columns: 1fr;
    }

    .problem {
        justify-content: flex-start;
        text-align: left;
        border-right: none;
        border-bottom: 2px solid #5b3a2d;
    }

    .solution {
        padding-top: 10px;
        padding-bottom: 25px;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .customer-service-box {
        padding: 1rem 9em 1rem 2em;
    }

    .customer-service-body img {
        right: -10%;
        transform: translateY(-55%) translateX(20%);
    }

    .password-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .notice-card {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 1.5em;
        width: 95%;
    }

    .notice-card .img-noticia {
        flex: none;
        width: 100%;
    }

    .notice-body {
        padding: 1.5em;
        width: 95%;
    }

    .notice-title h2 {
        font-size: 1.9rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-title h1 {
        font-size: 24px;
    }

    .maintenance-title img {
        margin-left: 10px;
    }

    .video-info h2 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .customer-service-content {
        padding: 0;
        width: 90%;
    }

    .customer-service-subtitle {
        margin-bottom: 1em;
        line-height: 2em;
    }

    .customer-service-box {
        width: 100%;
        padding: 1.5rem 1rem;
    }

    .customer-service-body img {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        display: block;
        width: min(420px, 100%);
        margin: 2rem auto 0 auto;
    }

    .panel-section.feedback-section {
        padding: 30px 14px 40px;
    }

    .feedback-header {
        margin-bottom: 24px;
    }

    .feedback-box {
        padding: 26px 18px 30px;
        border-radius: 12px;
    }

    .feedback-block {
        margin-bottom: 30px;
    }

    .feedback-block.small {
        width: 100%;
    }

    .emoji-rating {
        gap: 18px;
    }

    .emoji-rating label {
        min-width: 90px;
    }

    .emoji {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .stars-rating label {
        font-size: 42px;
    }

    .feedback-submit button {
        width: 100%;
        min-width: unset;
    }

    .slider-nav-btn {
        display: none;
    }

    .columnPrivateArea {
        flex: 0 0 85%;
        height: 25em;
    }

    .coffee-coins-log-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .coffee-coins-display-2,
    .coffee-coins-display-3 {
        text-align: center;
    }

    .coffee-coins-display-1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .coffee-coins-display-1 p {
        margin-left: 0;
    }

    .table-coins tbody td {
        padding-left: 15px;
    }

    .table-coins th,
    .table-coins td {
        font-size: 14px;
        padding: 8px;
    }

    .invoice-filter {
        flex-direction: column;
        align-items: stretch;
    }

    /* TABLA DE FACTURAS -> TARJETAS */
    .invoice-table {
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .table-invoice-head {
        display: none;
    }

    .table-invoice-row {
        display: block;
        border: 1px solid #e3dede;
        border-radius: 10px;
        padding: 14px 16px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .table-invoice-row:nth-child(even) {
        background: #fff;
    }

    .table-invoice-row>div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px dashed #e3dede;
        font-size: 14px;
        text-align: right;
    }

    .table-invoice-row>div:last-child {
        border-bottom: none;
    }

    .table-invoice-row>div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #8a8080;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .3px;
        text-align: left;
    }

    .table-invoice-row .ref-invoice {
        justify-content: flex-start;
        border-bottom: 1px solid #e3dede;
        margin-bottom: 4px;
        padding-bottom: 12px;
        font-size: 16px;
        text-align: left;
    }

    .table-invoice-row .ref-invoice::before {
        content: none;
    }

    .table-head,
    .table-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .contract-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .item-header {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }


    .invoice-electronic-options {
        flex-direction: column;
        gap: 40px;
    }

    .invoice-electronic-divider {
        width: 100%;
        height: 1px;
        min-height: auto;
    }

    .invoice-electronic-option {
        max-width: 100%;
        padding: 0;
    }

    .invoice-electronic-option h3 {
        font-size: 1.7rem;
    }

    .invoice-electronic-option p {
        font-size: 1rem;
    }

    .invoice-electronic-actions .button {
        width: 100%;
    }


    .debt-summary {
        flex-direction: column;
    }

    .debt-column:first-child {
        margin-bottom: 20px;
    }



}

@media (max-width: 640px) {

    .notice-card,
    .notice-body {
        padding: 1.2em;
        width: 100%;
    }

    .notice-title h2 {
        font-size: 1.6rem;
    }

    .descripcion-noticia h2 {
        font-size: 1.4em;
    }

    .video-button {
        width: 50%;
        text-align: center;
        padding: .5em 1em;
    }
}

@media (max-width: 480px) {
    .feedback-header p {
        font-size: 0.93rem;
    }

    .emoji-rating {
        gap: 14px;
    }

    .emoji-rating label {
        min-width: 75px;
    }

    .label-text {
        font-size: 0.88rem;
    }

    .stars-rating label {
        font-size: 36px;
    }
}





/* -------------------------------------------
                ZONA DE GUERRA
----------------------------------------------*/

/* promociones.php */

.section-title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em 2rem;
    background: #f4efed;
    margin: 0;
    border: none;
}

.promotions-title {
    margin: 0;
    color: #3f281e;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0;
    font-size: 1.7em;
}

.promotions-filter {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 0 1em;
    background: #f4efed;
}

.promotions-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: .5rem;
    color: #3f281e;
    font-size: .95rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    height: 48px;
    border: none;
    border-bottom: 1px solid #3f281e;
    padding: 0 .75rem;
    background: #fff;
    color: #3f281e;
    outline: none;
}

.select-minimal {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 3rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233f281e' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-size: 12px 8px;
    background-repeat: no-repeat;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.promotions-categories {
    width: 100%;
}

.promotions-gallery {
    background: #fff;
    padding: 2rem;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.promotions-grid .promotion-card {
    position: relative;
    min-height: 320px;
    border-radius: 25px;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1.25rem;
    box-shadow: none;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}

.promotions-grid .promotion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.promotions-grid .promotion-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .12), transparent 35%);
    pointer-events: none;
}

.promotion-card__label {
    position: relative;
    z-index: 1;
    border: 1px solid #ff8800;
    border-radius: 10px;
    background: #fff;
    color: #3f281e;
    padding: .4rem 1.6rem;
    font-size: .87rem;
    font-weight: 600;
    text-transform: uppercase;
}

.promotion-card__label:hover {
    color: #3F281E;
    background: #ff8800;
    transition: background .25s ease, color .25s ease;
}

@media (max-width: 1200px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promotions-filter-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .promotions-grid {
        grid-template-columns: 1fr;
    }

    .promotions-grid .promotion-card {
        min-height: 280px;
    }

    .password-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .data-grid {
        grid-template-columns: 1fr;
    }

    .billing-action {
        margin-left: 2rem;
    }

    .billing-action a {
        display: inherit !important;
    }

    .item-local-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .machine-row {
        gap: 15px;
        flex-direction: column;
        align-items: normal;
    }

    /* WIZARD STEPS -> paso actual + barra de progreso */
    .wizard-steps {
        grid-template-columns: 1fr;
        padding: 18px 16px 4px;
        text-align: left;
    }

    .step {
        display: none;
    }

    .step.active {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        align-items: center;
    }

    .step.active::before {
        content: "Paso " attr(data-step) " de 5";
        grid-column: 2;
        grid-row: 1;
        font-size: 12px;
        font-weight: 600;
        color: #8a8080;
        text-transform: uppercase;
        letter-spacing: .3px;
    }

    .step.active .step-circle {
        grid-row: 1 / 3;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .step.active span {
        grid-column: 2;
        grid-row: 2;
        font-size: 16px;
    }

    .wizard-progress {
        display: block;
        height: 6px;
        margin: 14px 16px 18px;
        background: #d8d3d3;
        border-radius: 999px;
        overflow: hidden;
    }

    .wizard-progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #83c733, #e7df2d, #f0842d);
        border-radius: 999px;
        transition: width .3s ease;
    }

    .question-block {
        grid-template-columns: none;
    }

    .question-block .question-divider {
        width: 250px;
        height: 2px;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-label {
        text-align: left;
        border-right: none;
        border-bottom: 4px solid #4b3228;
        padding: 20px 15px 10px;
    }

    .summary-value {
        padding: 10px 15px 20px;
    }

    .summary-value input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .button {
        display: initial !important;
    }

    .panel-subtitle {
        align-items: center;
    }

    .selected-local>.button,
    .resume-box>.button {
        width: initial !important;
    }
}


/* promociones-categorias.php */

.promotions-page {
    --promo-orange: #ff8800;
    --promo-brown: #3f281e;
    --promo-border: #e7e2dd;
    --promo-soft: #f6f4f2;
    --promo-text: #5b4b43;
    --promo-shadow: 0 10px 30px rgba(63, 40, 30, 0.08);

    width: 100%;
    min-height: 100%;
    background: #fff;
    color: var(--promo-brown);
}

.promotions-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1rem;
}

.promotions-page__title {
    margin: 0 0 1rem;
    text-align: center;
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
    line-height: 1;
    letter-spacing: .08em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--promo-brown);
}

.promotions-tabs {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .15rem 0 .75rem;
    margin-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.promotions-tabs::-webkit-scrollbar {
    display: none;
}

.promotions-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .02em;
    color: var(--promo-brown);
    background: #fff;
    border: 1px solid var(--promo-orange);
    border-radius: 999px;
    padding: .55rem .9rem;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.promotions-tab:hover {
    transform: translateY(-1px);
    box-shadow: var(--promo-shadow);
}

.promotions-tab.is-active {
    background: var(--promo-orange);
    color: #fff;
}

.promotions-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 0 .85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--promo-border);
}

.promotions-toolbar__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
    text-transform: none;
    color: var(--promo-brown);
}

.promotions-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.promotions-list .promotion-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--promo-shadow);
    display: flex;
    flex-direction: column;
}

.promotion-card__media {
    width: 100%;
    background: var(--promo-soft);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.promotion-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-card__body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem;
}

.promotion-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--promo-brown);
}

.promotion-card__excerpt {
    margin: 0;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--promo-text);
}

.promotion-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-top: .15rem;
}

.promotion-card__price,
.promotion-card__promo {
    margin: 0;
    font-size: .92rem;
    font-weight: 700;
}

.promotion-card__price {
    color: var(--promo-brown);
}

.promotion-card__promo {
    color: var(--promo-orange);
}

.promotion-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: .4rem;
}

.promotion-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: .7rem 1rem;
    border: 1.5px solid var(--promo-orange);
    border-radius: 12px;
    background: #fff;
    color: var(--promo-brown);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .03em;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.promotion-card__button:hover {
    background: var(--promo-orange);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--promo-shadow);
}

.promotions-empty {
    margin: 1rem 0 0;
    color: var(--promo-text);
    font-size: 1rem;
}

@media (min-width: 768px) {
    .promotions-shell {
        padding: 1.25rem 1.5rem 2rem;
    }

    .promotions-page__title {
        margin-bottom: 1.2rem;
    }

    .promotions-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }

    .promotion-card__media {
        aspect-ratio: 4 / 3;
    }

    .promotion-card__body {
        padding: 1rem 1rem 1.05rem;
    }
}

@media (min-width: 1100px) {
    .promotions-shell {
        padding: 1.5rem 2rem 2.5rem;
    }

    .promotions-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .promotions-list .promotion-card {
        border-radius: 20px;
    }

    .promotion-card__title {
        font-size: 1.1rem;
    }

    .promotion-card__excerpt {
        font-size: .95rem;
    }
}

@media (max-width: 480px) {
    .promotions-shell {
        padding: .9rem;
    }

    .promotions-page__title {
        font-size: 1.3rem;
    }

    .promotions-toolbar {
        gap: .5rem;
    }

    .promotions-toolbar__title {
        font-size: .95rem;
    }

    .promotion-card__body {
        padding: .9rem;
    }

    .promotion-card__button {
        width: 100%;
    }
}


/* promociones-categorias.php */

.promotion-detail {
    --promo-orange: #f4a041;
    --promo-brown: #4f3a32;
    --promo-text: #7a6d66;
    --promo-border: #cfc7c2;
    --promo-bg: #f6f4f2;

    width: 100%;
    /*min-height: 100vh;*/
    background: #fff;
    color: var(--promo-brown);
}

.promotion-detail__container {
    width: 65%;
    margin: 0 auto;
    padding: 1rem;
}

.promotion-detail__header {
    border-bottom: 1px solid var(--promo-border);
    padding-bottom: .7rem;
    margin-bottom: 1rem;
}

.promotion-detail__header h1 {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--promo-brown);
}

.promotion-detail-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promotion-detail-card__image {
    width: 100%;
    background: var(--promo-bg);
    overflow: hidden;
    align-self: center;
}

.promotion-detail-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promotion-detail-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promotion-detail-card__title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--promo-brown);
}

.promotion-detail-card__description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--promo-text);
}

.promotion-detail-card__availability {
    font-size: .9rem;
    font-weight: 700;
    color: var(--promo-orange);
    margin: -.5rem 0 0;
}

.promotion-detail-card__actions {
    display: flex;
    justify-content: center;
    margin-top: .5rem;
}

.promotion-detail-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    min-height: 52px;
    padding: .85rem 1.5rem;
    border: 2px solid var(--promo-orange);
    border-radius: 14px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .95rem;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: .03em;
    color: var(--promo-brown);
    background: #fff;
    cursor: pointer;
    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.promotion-detail-card__button:hover {
    background: var(--promo-orange);
    color: #fff;
    transform: translateY(-2px);
}

.promotion-detail__back {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--promo-border);
    display: flex;
    justify-content: flex-end;
}

.promotion-detail__back a {
    text-decoration: none;
    color: var(--promo-brown);
    font-weight: 700;
    font-size: .95rem;
}

@media (min-width: 768px) {
    .promotion-detail__container {
        padding: 2rem;
    }

    .promotion-detail-card {
        gap: 1.5rem;
    }

    .promotion-detail-card__title {
        font-size: 2rem;
    }

    .promotion-detail-card__description {
        font-size: 1.05rem;
    }

    .promotion-detail-card__button {
        min-width: 320px;
    }
}

@media (max-width: 767px) {
    .promotion-detail__container {
        width: 100%;
    }
}


/*-------------------------------------------------------------------------------
----------------------------
------------------------------------------------------ */


/* LISTADO DE PEDIDOS */

.profile-box {
    font-size: 1rem;
    line-height: 1.7rem;
    background-color: var(--bc-1-lighter-75);
    color: var(--bc-1);
    padding: var(--space-m);
    margin: var(--space-m) 0;
}

.main-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.main-table th {
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-align: left;
}

.main-table td {
    padding: 0.5em 0;
    font-size: 1em;
    color: #333333;
    vertical-align: middle;
}

.col-referencia {
    text-transform: uppercase;
    width: 22%;
}

.col-fecha {
    text-transform: uppercase;
    width: 58%;
}

.col-acciones {
    width: 20%;
}

.acciones-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.icon-arrow {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #000000;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: transform 0.25s ease-in-out;
}

.main-row.expanded .icon-arrow {
    transform: rotate(180deg);
}

.sub-row td {
    padding: 0;
    border: none;
}

.expand-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-row.expanded .expand-wrapper {
    grid-template-rows: 1fr;
}

.sub-table-wrapper {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.sub-row.expanded .sub-table-wrapper {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease 0.1s, visibility 0s;
}

.sub-table-inner {
    background-color: #e5dfd8;
    margin-bottom: 15px;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.sub-table th {
    background-color: #d0c8c5;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: none;
    text-align: left;
}

.sub-table td {
    padding: 10px 15px;
    font-size: 15px;
    color: #2b2b2b;
}

.sub-table tr:first-child td {
    padding-top: 15px;
}

.sub-table tr:last-child td {
    padding-bottom: 15px;
}

.sub-col-nombre {
    background-color: #e2d9d6;
    width: 85%;
}

.sub-col-unidades {
    background-color: #e9e2df;
    width: 15%;
    text-align: center !important;
}

.pagination-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    background-color: #e5dfd8;
    color: #333333;
    font-weight: 700;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.pagination-btn:hover:not(:disabled):not(.active) {
    background-color: #d0c8c5;
}

.pagination-btn.active {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: #fff;
    cursor: default;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: #666666;
    padding: 0 4px;
    user-select: none;
}

@media (max-width: 768px) {
    .main-table > thead {
        display: none;
    }

    .main-table,
    .main-table > tbody,
    .main-table > tbody>tr,
    .main-table > tbody>tr>td {
        display: block;
        width: 100%;
    }

    .main-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 15px 0;
        border-top: 1px solid #d2ccc7;
    }

    .main-table tbody tr.main-row:first-of-type {
        border-top: 2px solid #000;
    }

    .sub-row.expanded {
        display: block;
        padding-bottom: 15px;
    }

    .col-referencia {
        width: 50%;
        padding: 0 !important;
        font-weight: bold;
    }

    .col-fecha {
        width: 50%;
        padding: 0 !important;
        text-align: right;
        font-size: 0.9em;
        color: #555;
    }

    .col-acciones {
        width: 100%;
        padding: 15px 0 0 0 !important;
    }

    .acciones-wrapper {
        justify-content: space-between;
    }

    .acciones-wrapper a {
        flex-grow: 1;
        text-align: center;
        margin-right: 20px;
    }

    .sub-table th,
    .sub-table td {
        font-size: 14px;
        padding: 10px !important;
    }

    .sub-col-nombre {
        width: 75%;
    }

    .sub-col-unidades {
        width: 25%;
    }
}


/* PEDIDOS PENDIENTES */

html:has(.panel-section-pedidos-pendientes),
body:has(.panel-section-pedidos-pendientes) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:has(.panel-section-pedidos-pendientes)::-webkit-scrollbar,
body:has(.panel-section-pedidos-pendientes)::-webkit-scrollbar {
    display: none;
}

.sin-pedidos-pendientes {
    font-size: 1.1em;
}

.panel-section-pedidos-pendientes {
    margin-top: 1em;
}

.orders-pending {
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.orders-pending__order {
    background: #ffffff;
    overflow: hidden;
}

.orders-pending__title {
    background: #3b2a24;
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.orders-pending__title .icon-arrow {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    stroke: #f0eae8;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.25s ease, stroke 0.25s ease;
}

.orders-pending__title:hover .icon-arrow {
    stroke: #d0c8c5;
}

.orders-pending__order.expanded .icon-arrow {
    stroke: #a89f9b;
    transform: rotate(180deg);
}

.orders-pending__header {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid #e6e6e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-pending__row {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    align-items: center;
}

.orders-pending__row:last-child {
    border-bottom: none;
}

.orders-pending__cell {
    font-size: 0.9rem;
    color: #333;
}

.orders-pending__cell--center {
    text-align: center;
}

.orders-pending .sub-row {
    padding: 0;
}

.orders-pending .expand-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.orders-pending__order.expanded .expand-wrapper {
    grid-template-rows: 1fr;
}

.orders-pending .sub-table-wrapper {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.orders-pending__order.expanded .sub-table-wrapper {
    opacity: 1;
    visibility: visible;
}


/* CONFIGURA TU CARTA - selección de local */

.section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.establishment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.establishment-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.establishment-row.is-selected {
    background-color: #d1cdcc;
}

.establishment-avatar {
    width: 50px;
    height: 50px;
    background-color: #3f2b23;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 30px;
    flex-shrink: 0;
}

.establishment-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #000;
    width: 25%;
    padding-right: 15px;
}

.establishment-address {
    font-size: 0.95rem;
    color: #555;
    flex-grow: 1;
}

.establishment-row.is-selected .btn-select {
    background-color: #F5A119;
}

.actions-container {
    display: flex;
    justify-content: center;
}

#error-message+.actions-container {
    margin-top: 30px;
}

.panel-section-aspecto-carta .actions-container {
    align-items: center;
    gap: 15px;
}

.menu-type~.actions-container {
    gap: 20px;
}

.copias-content .actions-container {
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.error-validation {
    color: #b32424;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
}

.copias-error {
    color: #b32424;
    background: #fdecea;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    margin-top: 8px;
}

.establishment-list~.error-validation {
    margin-top: 15px;
}


/* ASPECTO DE LA CARTA */

.panel-section-aspecto-carta {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.config-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #2b1e19;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #666;
}

.config-block .description {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.4;
}

.options-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.option-item {
    position: relative;
    cursor: pointer;
}

.option-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-item img {
    width: 13em;
    height: 16em;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: #fcfbfa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.option-item input[type="radio"]:checked+img {
    border-color: #d9852c;
    box-shadow: 0 4px 12px rgba(217, 133, 44, 0.3);
    transform: translateY(-2px);
}

.logo-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#imageCanvas {
    width: 200px;
    height: 200px;
    border: 1px solid #3f2b23;
    border-radius: 6px;
    background: #c9c4c3;
    padding: 20px;
    object-fit: cover;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.file-upload-btn {
    background-color: #d9852c;
    color: #ffffff;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.file-upload-btn:hover {
    background-color: #c27221;
}

.file-upload-btn input[type="file"] {
    display: none;
}

.price-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.price-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.price-card .img-wrapper {
    padding: 10px;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.price-card img {
    width: 180px;
    height: auto;
    display: block;
}

.price-card p {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #444;
}

.price-card input[type="radio"]:checked+.img-wrapper {
    background-color: #dbd6d4;
}

.btn-secondary {
    padding: 12px 40px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, color 0.2s;
    background-color: #e0e0e0;
    color: #555;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
    color: #333;
}

.error-msg {
    color: #b32424;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    font-size: 0.95rem;
    display: none;
}

.config-block.error {
    border: 2px solid #b32424;
    border-radius: 8px;
    padding: 10px;
    animation: shake 0.2s linear 2;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}

.options-grid--disenos {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.diseno-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 15%;
}

.diseno-item.is-selected {
    border-color: #d9852c;
    background: rgba(217, 133, 44, 0.07);
}

.diseno-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

.diseno-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.88rem;
    border: 1px solid rgba(63, 43, 35, 0.35);
    background: #fff;
    color: #1f1612;
    outline: none;
}

.btn-ver-ejemplo {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

/* Modal — compartido por aspecto-carta y configurador-carta */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 22, 18, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 24px 12px;
    overflow-y: auto;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-box {
    background: #f3eeeb;
    width: 100%;
    max-width: 800px; /*antes 700*/
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    margin: auto;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(63, 43, 35, .25);
}

.modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1f1612;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    color: #5c493d;
    padding: 4px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(63, 43, 35, .18);
    flex-wrap: wrap;
}

.btn-modal-discard {
    padding: 12px 24px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    border: 1px solid rgba(63, 43, 35, .35);
    background: #fff;
    color: #3f2b23;
    cursor: pointer;
}

.btn-modal-discard:hover {
    background: rgba(63, 43, 35, .06);
}


/* Modal de selección de promoción (promociones-detail.php) */
.promo-modal-box {
    max-width: 640px;
}

.promo-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(63, 43, 35, .25);
}

.promo-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1f1612;
}

.promo-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.promo-modal-availability {
    font-size: .85rem;
    font-weight: 700;
    color: #b45309;
    margin: 0 0 8px;
}

.promo-modal-notes {
    font-size: .85rem;
    color: #5c493d;
    background: rgba(245, 161, 25, .12);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 14px;
}

.promo-modal-group {
    margin-bottom: 16px;
}

.promo-modal-group__label {
    margin: 0 0 8px;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #3f2b23;
}

.promo-modal-group__products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-modal-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.promo-modal-product__image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(63, 43, 35, .12);
    flex-shrink: 0;
}

.promo-modal-product__name {
    flex: 1;
    font-size: .92rem;
    color: #1f1f1f;
    text-align: left;
}

.promo-modal-product__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.promo-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(63, 43, 35, .35);
    background: #fff;
    color: #3f2b23;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.promo-qty-btn:hover {
    background: rgba(63, 43, 35, .06);
}

.promo-qty-input {
    width: 46px;
    text-align: center;
    border: 1px solid rgba(63, 43, 35, .35);
    border-radius: 6px;
    padding: 4px;
    font-size: .9rem;
}

.promo-modal-progress {
    font-size: .85rem;
    font-weight: 700;
    color: #3f2b23;
    margin: 6px 0 14px;
}

.promo-modal-gifts {
    background: rgba(63, 43, 35, .05);
    border-radius: 10px;
    padding: 12px 14px;
}

.promo-modal-gifts h4 {
    margin: 0 0 8px;
    font-size: .85rem;
    text-transform: uppercase;
    color: #3f2b23;
}

.promo-modal-gifts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.promo-modal-gifts li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: #1f1f1f;
}

.promo-modal-gifts img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.promo-modal-discount {
    margin: 8px 0 0;
    font-size: .85rem;
    font-weight: 700;
    color: #b45309;
}

.promo-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(63, 43, 35, .18);
}

#promo-modal-confirm:disabled {
    opacity: .5;
    cursor: not-allowed;
}


/* TIPO DE CARTA */

.btn-select {
    cursor: pointer;
    border: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-color: #F5A119;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    text-transform: uppercase;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bc-2-lighter-40, #f39c12), var(--bc-2-darker-40, #e67e22));
    z-index: -1;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}

.btn-select:hover::before {
    opacity: 0;
}

.menu-type {
    display: flex;
    gap: 50px;
    margin: 0 auto 10px auto;
    justify-items: center;
    align-items: normal;
    justify-content: center;
}

.menu-card {
    width: 20%;
    height: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-card.is-selected {
    background-color: rgba(209, 205, 204, 0.3);
    border-color: #cc8123;
}

.menu-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.menu-card-icon {
    margin-bottom: 25px;
    width: 70%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card-icon img {
    max-height: 100%;
    object-fit: contain;
}

.menu-card-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.5rem;
    min-height: 80px;
    margin-bottom: 20px;
}

.menu-status-info {
    margin-top: 5px;
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-status-info.found {
    color: #2d8659;
}

.menu-status-info.not-found {
    color: #b32424;
}

.menu-status-info--finalizada {
    color: #8a5a00;
    font-weight: 500;
    font-size: 0.85rem;
}

.menu-card-input-box {
    width: 100%;
    max-width: 260px;
}

.menu-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #999;
    background-color: #fff;
    font-size: 1rem;
    color: #333;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.menu-input:focus {
    border-color: #cc8123;
}

.menu-input:disabled {
    background-color: #f5f5f5;
    color: #999;
}


/* CONFIGURADOR DE CARTA */

.profile-box-cartas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.profile-box-cartas p {
    font-size: .95rem;
    line-height: 1.2rem;
    margin: 0 16px 10px;
}

.configurator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 0;
    align-items: start;
    margin-bottom: 40px;
}

.configurator-main {
    min-width: 0;
    background: #f3eeeb;
    border-right: 1px solid rgba(63, 43, 35, 0.18);
}

.menu-config {
    background: #f3eeeb;
}

.menu-config__list,
.menu-config__items {
    width: 100%;
}

.block__list {
    border-bottom: 1px solid rgba(63, 43, 35, 0.45);
    background: #f3eeeb;
}

.block__list-header {
    all: unset;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 26px 18px;
    cursor: pointer;
}

.block--header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.button--drop_block {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #2f211a;
}

.button--drop_block i {
    transition: transform .2s ease;
}

.button--drop_block.is-collapsed i {
    transform: rotate(-90deg);
}

.block_name {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #1f1612;
}

.block__description {
    margin: 3px 0 0;
    font-size: .9rem;
    color: #5f4a3d;
}

.elementContainer {
    overflow: hidden;
    max-height: 5000px;
    padding: 0 26px 10px;
    opacity: 1;
    transition: max-height .28s ease, opacity .2s ease, padding .2s ease;
}

.elementContainer.closed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(63, 43, 35, .25);
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.btn-cat-action {
    background: none;
    border: 1px solid rgba(63, 43, 35, .35);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    color: #3f2b23;
    transition: background .18s, color .18s;
    white-space: nowrap;
}

.btn-cat-action:hover {
    background: rgba(63, 43, 35, .08);
}

.btn-cat-action.show-action {
    border-color: #2e7d32;
    color: #2e7d32;
}

.btn-cat-action.show-action:hover {
    background: rgba(46, 125, 50, .08);
}

.btn-cat-action.hide-action {
    border-color: #c62828;
    color: #c62828;
}

.btn-cat-action.hide-action:hover {
    background: rgba(198, 40, 40, .08);
}

.menu-config__item {
    border-bottom: 1px solid rgba(63, 43, 35, .18);
    padding: 12px 0;
}

.element__container {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) repeat(3, auto);
    gap: 0 6px;
    align-items: center;
}

.product-checkbox {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #3f2b23;
}

.element__data {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.data__img {
    width: 7em;
    height: 7em;
    overflow: hidden;
    border-radius: 12px;
    background: #e5ded9;
    border: 1px solid rgba(63, 43, 35, .12);
    flex: 0 0 auto;
}

.element__price {
    display: inline-block;
    font-weight: 500;
    color: #e59d15;
    font-size: 0.95rem;
    white-space: nowrap;
}

.element__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.element__info {
    min-width: 0;
}

.element__title {
    margin: 0;
    font-weight: 700;
    font-size: .98rem;
    color: #1f1612;
}

.description,
.receta_producto {
    margin: 4px 0 0;
    font-size: .9rem;
    color: #5c493d;
}

.receta_producto a {
    color: inherit;
    text-decoration: underline;
}

.btn-visibility {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 8px;
    color: green;
    opacity: 0.9;
    transition: opacity 0.2s, color 0.2s;
    align-self: center;
    flex-shrink: 0;
}

.btn-edit {
    color: #1565c0;
}

.btn-visibility.is-hidden {
    opacity: 0.35;
    color: red;
}

.btn-visibility:hover {
    opacity: 1;
}

/* Alérgenos */
.allergens-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.allergen-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(63, 43, 35, .08);
    border: 1px solid rgba(63, 43, 35, .2);
    border-radius: 12px;
    padding: 2px 8px 2px 4px;
    font-size: .75rem;
    color: #3f2b23;
    white-space: nowrap;
}

.allergen-tag img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .configurator-layout {
        grid-template-columns: 1fr;
    }

    .configurator-main {
        border-right: 0;
        border-bottom: 1px solid rgba(63, 43, 35, 0.18);
    }
}

.configurator-aside {
    width: 100%;
    max-width: 390px;
    padding-left: 16px;
    box-sizing: border-box;
}

.aside-card {
    background: #f3eeeb;
    border: 1px solid rgba(63, 43, 35, 0.18);
    box-sizing: border-box;
}

.aside-card__header {
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(63, 43, 35, 0.35);
}

.aside-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1f1612;
    letter-spacing: .02em;
}

.block-form {
    padding: 12px 18px 0;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: .95rem;
    font-weight: 700;
    color: #4d3b30;
}

.filter-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(63, 43, 35, 0.35);
    background: #fff;
    color: #1f1612;
    padding: 12px 14px;
    font-size: .95rem;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.filter-input:focus {
    border-color: rgba(63, 43, 35, 0.7);
    box-shadow: 0 0 0 2px rgba(63, 43, 35, 0.08);
}

.filter-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 18px;
    margin-bottom: 10px;
}

.button--default.button--add_block {
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    background: #e59d15;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.button--default.button--add_block:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

/* Pestañas del aside */
.aside-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid rgba(63, 43, 35, 0.35);
}

.aside-tab {
    all: unset;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 10px;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #7a6055;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .18s, border-color .18s;
}

.aside-tab:hover {
    color: #3f2b23;
}

.aside-tab--active {
    color: #1f1612;
    border-bottom-color: #e59d15;
}

.aside-panel--hidden {
    display: none;
}

.aside-section {
    padding: 16px 18px 0;
    border-bottom: 1px solid rgba(63, 43, 35, 0.18);
    padding-bottom: 16px;
}

.aside-section__title {
    margin: 0 0 12px;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #7a6055;
}

/* Preview imagen producto */
.product-img-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0 4px;
}

.product-img-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: #e5ded9;
    border: 1px solid rgba(63, 43, 35, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 2.5rem;
    color: #b0a098;
}

.product-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-hint {
    margin: 0;
    font-size: .78rem;
    color: #7a6055;
    text-align: center;
    line-height: 1.4;
}

/* Selector de alérgenos */
.allergen-selector {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
}

.allergen-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s;
}

.allergen-option:hover .allergen-option__inner {
    background: rgba(63, 43, 35, .06);
}

.allergen-option input[type="checkbox"] {
    display: none;
}

.allergen-option__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: .9rem;
    color: #3f2b23;
    transition: background .15s;
}

.allergen-option input:checked+.allergen-option__inner {
    background: rgba(229, 157, 21, .15);
    font-weight: 700;
}

.allergen-option__inner img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.modal-body {
    padding: 4px 4px 0;
    overflow-y: auto;
}

.btn-modal-save {
    padding: 12px 24px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    border: none;
    background: #e59d15;
    color: #fff;
    cursor: pointer;
}

.btn-modal-save:hover {
    filter: brightness(0.97);
}

.btn-modal-danger {
    padding: 12px 24px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
    border: none;
    background: #c0392b;
    color: #fff;
    cursor: pointer;
}

.btn-modal-danger:hover {
    filter: brightness(0.92);
}

.modal-confirm-message {
    padding: 20px;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .modal-overlay {
        align-content: center;
        padding: 0;
        flex-wrap: wrap;
    }

    .modal-box {
        position: relative;
        top: -1.3rem;
        max-width: 100%;
        border-radius: 14px;
        padding: auto;
        margin: 0;
    }
}

.ver-carta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 0;
    margin-right: 4em;
    height: 7em;
    width: 16em;
    grid-row: span 2 / span 2;
    grid-column-start: 2;
    grid-row-start: 1;
    justify-self: self-end;

    max-width: 360px;
    text-align: center;
}

.qr-modal-img-wrap {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.qr-modal-img-wrap img {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    border: 1px solid rgba(63, 43, 35, .18);
    background: #fff;
    padding: 10px;
}

.qr-modal-url {
    font-size: .85rem;
    color: #5c493d;
    word-break: break-all;
    padding: 0 18px 16px;
    text-align: center;
}

.btn-view-qr {
    gap: 3px;
    width: 100%;
    height: 40%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* copias */

.copias-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.copias-input {
    width: 120px;
    padding: 12px 14px;
    font-size: 1.2rem;
    text-align: center;
    border: 1px solid rgba(63, 43, 35, 0.35);
    background: #fff;
    color: #1f1612;
    outline: none;
    border-radius: 4px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.copias-input:focus {
    border-color: rgba(63, 43, 35, 0.7);
    box-shadow: 0 0 0 2px rgba(63, 43, 35, 0.08);
}

/* Movil carta */
/* ============================================================
   RESPONSIVE - COMÚN A VARIAS VISTAS
   (botones de acción: ATRÁS / SIGUIENTE / FINALIZAR, etc.)
   ============================================================ */
@media (max-width: 600px) {
    .actions-container {
        width: 100%;
        gap: 12px;
    }

    .copias-content .actions-container {
        flex-direction: column;
    }

    .actions-container>button {
        width: 100%;
    }
}


/* ============================================================
   RESPONSIVE - SELECCIÓN DE LOCAL (configura tu carta)
   ============================================================ */
@media (max-width: 768px) {
    .establishment-row {
        flex-wrap: wrap;
        padding: 15px;
        border: 1px solid rgba(63, 43, 35, 0.15);
        border-radius: 8px;
        row-gap: 10px;
    }

    .establishment-avatar {
        width: 40px;
        height: 40px;
        margin-right: 12px;
        font-size: 1rem;
    }

    .establishment-name {
        width: calc(100% - 52px);
        padding-right: 0;
        font-size: 0.9rem;
    }

    .establishment-address {
        width: 100%;
        order: 3;
        font-size: 0.88rem;
        margin-top: 4px;
    }

    .btn-select {
        order: 4;
        width: 100%;
        text-align: center;
        margin-top: 8px;
        padding: 12px 20px;
    }

    .section-heading {
        font-size: 0.85rem;
        padding-bottom: 6px;
        margin-bottom: 0;
    }

    .menu-type {
        flex-direction: column;
        gap: 20px;
    }

}

@media (max-width: 480px) {
    .establishment-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .establishment-name {
        font-size: 0.85rem;
    }
}


/* ============================================================
   RESPONSIVE - TIPO DE CARTA
   ============================================================ */
@media (max-width: 768px) {
    .menu-type {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .menu-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        padding: 20px;
    }

    .menu-card-icon {
        width: 50%;
        height: auto;
        margin-bottom: 18px;
    }

    .menu-card-description {
        min-height: auto;
    }

}

@media (max-width: 480px) {
    .menu-card-title {
        font-size: 1.1rem;
    }
}


/* ============================================================
   RESPONSIVE - CONFIGURADOR DE CARTA
   ============================================================ */
@media (max-width: 1100px) {
    .configurator-aside {
        max-width: 100%;
        padding-left: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    /* Cabecera / bienvenida */
    .profile-box-cartas {
        grid-template-columns: 1fr;
    }

    .ver-carta {
        grid-column-start: 1;
        grid-row-start: auto;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-right: 0;
        flex-direction: column;
    }

    .btn-view-qr {
        height: 3rem;
        width: 100%;
    }

    /* Categorías */
    .block__list-header {
        padding: 16px 16px 14px;
        gap: 10px;
    }

    .elementContainer {
        padding: 0 16px 10px;
    }

    .category-actions {
        gap: 6px;
    }

    .btn-cat-action {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* Productos: pasamos el grid a flex para que se reorganice solo */
    .element__container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 6px;
    }

    .product-checkbox {
        flex: 0 0 auto;
    }

    .element__data {
        flex: 1 1 220px;
        min-width: 0;
        gap: 10px;
    }

    .data__img {
        width: 5.5em;
        height: 5.5em;
    }

    .btn-visibility {
        flex: 0 0 auto;
        font-size: 1.1rem;
        padding: 0 6px;
    }

    /* Aside */
    .aside-tabs {
        position: sticky;
        top: 0;
        background: #f3eeeb;
        z-index: 2;
    }

    .filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .data__img {
        width: 4.5em;
        height: 4.5em;
    }

    .element__title {
        font-size: 0.9rem;
    }

    .description,
    .receta_producto {
        font-size: 0.82rem;
    }
}


/* ============================================================
   RESPONSIVE - COPIAS
   ============================================================ */
@media (max-width: 480px) {

    #qr-wrap img,
    .qr-modal-img-wrap img {
        width: 70vw !important;
        height: 70vw !important;
        max-width: 220px;
        max-height: 220px;
    }

    .copias-input {
        width: 100px;
        font-size: 1.1rem;
    }
}


/* ============================================================
   RESPONSIVE - FINAL
   (vista ya simple, sin necesidad de cambios estructurales)
   ============================================================ */


/* ============================================================
   RESPONSIVE - ASPECTO DE LA CARTA
   ============================================================ */
@media (max-width: 768px) {
    .config-block h3 {
        font-size: 1rem;
    }

    .config-block .description {
        margin-bottom: 16px;
    }

    /* Fondos (carta digital) */
    .options-grid {
        gap: 14px;
    }

    .option-item img {
        width: 9em;
        height: 11em;
    }

    /* Diseños (carta física) */

    .diseno-item {
        width: 100%;
    }

    /* Logo */
    #imageCanvas {
        width: 160px;
        height: 160px;
        padding: 12px;
    }

    /* Precio */
    .price-options {
        gap: 20px;
    }

    .price-card img {
        width: 130px;
    }
}

@media (max-width: 480px) {
    .option-item img {
        width: 40vw;
        height: 48vw;
    }

    .price-options {
        gap: 10px;
    }
}


/* propuesta-personalizada */

.main-propuesta,
.panel-rcp {
    --brown: #3f2b23;
    --amber: #e8a020;
    --amber-light: #f5e0b0;
    --text: #222;
    --text-muted: #555;
    --border: #d0c8c0;
    --white: #fff;
    --error: #c0392b;
}

[hidden] {
    display: none !important;
}

.item {
    padding: 32px 64px 48px;
}

.item h1 {
    color: var(--brown);
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1em;
    margin: 0 0 20px;
}

.item>.content>.text>p {
    font-style: italic;
    color: var(--text);
    font-size: 1.5rem;
    max-width: 45%;
    margin: 0 0 28px;
}

.button-block a {
    display: block;
    margin: -12px -24px;
    padding: 12px 24px;
    text-decoration: none;
    color: #fff;
}

.block-text-image>.content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0 40px;
}

.content--item--wide .image img {
    width: 100%;
    max-width: 500px;
    display: block;
}

.content--item--wide .text h3 {
    font-size: 1.44rem;
    color: var(--brown);
    margin: 50px 0 6px;
    line-height: 2.5rem;
    background: var(--amber);
    padding: 6px 34px;
    border-radius: 10px;
    font-weight: 800;
    width: fit-content;
}

.content--item--wide .text {
    padding-left: 64px;
}

.content--item--wide .paragraphs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin: 20px 0 0 16px;
}

.content--item--wide .paragraphs p {
    font-size: 1.1rem;
    line-height: 1.19rem;
    margin: 0;
}

.decoration-image {
    display: none;
}

.content--item--narrow {
    display: flex;
    flex-direction: column-reverse;
    gap: 50px;
    justify-content: flex-end
}

.content--item--narrow .image img {
    width: 100%;
    border-radius: 50% 50% 40% 50% / 50% 50% 40% 50%;
    object-fit: cover;
    aspect-ratio: 1;
}

.content--item--narrow .image-hoja {
    align-self: center;
}

.content--item--narrow .image-hoja img {
    width: auto;
    border-radius: 0;
}

.content--item--narrow .text h3 {
    font-size: 1.8rem;
    color: var(--brown);
    margin: 0 0 6px;
    line-height: 1;
    background: var(--amber);
    padding: 6px 34px;
    border-radius: 10px;
}

.content--item--narrow .text h3.quote {
    padding: 0;
    width: 122px;
    height: 52px;
    display: flex;
    justify-content: center;
}

.content--item--narrow .text h3.quote .quoted {
    padding: 5px;
    font-size: 100px;
}

.content--item--narrow .text h3:not(.quote) {
    font-size: 1.44rem;
    font-weight: 800;
    color: var(--brown);
    line-height: 2.5rem;
    margin: 0;
}

/* FORMULARIO */
.custom-recommendations-form>.content>.recommendation>.text {
    text-align: center;
    padding-bottom: 48px;
}

.custom-recommendations-form h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brown);
    line-height: 1.15;
    margin: 0 0 16px;
}

.custom-recommendations-form>.content>.recommendation>.text p {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.13rem;
    max-width: 560px;
    line-height: 1;
    margin: 0 auto;
}

.help-text,
.help-error {
    color: var(--error);
    margin: 0 0 12px;
    justify-self: center;
}

/* Formulario con selects */
.question-wrapper--0 form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 32px;
}

.question-wrapper--0 .question__buttons,
.question-wrapper--0 .help-error {
    grid-column: 1 / -1;
}


.form-block {
    padding: 22px 0 10px;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 16px;
}

.form-block label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
}

.form-block select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font-size: 0.92rem;
    color: var(--text);
    cursor: pointer;
    padding: 2px 0;
}

/* Preguntaa con opciones */
.question-wrapper--1,
.question-wrapper--2,
.question-wrapper--3 {
    display: flex;
    align-items: center;
}

.question {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    padding-right: 24px;
}

.question__image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    margin-bottom: 14px;
}

.question h3 {
    background: var(--amber);
    color: var(--brown);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0 0 12px;
}

.question>p {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.question .question__buttons {
    margin-top: 24px;
}

.options {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.options-list {
    display: flex;
    border-left: 1.5px solid var(--border);
}

.option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 16px 24px;
    text-align: center;
    background: var(--white);
    border-right: 1.5px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}

.option:last-child {
    border-right: none;
}

.option img {
    width: auto;
    height: 150px;
    object-fit: contain;
}

.option>p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brown);
    line-height: 1.35;
    margin: 0;
}

.option:hover,
.option.selected {
    background: var(--amber-light);
}

.question__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Recomendación */

.main-recomendacion,
.panel-rcp {
    --brown: #3f2b23;
    --amber: #e8a020;
    --amber-light: #f5e0b0;
    --text: #222;
    --text-muted: #555;
    --border: #d0c8c0;
    --white: #fff;
    --bg-light: #f9f6f2;
}

.rec-hero {
    padding: 56px 64px 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: start;
    position: relative;
}

.rec-hero__text h1 {
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--brown);
    line-height: 1.05;
    margin: 0 0 24px;
}

.rec-hero__text .rec-hero__lead {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 28px;
    max-width: 480px;
}

.rec-hero__disclaimer {
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 620px;
    padding: 0 0 0 24px;
    border-left: 3px solid var(--amber);
}

.rec-hero__disclaimer a {
    color: var(--brown);
    font-weight: 700;
}

.rec-hero__img {
    width: 180px;
    flex-shrink: 0;
}

.rec-hero__img img {
    display: block;
    top: calc(16px*8);
    z-index: 2;
    right: 0;
    position: absolute;
}

.rec-loading,
.rec-error {
    padding: 64px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.rec-error {
    color: #c0392b;
}

.rec-body {
    padding: 0 64px 64px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 48px;
    align-items: start;
}

.rec-choice {
    position: sticky;
    top: 24px;
}

.rec-choice__title {
    background: var(--brown);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 0 0 0;
    text-align: center;
}

.rec-choice__item {
    border: 1.5px solid var(--border);
    border-top: none;
    padding: 14px 10px;
    text-align: center;
    background: var(--white);
}

.rec-choice__item:last-child {
    border-radius: 0 0 4px 4px;
}

.rec-choice__item-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rec-choice__number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rec-choice__item-header p {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown);
    margin: 0;
}

.rec-choice__item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
}

.rec-choice__item>p {
    font-size: 0.72rem;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.rec-results {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.rec-row {
    display: grid;
    gap: 40px;
    align-items: center;
}

.rec-row--cafe {
    grid-template-columns: 1fr 1fr;
}

.rec-row--maquina {
    grid-template-columns: 1fr 1fr;
}

.rec-row--bebidas {
    grid-template-columns: 1fr 1fr;
}

.rec-row--asesoramiento {
    grid-template-columns: 1fr 1fr;
}

.rec-row__img img {
    width: 100%;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.rec-row--maquina .rec-row__img img {
    border-radius: 6px;
}

.rec-row--asesoramiento .rec-row__img img {
    aspect-ratio: 4/5;
    object-fit: contain;
}

.rec-row__img:empty {
    display: none;
}

.rec-row__data h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brown);
    margin: 0 0 6px;
}

.rec-row__data .rec-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 14px;
}

.rec-row__data p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 10px;
}

.rec-features {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.rec-features li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
    padding: 6px 0 6px 20px;
    position: relative;
}

.rec-features li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--amber);
    font-size: 1.1rem;
    line-height: 1.4;
}

.rec-row--maquina .rec-row__data {
    order: 1;
}

.rec-row--maquina .rec-row__img,
.rec-row--asesoramiento .rec-row__img {
    overflow: hidden;
    max-height: 360px;
    order: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rec-row--asesoramiento .rec-row__data {
    order: 1;
}

.rec-cta {
    padding: 56px 64px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.rec-cta__deco {
    position: absolute;
    width: 140px;
    opacity: 0.85;
    pointer-events: none;
}

.rec-cta__deco--tl {
    top: -10px;
    left: -20px;
    transform: rotate(-15deg);
}

.rec-cta__deco--tr {
    top: -10px;
    right: -10px;
    transform: rotate(20deg);
}

.rec-cta__deco--bl {
    bottom: -10px;
    left: 20px;
    transform: rotate(10deg);
}

.rec-cta__deco--br {
    bottom: -10px;
    right: -10px;
    transform: rotate(-10deg);
}

.rec-cta h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brown);
    margin: 0;
    position: relative;
    z-index: 1;
}

.rec-cta__options {
    display: flex;
    gap: 48px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.rec-cta__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 200px;
}

.rec-cta__option p {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brown);
    line-height: 1.35;
    margin: 0;
    text-align: center;
}

.rec-cta__btn {
    display: inline-block;
    background: var(--amber);
    color: var(--white);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.rec-cta__btn:hover {
    background: var(--brown);
}

/* FORMULARIO DE CONTACTO */
.rec-contact {
    padding: 64px;
    background: var(--white);
    scroll-margin-top: 32px;
}

.rec-contact__header {
    margin-bottom: 40px;
}

.rec-contact__header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brown);
    margin: 0 0 8px;
}

.rec-contact__header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.rec-contact__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
}

/* El textarea de comentario ocupa toda la columna derecha verticalmente */
.rec-contact__col-left,
.rec-contact__col-right {
    display: flex;
    flex-direction: column;
}

.rec-contact__col-right .cf-block--textarea {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rec-contact__col-right .cf-block--textarea textarea {
    flex: 1;
    min-height: 220px;
    resize: vertical;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.rec-contact__footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.cf-block {
    padding: 20px 0 10px;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 4px;
}

.cf-block label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 8px;
}

.cf-block input[type="text"],
.cf-block input[type="email"],
.cf-block input[type="tel"],
.cf-block select,
.cf-block textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.92rem;
    color: var(--text);
    padding: 2px 0;
    font-family: inherit;
}

.cf-block select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.cf-block textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.cf-checkbox {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cf-checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--amber);
    flex-shrink: 0;
    cursor: pointer;
}

.cf-checkbox a {
    color: var(--brown);
    font-weight: 700;
    text-decoration: none;
}

.cf-checkbox a:hover {
    text-decoration: underline;
}

.cf-submit {
    background: var(--amber);
    color: var(--white);
    border: none;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.cf-submit:hover {
    background: var(--brown);
}

/* PROTECCIÓN DE DATOS */
.rec-legal {
    margin-top: 35px;
    border-top: 1.5px solid var(--border);
    padding-top: 32px;
}

.rec-legal__title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    text-align: center;
    margin: 0 0 24px;
}

.rec-legal__body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    /* border: 1.5px solid var(--border);
         border-radius: 4px; */
    overflow: hidden;
}

.rec-legal__tabs {
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
}

.rec-legal__tab {
    padding: 12px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 1.5px solid var(--border);
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
}

.rec-legal__tab:last-child {
    border-bottom: none;
}

.rec-legal__tab:hover {
    background: var(--bg-light);
    color: var(--brown);
}

.rec-legal__tab--active {
    background: var(--white);
    color: var(--brown);
    font-weight: 700;
    border-left: 3px solid var(--amber);
}

.rec-legal__items {
    padding: 20px 24px;
    min-height: 120px;
}

.rec-legal__item {
    display: none;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.rec-legal__item--active {
    display: block;
}

.rec-legal__item p {
    margin: 0 0 6px;
}

.rec-legal__item a {
    color: var(--brown);
    font-weight: 700;
}

/* ============================================================
   PÁGINAS LEGALES (Aviso legal / Privacidad / Cookies)
   ============================================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--bc-1);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content__updated {
    font-size: 0.8rem;
    color: var(--bc-1-lighter-40);
    margin: 0 0 24px;
}

.legal-content h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bc-1);
    margin: 36px 0 16px;
}

.legal-content h1:first-child {
    margin-top: 0;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bc-1);
    margin: 28px 0 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bc-2);
    margin: 20px 0 8px;
}

.legal-content p {
    margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content a {
    color: var(--bc-2);
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
}

.legal-content a:hover {
    color: var(--bc-1);
}

.legal-content strong {
    color: var(--bc-1);
}

.legal-content hr {
    border: none;
    border-top: 1px solid var(--bc-1-lighter-75);
    margin: 28px 0;
}

.legal-info-box {
    background: var(--bc-1-lighter-75);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 0 24px;
}

.legal-info-box p {
    margin: 0 0 6px;
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 8px 0 24px;
}

.legal-content table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.legal-content th,
.legal-content td {
    border: 1px solid var(--bc-1-lighter-75);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.legal-content th {
    background: var(--bc-1-lighter-75);
    color: var(--bc-1);
    font-weight: 700;
}

/* ============================================================
   RESPONSIVE - PROPUESTA PERSONALIZADA
   ============================================================ */
@media (max-width: 768px) {
    .main-propuesta .item {
        padding: 28px 20px 36px;
    }

    .main-propuesta .item h1 {
        font-size: 2.4rem;
    }

    .main-propuesta .item>.content>.text>p {
        max-width: 100%;
        font-size: 1.15rem;
    }

    /* Bloque texto + imagen (proveedores de café) */
    .block-text-image>.content {
        grid-template-columns: 1fr;
        gap: 32px 0;
    }

    .content--item--wide .text {
        padding-left: 0;
        margin-top: 20px;
    }

    .content--item--wide .text h3 {
        font-size: 1.15rem;
        line-height: 1.6rem;
        margin-top: 20px;
        padding: 6px 18px;
    }

    .content--item--wide .paragraphs {
        grid-template-columns: 1fr;
        gap: 16px 0;
        margin-left: 0;
    }

    .content--item--wide .paragraphs p {
        line-height: 1.45rem;
    }

    .content--item--narrow {
        gap: 24px;
    }

    .content--item--narrow .text h3:not(.quote) {
        font-size: 1.15rem;
        line-height: 1.6rem;
    }

    /* Formulario inicial (selects) */
    .question-wrapper--0 form {
        grid-template-columns: 1fr;
        grid-gap: 0;
    }

    .custom-recommendations-form h2 {
        font-size: 1.9rem;
    }

    .custom-recommendations-form>.content>.recommendation>.text p {
        max-width: 100%;
    }

    /* Preguntas con opciones (pasos 1, 2 y 3) */
    .question-wrapper--1,
    .question-wrapper--2,
    .question-wrapper--3 {
        flex-direction: column;
        align-items: stretch;
    }

    .question {
        flex: none;
        padding-right: 0;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .question .question__buttons {
        justify-content: center;
    }

    .options-list {
        flex-direction: column;
        border-left: none;
        border-top: 1.5px solid var(--border);
    }

    .option {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 14px 10px;
        border-right: none;
        border-bottom: 1.5px solid var(--border);
        gap: 14px;
    }

    .option:last-child {
        border-bottom: none;
    }

    .option img {
        height: 50px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .main-propuesta .item h1 {
        font-size: 1.9rem;
    }

}

@media (max-width: 340px) {
    .question__buttons {
        flex-direction: column;
    }

    .question__buttons>button {
        width: 100%;
    }
}


/* ============================================================
   RESPONSIVE - RECOMENDACIÓN
   ============================================================ */
@media (max-width: 900px) {

    .rec-hero {
        grid-template-columns: 1fr;
        padding: 36px 24px 24px;
    }

    .rec-hero__img {
        position: static;
        width: 110px;
        margin: 0 auto 20px;
    }

    .rec-hero__img img {
        position: static;
        width: 100%;
    }

    .rec-hero__text h1 {
        font-size: 2.4rem;
        text-align: center;
    }

    .rec-hero__lead {
        font-size: 1rem;
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .rec-hero__disclaimer {
        max-width: 100%;
    }

    /* Cuerpo de la recomendación */
    .rec-body {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 24px 0;
    }

    .rec-choice {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
    }

    .rec-choice__title {
        grid-column: 1 / -1;
    }

    .rec-choice__item {
        border-top: 1.5px solid var(--border);
    }

    .rec-choice__item:last-child {
        border-radius: 0;
    }

    .rec-results {
        gap: 36px;
    }

    .rec-row,
    .rec-row--cafe,
    .rec-row--maquina,
    .rec-row--bebidas,
    .rec-row--asesoramiento {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rec-row--maquina .rec-row__data,
    .rec-row--asesoramiento .rec-row__data {
        order: 2;
    }

    .rec-row--maquina .rec-row__img,
    .rec-row--asesoramiento .rec-row__img {
        order: 1;
        max-height: 240px;
        justify-content: center;
    }

    .rec-row__data h2 {
        font-size: 1.3rem;
    }

    /* CTA */
    .rec-cta {
        padding: 40px 24px;
    }

    .rec-cta h2 {
        font-size: 1.5rem;
    }

    .rec-cta__options {
        flex-direction: column;
        gap: 28px;
    }

    .rec-cta__deco {
        width: 90px;
    }

    /* Formulario de contacto */
    .rec-contact {
        padding: 40px 20px;
    }

    .rec-contact__header h2 {
        font-size: 1.4rem;
    }

    .rec-contact__form {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .rec-contact__col-right .cf-block--textarea textarea {
        min-height: 140px;
    }

    .rec-contact__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cf-submit {
        width: 100%;
    }

    /* Información de protección de datos */
    .rec-legal__body {
        /*grid-template-columns: 1fr;*/
        grid-template-columns: 1fr 2fr;
    }

    .rec-legal__tabs {
        flex-direction: row;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1.5px solid var(--border);
    }

    .rec-legal__tab {
        border-bottom: none;
        border-right: 1.5px solid var(--border);
        flex: 1 1 auto;
        text-align: center;
        font-size: 0.72rem;
        padding: 10px 8px;
    }

    .rec-legal__tab--active {
        border-left: none;
        border-bottom: 3px solid var(--amber);
    }

    .rec-legal__items {
        padding: 16px 4px;
    }
}

@media (max-width: 480px) {
    .rec-hero__text h1 {
        font-size: 1.9rem;
    }

    .rec-choice {
        grid-template-columns: 1fr;
    }
}



/* listado-contratos.php ACTUALIZACIÓN Y MODAL, esto hay que subirlo a la altura del resto de css de esa vista */

.modal-overlay-contratos {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay-contratos.active {
    display: flex;
}

.modal-contratos {
    background: #fff;
    border-radius: 8px;
    max-width: 90%;
}

.modal-contratos-header {
    background: #5a382b;
    color: #fff;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
}

.modal-contratos-header h2 {
    margin: 0;
    font-size: 18px;
}

.modal-contratos-body {
    padding: 20px;
}

.modal-contratos-body p {
    margin-bottom: 16px;
}

.modal-contratos-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-contratos-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}

.modal-contratos-firmantes-lista {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.modal-contratos-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #eee;
}

.modal-contratos-error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

/* RECUPERAR CONTRASEÑA */

.panel-rcp {
    position: relative;
    overflow: hidden;
}

.rcp-header {
    width: 100%;
    margin: 64px 13rem 128px;
}

.rcp-title {
    font-size: 3.75rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}

.rcp-subtitle {
    width: 60%;
    font-size: 1.56rem;
    font-style: italic;
    margin: 0;
}

.rcp-body {
    max-width: 700px;
    margin: 0 auto;
}

.rcp-question {
    font-size: 1.56rem;
    font-style: italic;
    font-weight: 400;
    color: #3f2b23;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.rcp-hint {
    font-size: 1rem;
    color: #3f2b23;
    margin: 0 0 2rem;
}

.contacto-link a {
    text-decoration: none;
    color: inherit;
}

.contacto-link a:hover {
    text-decoration: underline;
    color: inherit;

}

.rcp-form-row {
    height: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rcp-label {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 60px;
}

.rcp-input {
    flex: 1;
    height: 100%;
    border: none;
    border-radius: 4px;
    background: #fff;
    padding: 0 0.75rem;
    font-size: 1rem;
    outline: none;
}

.rcp-actions {
    display: flex;
    justify-content: flex-end;
}

.rcp-taza {
    position: absolute;
    pointer-events: none;
    max-width: 100%;
}

.rcp-taza--left {
    bottom: 32px;
    left: 32px;
}

.rcp-taza--right {
    top: 400px;
    right: 64px;
}

.rcp-form--grid .rcp-form-row {
    height: auto;
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rcp-form--grid .rcp-label {
    min-width: 0;
}

.rcp-form--grid .rcp-input {
    width: 100%;
    height: 2rem;
    box-sizing: border-box;
}

/* Mobile: label arriba, input abajo */
@media (max-width: 600px) {
    .rcp-form--grid .rcp-form-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

/* ============================================================
   RESPONSIVE - RECUPERAR CONTRASEÑA / TIPO ENVÍO / NUEVA CONTRASEÑA
   (vistas que comparten las clases .rcp-*)
   ============================================================ */
@media (max-width: 768px) {
    .rcp-header {
        margin: 36px 24px 60px;
    }

    .rcp-title {
        font-size: 2.2rem;
    }

    .rcp-subtitle {
        width: 100%;
        font-size: 1.1rem;
    }

    .rcp-body {
        max-width: 100%;
        padding: 0 24px;
    }

    .rcp-question {
        font-size: 1.2rem;
    }

    .rcp-hint {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    /* Formulario: label encima del input en vez de en línea */
    .rcp-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        margin-bottom: 1.2rem;
        height: auto;
    }

    .rcp-label {
        min-width: 0;
        white-space: normal;
    }

    .rcp-input {
        width: 100%;
        height: 34px;
        flex: auto;
    }

    .rcp-actions {
        justify-content: center;
    }

    .rcp-btn {
        width: 100%;
        text-align: center;
    }

    /* Tazas decorativas: las reducimos y las apartamos del contenido
       para que no se solapen con el formulario en pantallas estrechas */
    .rcp-taza {
        max-width: 90px;
        opacity: 0.6;
    }

    .rcp-taza--left {
        bottom: 10px;
        left: 10px;
    }

    .rcp-taza--right {
        top: auto;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .rcp-title {
        font-size: 1.8rem;
    }

    .rcp-subtitle {
        font-size: 1rem;
    }

    .rcp-taza {
        display: none;
    }
}

/* TU COMERCIAL */
.panel-comercial {
    --brand-dark: #F5A119;
    --brand-light: #E5DCD7;
    --brand-border: #FBCF7E;
    --brand-text: #7A4D04;

    --text-primary: #1a1a1a;
    --text-muted: #888;
    --surface-2: #ffffff;
    --border: rgba(0, 0, 0, 0.10);
    --radius: 8px;

}

.comercial-card {
    background: var(--surface-2);
    border: 0.5px solid var(--border);
    /* border-radius: 12px; */
    overflow: hidden;
}

.comercial-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 1.25rem 1.5rem;
    background: #E5DCD7;
}

.comercial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.comercial-header-info {
    flex: 1;
    min-width: 0;
}

.comercial-name {
    font-size: 18px;
    font-weight: 500;
    color: var(--brand-text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comercial-card-body {
    padding: 1.125rem 1.5rem;
}

.comercial-section-label {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.comercial-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0.7rem 0;
    border-bottom: 0.5px solid var(--border);
}

.comercial-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comercial-contact-row:first-of-type {
    padding-top: 0;
}

.comercial-row-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--brand-light);
    /*border: 0.5px solid var(--brand-border);*/
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-dark);
}

.comercial-row-icon img {
    width: 30px;
    height: 30px;
}

.comercial-row-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.comercial-row-content {
    flex: 1;
    min-width: 0;
}

.comercial-row-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.comercial-row-value {
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comercial-row-value.accent {
    color: var(--brand-text);
    font-weight: 500;
}

.comercial-row-action {
    color: var(--brand-dark);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.comercial-row-action:hover {
    color: var(--brand-text);
    background: var(--brand-light);
}

.comercial-row-action svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   AVISO DE COOKIES (banner + configuración avanzada)
   ============================================================ */
.cookie-consent-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    background: var(--bc-1);
    color: #fff;
    padding: var(--space-m) var(--space-l);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(120%);
    transition: transform 0.35s ease;
}

.cookie-consent-bar.is-visible {
    transform: translateY(0);
}

.cookie-consent-bar__text {
    flex: 1 1 420px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
}

.cookie-consent-bar__text a {
    color: var(--bc-2-lighter-40);
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
}

.cookie-consent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-s) var(--space-m);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cookie-consent-btn--accept {
    background: linear-gradient(45deg, var(--bc-2-lighter-40), var(--bc-2-darker-40));
    color: #fff;
}

.cookie-consent-btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.cookie-consent-btn--link {
    background: transparent;
    color: #fff;
    text-decoration: underline;
    padding-left: 0;
    padding-right: 0;
}

.cookie-consent-btn:hover {
    opacity: 0.8;
}

.carta-finalizada-bar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-m);
    background: var(--bc-1);
    color: #fff;
    padding: var(--space-s) var(--space-l);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.carta-finalizada-bar__text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.carta-finalizada-bar__text a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-m);
    background: rgba(0, 0, 0, 0.55);
}

.cookie-consent-modal.is-visible {
    display: flex;
}

.cookie-consent-modal__panel {
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: var(--space-l);
}

.cookie-consent-modal__panel h2 {
    margin: 0 0 var(--space-m);
    color: var(--bc-1);
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-consent-category {
    padding: var(--space-m) 0;
    border-top: 1px solid var(--bc-1-lighter-75);
}

.cookie-consent-category:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cookie-consent-category h3 {
    margin: 0 0 6px;
    color: var(--bc-1);
    font-size: 0.95rem;
    font-weight: 700;
}

.cookie-consent-category p {
    margin: 0;
    color: #555;
    font-size: 0.82rem;
    line-height: 1.55;
}

.cookie-consent-category__choice {
    display: flex;
    gap: var(--space-l);
    margin-top: var(--space-s);
    font-size: 0.85rem;
    color: var(--bc-1);
}

.cookie-consent-category__choice label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.cookie-consent-modal__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: var(--space-m);
    padding-top: var(--space-m);
    border-top: 1px solid var(--bc-1-lighter-75);
}

.cookie-consent-modal__footer .cookie-consent-btn--accept,
.cookie-consent-modal__footer .cookie-consent-btn--outline {
    color: var(--bc-1);
}

.cookie-consent-modal__footer .cookie-consent-btn--accept {
    color: #fff;
}

.cookie-consent-modal__footer .cookie-consent-btn--outline {
    border-color: var(--bc-1-lighter-40);
}

@media (max-width: 640px) {
    .cookie-consent-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-consent-bar__text {
        flex: none;
    }

    .cookie-consent-bar__actions {
        justify-content: flex-start;
    }
}