@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

body {
  font-family: 'Open Sans', sans-serif;
}

/* CSS Document */
body .configurador-wrapper {
  height: 100vh;
}

body.configurador-page {
    background: none !important;
    overflow: hidden;
}


/* -------- SALÓN -------- */

body.salon .configurador-visual {
  background-image: url("../img/salon_01.jpg");
}
body.salon.opcion01 .configurador-visual {
  background-image: url("../img/salon_01.jpg");
}
body.salon.opcion02 .configurador-visual {
  background-image: url("../img/salon_02.jpg");
}
body.salon.opcion03 .configurador-visual {
  background-image: url("../img/salon_03.jpg");
}

/* -------- COCINA -------- */

body.cocina .configurador-visual { background-image: url("../img/cocina_01_01.jpg"); }
body.cocina.opcion01_01 .configurador-visual { background-image: url("../img/cocina_01_01.jpg"); }
body.cocina.opcion01_02 .configurador-visual { background-image: url("../img/cocina_01_02.jpg"); }
body.cocina.opcion01_03 .configurador-visual { background-image: url("../img/cocina_01_03.jpg"); }
body.cocina.opcion02_01 .configurador-visual { background-image: url("../img/cocina_02_01.jpg"); }
body.cocina.opcion02_02 .configurador-visual { background-image: url("../img/cocina_02_02.jpg"); }
body.cocina.opcion02_03 .configurador-visual { background-image: url("../img/cocina_02_03.jpg"); }

body.cocina.abierta .configurador-visual { background-image: url("../img/cocina_abierta_01_01.jpg"); }
body.cocina.abierta.salon_opcion01.opcion01_01 .configurador-visual { background-image: url("../img/cocina_abierta_01_01.jpg"); }
body.cocina.abierta.salon_opcion02.opcion01_02 .configurador-visual { background-image: url("../img/cocina_abierta_02_01.jpg"); }
body.cocina.abierta.salon_opcion03.opcion01_03 .configurador-visual { background-image: url("../img/cocina_abierta_03_01.jpg"); }
body.cocina.abierta.salon_opcion01.opcion02_01 .configurador-visual { background-image: url("../img/cocina_abierta_01_02.jpg"); }
body.cocina.abierta.salon_opcion02.opcion02_02 .configurador-visual { background-image: url("../img/cocina_abierta_02_02.jpg"); }
body.cocina.abierta.salon_opcion03.opcion02_03 .configurador-visual { background-image: url("../img/cocina_abierta_03_02.jpg"); }

/* -------- BAÑO 1 -------- */

body.bano01 .configurador-visual { background-image: url("../img/bano01_01_01.jpg"); }
body.bano01.opcion01_01 .configurador-visual { background-image: url("../img/bano01_01_01.jpg"); }
body.bano01.opcion01_02 .configurador-visual { background-image: url("../img/bano01_01_02.jpg"); }
body.bano01.opcion02_01 .configurador-visual { background-image: url("../img/bano01_02_01.jpg"); }
body.bano01.opcion02_02 .configurador-visual { background-image: url("../img/bano01_02_02.jpg"); }
body.bano01.opcion03_01 .configurador-visual { background-image: url("../img/bano01_03_01.jpg"); }
body.bano01.opcion03_02 .configurador-visual { background-image: url("../img/bano01_03_02.jpg"); }

/* -------- BAÑO 2 -------- */

body.bano02 .configurador-visual { background-image: url("../img/bano02_01_01.jpg"); }
body.bano02.opcion01_01 .configurador-visual { background-image: url("../img/bano02_01_01.jpg"); }
body.bano02.opcion01_02 .configurador-visual { background-image: url("../img/bano02_01_02.jpg"); }
body.bano02.opcion02_01 .configurador-visual { background-image: url("../img/bano02_02_01.jpg"); }
body.bano02.opcion02_02 .configurador-visual { background-image: url("../img/bano02_02_02.jpg"); }
body.bano02.opcion03_01 .configurador-visual { background-image: url("../img/bano02_03_01.jpg"); }
body.bano02.opcion03_02 .configurador-visual { background-image: url("../img/bano02_03_02.jpg"); }



/* =============================
   LAYOUT NUEVO CONFIGURADOR
============================= */

body.configurador-page .configurador-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ZONA IMAGEN */
body.configurador-page .configurador-visual {
    flex: 1;
    min-width: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-color: #fff;
}

/* SIDEBAR */
body.configurador-page .configurador-panel {
    width: 340px;
    min-width: 340px;
    background: #f3f3f3;
    padding: 30px;
    overflow-y: auto;
    transition: transform .35s ease;
}

body.panel-cerrado .configurador-panel {
    transform: translateX(100%);
}

body.panel-cerrado .configurador-visual {
    flex: 1 1 100%;
}

body.configurador-page .configurador-panel .toggle-panel {
    position: absolute;
    left: -40px;
    top: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #8daeb5;
    color: white;
    border-radius: 6px 0 0 6px;
    cursor: pointer;
}

body.configurador-page .configurador-panel .configurador-panel {
    position: relative;
}



/* ---------- ESTANCIAS ---------- */

body.configurador-page a.estancia {
    display: block;
    font-weight: 600;
    color: #6b6b6b;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
    text-decoration: none;
    position: relative;
}

body.configurador-page a.estancia::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 18px;
    transition: transform .2s ease;
}

body.configurador-page a.estancia.active {
    color: #8daeb5;
}

body.configurador-page a.estancia.active::after {
    content: '−';
}

/* ---------- CONTENIDO ACORDEÓN ---------- */

body.configurador-page .panel-contenido {
    overflow: hidden;
    transition: all .3s ease;
}

/* ---------- OPCIONES CIRCULARES ---------- */

body.configurador-page .botones img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid transparent !important;
    transition: all .2s ease;
}

body.configurador-page .botones a.active img {
    border: 3px solid #4e757d !important;
    /*border: 3px solid #8daeb5 !important;*/
}

/* ---------- BOTÓN PRINCIPAL ---------- */

body.configurador-page .btn-guardar {
    display: block;
    width: 100%;
    background: #8daeb5;
    border: none;
    border-radius: 40px;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-align: center;
    transition: all .2s ease;
}

body.configurador-page .btn-guardar:hover {
    background: #7c9fa7;
}

/* ---------- BOTÓN VOLVER ---------- */

body.configurador-page .btn-volver {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #8daeb5;
    border-radius: 40px;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #8daeb5;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease;
}

body.configurador-page .btn-volver:hover {
    background: #8daeb5;
    color: white;
}

/* ---------- BOTÓN GUARDAR DESHABILITADO ---------- */

body.configurador-page .btn-guardar.is-disabled {
    background: #cfd8db;
    color: #ffffff;
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.75;
}

body.configurador-page .btn-guardar.is-disabled:hover {
    background: #cfd8db;
    color: #ffffff;
}

/* ---------- CAPA ROTATE ---------- */
.rotate-layer {
    display: none;
}

@media (max-width: 991px) and (orientation: portrait) {
    .configurador-wrapper {
        display: none;
    }

    .rotate-layer {
        display: flex;
        position: fixed;
        inset: 0;
        background: white;
        align-items: center;
        justify-content: center;
        text-align: center;
        z-index: 9999;
    }
}


/* =============================
   -- RESTYLING INDEX --
============================= */

.custom-container {
    max-width: 1180px;
    margin-top: 30px;
}

.custom-container .logo-container {
    margin-bottom: 50px;
}

.custom-container .main-logo {
    width: 200px;
}

/* =============================
   INPUTS HOME
============================= */

.custom-container .custom-input {
    border-radius: 50px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 41px;
    font-size: 13px;
    font-style: italic;
    color: #666;
    background: #fff;
}

.custom-container .custom-input:focus {
    border-color: #8daeb5;
    box-shadow: 0 0 0 0.15rem rgba(141, 174, 181, 0.25);
}

.custom-container .custom-input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: default;
}

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

.pdf-top-block {
    margin-top: 5px;
}

.pdf-fields-row {
    display: flex;
    align-items: center;
    gap: 42px;
    flex-wrap: wrap;
}

.pdf-fields-row-main {
    margin-bottom: 18px;
}

.pdf-fields-row-secondary {
    gap: 50px;
}

.pdf-field {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pdf-field-pedido {
    min-width: 260px;
}

.pdf-field-cliente {
    flex: 1 1 0;
    min-width: 520px;
}

.pdf-field-small {
    min-width: 145px;
}

.pdf-label {
    font-size: 16px;
    font-weight: 300;
    color: #777;
    margin: 0;
    white-space: nowrap;
}

.custom-container .pdf-input.custom-input {
    min-height: 41px;
    height: 41px;
    border-radius: 24px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    font-style: italic;
    color: #666;
}

.custom-container .pdf-input.custom-input[readonly] {
    background: #ddd;
}

.pdf-field-pedido .pdf-input {
    width: 170px;
    text-align: center;
}

.pdf-field-cliente .pdf-input {
    width: 100%;
    max-width: none;
    text-align: left;
    padding-left: 18px;
    padding-right: 18px;
}

.pdf-field-small .pdf-input {
    width: 85px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
}

/* =============================
   SEPARADORES Y TÍTULOS
============================= */

.custom-container .section-divider {
    margin: 30px 0;
    opacity: 0.2;
}

.custom-container .section-title {
    font-size: 22px;
    font-weight: 300;
    color: #555;
    margin-left: 0;
}

/* =============================
   TARJETAS DE OPCIONES
============================= */

.custom-container .option-card {
    margin-bottom: 10px;
}

.custom-container .custom-option {
    display: block;
    position: relative;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.custom-container .custom-option:hover {
    background-color: #f7f9fa;
}

.custom-container .custom-option input[type="radio"] {
    display: none;
}

.custom-container .radio-custom {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #8daeb5;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: #fff;
}

.custom-container .custom-option input[type="radio"]:checked + .radio-custom {
    background-color: #8daeb5;
}

.custom-container .option-img {
    max-width: 220px;
    margin: 10px auto;
    display: block;
}

.custom-container .option-text {
    font-size: 14px;
    font-weight: 300;
    margin-top: 10px;
    color: #666;
}

.custom-container .banos-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.custom-container .banos-wrapper .divider-vertical {
    width: 1px;
    height: 120px;
    background-color: rgba(0, 0, 0, 0.27);
}

/* =============================
   OPCIONES EN LÍNEA (PDF)
============================= */

.options-row {
    --bs-gutter-x: 70px;
}

.option-card-inline {
    margin-bottom: 18px;
}

.custom-container .custom-option-inline {
    padding: 12px 18px;
    border-radius: 12px;
}

.custom-container .custom-option-inline:hover {
    background-color: #f7f9fa;
}

.option-inline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 120px;
}

.option-inline-check {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 185px;
    position: relative;
}

.custom-container .custom-option-inline .radio-custom {
    position: relative;
    top: auto;
    left: auto;
    width: 28px;
    height: 28px;
    border: 1px solid #d8d8d8;
    background: #fff;
    flex: 0 0 28px;
}

.custom-container .custom-option-inline input[type="radio"]:checked + .radio-custom {
    background: #fff;
    border-color: #d8d8d8;
}

.custom-container .custom-option-inline input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    background: #8daeb5;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.option-text-inline {
    margin-top: 0;
    font-size: 14px;
    font-weight: 300;
    color: #666;
    text-align: left;
    line-height: 1.35;
}

.option-inline-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
}

.custom-container .option-img-inline {
    display: block;
    margin: 0;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 110px;
}

.custom-container .option-img-bath {
    max-width: 120px;
    max-height: 92px;
}

.banos-wrapper-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.banos-wrapper-inline .option-img-inline {
    max-width: 88px;
}

/* =============================
   ESTADO BLOQUEADO MODO PDF
============================= */

.custom-container .custom-option.option-locked {
    cursor: default;
    opacity: 0.95;
}

.custom-container .custom-option.option-locked:hover {
    background-color: transparent;
}

/* =============================
   BOTÓN
============================= */

.custom-container .btn-continue {
    background-color: #8daeb5;
    color: white;
    padding: 12px 60px;
    border-radius: 40px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.custom-container .btn-continue:hover {
    background-color: #7c9fa7;
    color: white;
}

/* =============================
   GENERAL
============================= */
p.nota {
    font-size: 11px;
}


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

@media (max-width: 1024px) {
    body.configurador-page .configurador-panel {
        width: 250px;
        min-width: 250px;
        background: #f3f3f3;
        padding: 30px;
        overflow-y: auto;
        transition: transform .35s ease;
    }

    body.configurador-page .botones img {
        width: 50px;
        height: 50px;
    }

    .custom-container {
        max-width: 920px;
    }

    .pdf-fields-row {
        gap: 20px;
    }

    .pdf-field-cliente {
        min-width: 100%;
    }

    .options-row {
        --bs-gutter-x: 24px;
    }
}

@media (max-width: 768px) {
    .custom-container .option-img {
        max-width: 160px;
    }

    .custom-container .radio-custom {
        left: 10px;
    }

    .custom-container .custom-input {
        font-size: 14px;
        padding: 12px 18px;
        min-height: 50px;
    }

    .custom-container .section-title {
        font-size: 22px;
        margin-left: 0;
        text-align: center;
    }

    .custom-container .logo-container {
        margin-bottom: 40px;
    }

    .pdf-field {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pdf-field-pedido,
    .pdf-field-cliente,
    .pdf-field-small {
        min-width: 100%;
    }

    .pdf-field-pedido .pdf-input,
    .pdf-field-cliente .pdf-input,
    .pdf-field-small .pdf-input {
        width: 100%;
        max-width: none;
    }

    .option-inline-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        min-height: auto;
    }

    .option-inline-image {
        min-width: auto;
        justify-content: flex-start;
        padding-left: 44px;
    }

    .custom-container .option-img-inline {
        max-width: 120px;
    }
}