/**
 * Estilos para el formulario de producto
 */

/* Estilos para la cabecera del formulario */
.formulario-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
    padding-top: var(--gap-md);
}

.formulario-header h1 {
    margin-bottom: var(--gap-xs);
    font-family: var(--ff-sans);
    font-weight: 500;
}

.formulario-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Estilos generales del formulario */
#producto-form {
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--ff-body);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Eliminar fondo y sombra específicamente de los pasos que deben ir sobre el fondo oscuro */
#form-page1,
#form-page2,
#form-page3,
#form-page4 {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* Mantener el estilo para los otros pasos */
.form-step:not(#form-page1):not(#form-page2):not(#form-page3):not(#form-page4):not(#form-page5):not(#form-page6) {
    padding: var(--gap-md);
    background-color: var(--color-white);
    border-radius: 8px;
    margin-bottom: var(--gap-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Opciones de selección */
.producto-option,
.diseno-option,
.cantidad-option,
.papel-option,
.tintas-option,
.terminacion-option {
    margin: var(--gap-xs) 0;
    padding: var(--gap-sm);
    background-color: var(--color-white);
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.producto-option:hover,
.diseno-option:hover,
.cantidad-option:hover,
.papel-option:hover,
.tintas-option:hover,
.terminacion-option:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: var(--color-orange);
}

.producto-option input,
.diseno-option input,
.cantidad-option input,
.papel-option input,
.tintas-option input,
.terminacion-option input {
    margin-right: var(--gap-xs);
}

.producto-option label,
.diseno-option label,
.cantidad-option label,
.papel-option label,
.tintas-option label,
.terminacion-option label {
    display: block;
    cursor: pointer;
    font-size: var(--fsz-base);
    font-weight: 500;
    margin: 0;
}

/* Secciones y headers */
.form-step h2 {
    margin-top: 0;
    margin-bottom: var(--gap-md);
    font-size: var(--fsz-xl);
    color: var(--color-black);
    text-align: center;
    font-family: var(--ff-sans);
    font-weight: 500;
}

.tintas-section,
.terminaciones-section {
    margin-bottom: var(--gap-md);
}

.tintas-section h3,
.terminaciones-section h3 {
    margin-bottom: var(--gap-sm);
    font-size: var(--fsz-md);
    color: var(--gray-50);
    font-family: var(--ff-sans);
    font-weight: 500;
}

/* Sección de archivo y resumen */
#fileUploadContainer {
    margin: var(--gap-md) 0;
    padding: var(--gap-sm);
    border: 2px dashed var(--gray-light);
    border-radius: 5px;
    text-align: center;
    background-color: var(--color-white);
}

#fileUploadContainer label {
    display: block;
    margin-bottom: var(--gap-xs);
    font-weight: bold;
    font-family: var(--ff-sans);
}

#fileUploadContainer input[type="file"] {
    display: block;
    margin: var(--gap-sm) auto;
    width: 100%;
    max-width: 400px;
}

.file-help {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
}

.resumen-section {
    margin-top: var(--gap-lg);
    padding: var(--gap-md);
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-light);
}

.resumen-section h3 {
    margin-top: 0;
    color: var(--color-black);
    font-size: var(--fsz-lg);
    margin-bottom: var(--gap-sm);
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: var(--gap-sm);
    font-family: var(--ff-sans);
    font-weight: 500;
}

#resumen-contenido {
    line-height: 1.6;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 50%;
}

#precio-total {
    margin-top: var(--gap-md);
    font-weight: bold;
    font-size: var(--fsz-lg);
    text-align: right;
    color: var(--color-black);
    padding-top: var(--gap-sm);
    border-top: 1px solid var(--gray-light);
}

/* Navegación del formulario */
#form-navigation {
    margin-top: var(--gap-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#form-navigation button {
    padding: var(--gap-xs) var(--gap-md);
    background-color: #F48FB1;
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: var(--fsz-base);
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--ff-sans);
    min-width: 120px;
    text-transform: uppercase;
}

#form-navigation button:hover {
    background-color: #F06292;
}

#prev-btn {
    display: none;
    background-color: #F48FB1 !important;
}

#prev-btn:hover {
    background-color: #F06292 !important;
}

/* Estilos para los indicadores de paso (puntitos) */
.form-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid #FFFFFF;
    display: inline-block;
    transition: all 0.3s ease;
}

.step-dot.active {
    background-color: #FFFFFF;
}

/* Estilos para botón deshabilitado */
#prev-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .form-step {
        padding: var(--gap-sm) var(--gap-xs);
    }

    .producto-option,
    .diseno-option,
    .cantidad-option,
    .papel-option,
    .tintas-option,
    .terminacion-option {
        padding: var(--gap-xs);
    }

    #form-navigation button {
        padding: var(--gap-xxs) var(--gap-xs);
        font-size: var(--fsz-base);
    }
}

/* Estilos para campos de tinta especial */
.tinta-especial-cantidad {
    display: block;
    width: 80px;
    margin-top: var(--gap-xs);
    padding: 8px;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: var(--fsz-base);
}

.tinta-especial-cantidad:focus {
    border-color: var(--color-orange);
    outline: none;
    box-shadow: 0 0 5px rgba(217, 126, 39, 0.3);
}

.tinta-especial-cantidad::-webkit-inner-spin-button,
.tinta-especial-cantidad::-webkit-outer-spin-button {
    opacity: 1;
}

/* Estilos adicionales para mejorar la coherencia con el sitio */
.form-step input[type="radio"]:checked+span,
.form-step input[type="checkbox"]:checked+span {
    /* color: var(--color-orange); */
    font-weight: 600;
}

.producto-option.selected,
.diseno-option.selected,
.cantidad-option.selected,
.papel-option.selected,
.tintas-option.selected,
.terminacion-option.selected {
    border-color: var(--color-orange);
    background-color: rgba(217, 126, 39, 0.05);
}

/* Añadir iconos o indicadores visuales */
.producto-option input[type="radio"]:checked~.check-icon,
.diseno-option input[type="radio"]:checked~.check-icon,
.cantidad-option input[type="radio"]:checked~.check-icon,
.papel-option input[type="radio"]:checked~.check-icon,
.tintas-option input[type="radio"]:checked~.check-icon,
.terminacion-option input[type="checkbox"]:checked~.check-icon {
    opacity: 1;
}

.check-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: var(--gap-xs);
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--color-orange);
}

.presupuesto-checkbox {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
    border-left: 4px solid #f7941d;
}

.presupuesto-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.presupuesto-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.presupuesto-checkbox span {
    font-size: 14px;
    color: #555;
}

/* Tarjetas de producto para paso 1 */
.producto-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
}

.producto-card {
    flex: 1 1 calc(33.333% - 60px);
    min-width: 200px;
    background-color: #F5F5F0;
    padding: 25px 20px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#opciones-papel-tarjeta .producto-card {
    padding: 0px;
}

.producto-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.icon-placeholder {
    margin: 0 0 15px;
    height: 200px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    /* margin: 0 0 15px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center; */
}

.producto-titulo {
    color: #333;
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 32px;
    font-family: var(--ff-sans);
}

.producto-desc {
    color: #666;
    font-size: 16px;
    margin-top: auto;
    font-family: var(--ff-mono);
    letter-spacing: -0.5px;
}

.producto-card input[type="radio"]:checked+.icon-placeholder+.producto-titulo {
    color: inherit;
}

.frente-dorso-option {
    margin-top: var(--gap-md);
    text-align: center;
    padding: 15px 0;
    background: #393939;
    border: 2px solid #f48fb1;
    border-radius: 10px;
}
.frente-dorso-option:hover {
    background: #F5F5F0;
    /* border: 2px solid #F5F5F0; */
}

.frente-dorso-option:hover input[type="checkbox"] {
    border: 2px solid #333333;
}
.frente-dorso-option.checkedRosa label,
.frente-dorso-option:hover label {
    color:#333;
}

.frente-dorso-option.checkedRosa {
    background: #f48fb1;
}


.frente-dorso-option label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    color: #FFFFFF;
}

.frente-dorso-option input[type="checkbox"] {
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.frente-dorso-option input[type="checkbox"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.frente-dorso-option input[type="checkbox"]:checked::after {
    content: "✓";
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .producto-cards {
        flex-direction: column;
    }

    .producto-card {
        width: 100%;
    }
}

.producto-card.selected {
    /* border: 2px solid #F48FB1; */
    background-color: #F48FB1;
}

.producto-card.selected .producto-titulo,
.producto-card.selected .producto-desc {
    color: #FFFFFF;
}

.color-white {
    color: #FFFFFF !important;
}

/* Estilos para las tarjetas de papel */
.papel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

.papel-imagen {
    height: 220px;
    background-color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.papel-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.papel-info {
    background-color: #F5F5F0;
    border-radius: 0 0 10px 10px;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
}

.gramaje-selector {
    margin-top: 10px;
    position: relative;
}

.gramaje-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    font-family: var(--ff-mono);
    font-size: 15px;
}

/* Estilos para tarjeta seleccionada */
.papel-card.selected .papel-info {
    background-color: #F48FB1;
}

.papel-card.selected .producto-titulo,
.papel-card.selected .producto-desc,
.papel-card.selected .gramaje-select {
    color: #FFFFFF;
}

.papel-card.selected .gramaje-select {
    border-color: #FFFFFF;
    background-color: transparent;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Estilos para la sección de tintas */
.tintas-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 30px 0;
}

.tintas-column {
    flex: 1;
    background-color: #F5F5F0;
    border-radius: 10px;
    padding: 30px;

    max-width: 50%;
    margin: 0 auto;
}

.tintas-titulo {
    font-family: var(--ff-sans);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.tintas-subtitulo {
    font-family: var(--ff-sans);
    font-size: 18px;
    font-weight: 500;
    margin: 30px 0 15px;
    color: #333;
}

.tintas-opciones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tintas-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--ff-mono);
    font-size: 16px;
    color: #333;
}

.tintas-checkbox input[type="radio"],
.tintas-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    background-color: transparent;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.tintas-checkbox input[type="radio"]:checked+.custom-checkbox,
.tintas-checkbox input[type="checkbox"]:checked+.custom-checkbox {
    background-color: #5BDA5B;
    border-color: #5BDA5B;
}

/* Ocultar columna de dorso por defecto si no hay dorso seleccionado */
.dorso-column {
    display: none;
}

/* Estilos para la sección de terminaciones */
.terminaciones-card {
    background-color: #f5f5f0;
    border-radius: 20px;
    padding: 25px;
    margin: 20px auto;
    max-width: 350px;
    box-shadow: none;
}

.terminacion-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--ff-mono);
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.terminacion-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.terminacion-checkbox .custom-checkbox {
    width: 20px;
    height: 20px;
    border: none;
    background-color: #4bfa4b;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 2px;
}

.terminacion-checkbox input[type="checkbox"]:not(:checked)+.custom-checkbox {
    opacity: 0.2;
    background-color: transparent;
    border: 1px solid black;
}

.terminacion-checkbox input[type="checkbox"]:checked+.custom-checkbox {
    opacity: 1;
}

.dorso-cantidad-selector {
    margin-left: 30px;
    margin-bottom: 15px;
}

.dorso-select {
    width: 100%;
    max-width: 300px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 0;
    padding-left: 10px;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--ff-mono);
    font-size: 15px;
    background-color: white;
}

.dorso-select option {
    padding: 8px;
    background-color: white;
}

.dorso-select option:checked {
    background-color: #333 !important;
    color: white !important;
}

.dorso-nota {
    font-size: 12px;
    color: #333;
    margin-top: 5px;
    max-width: 300px;
    line-height: 1.3;
}

/* Asegurar que el paso 5 tenga fondo transparente y el mismo estilo que los pasos anteriores */
#form-page5,
#form-page6 {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

/* Estilos para el último paso del formulario */
.ultimo-paso-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px auto;
}

.dropzone-section,
.comentarios-section {
    flex: 1;
    min-width: 300px;
    background-color: #f5f5f0;
    border-radius: 20px;
    padding: 25px;
}

.dropzone-section h3,
.comentarios-section h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    font-family: var(--ff-sans);
}

.file-dropzone {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 30px 20px;
    text-align: center;
    background-color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-dropzone.highlight {
    border-color: #4bfa4b;
    background-color: rgba(75, 250, 75, 0.05);
}

.dropzone-icon {
    margin-bottom: 15px;
}

.dropzone-text {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

.select-files-btn {
    display: inline-block;
    padding: 5px 20px;
    font-family: var(--ff-base);
    background-color: #2b2b2b;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.select-files-btn:hover {
    background-color: #f48fb1;
}

.selected-file-name {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    max-width: 100%;
    padding: 5px 10px;
    background-color: #f3f3f3;
    border-radius: 4px;
}

#comentarios {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    font-family: var(--ff-sans);
    font-size: 14px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .ultimo-paso-container {
        flex-direction: column;
    }
}

/* Ajuste del resumen para no mostrarlo en el último paso */
#form-page6 .resumen-section {
    display: none;
}