/*
    Developed by
    
    Alexis Larrodé Álvaro
    
    alexis@cease.es
*/

html {
	scroll-behavior: smooth;
}

input[readonly] {
    cursor:default !important;
}

body{
	opacity:0;
	transition:opacity .2s ease-in-out;
	font-family:"Roboto",sans-serif;
    margin:0;
}
button, a, div{
	-webkit-tap-highlight-color: transparent;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline-color:#a7101c;
}
#totalCont{
	display:flex;
	flex-direction:column;
	position:relative;
	width:100%;
	min-height:100vh;
	margin:0 auto;
}
    #totalContHeader{
        width:100%;
        height:86px;
        display:flex;
        justify-content:center;
        align-items:center;
        background-color:#a7101c;
    }
        #headerCont{
            width:100%;
            height:100%;
            max-width:1200px;
            display:flex;
            align-items:center;
            justify-content:center;
            padding:10px;
        }
            #headerLogoCont{
                width:200px;
                height:100%;
                display:flex;
                justify-content:left;
                align-items:center;
            }
                #headerLogoCont a{
                    display:block;
                    line-height:0;
                }
                    #headerLogoCont img{
                        width:168px;
                        height:auto;
                        transition:width 0.2s ease-in-out;
                        display:block;
                        image-rendering: -webkit-optimize-contrast;
                        image-rendering: crisp-edges;
                    }
            #headerTextCont{
                width:calc(100% - 200px);
                height:100%;
                display:flex;
                justify-content:right;
                align-items:center;
                font-size:12px;
                font-weight:700;
                color:#ffffff;
                text-transform:uppercase;
                letter-spacing:0.1em;
                text-align:right;
                transition:letter-spacing 0.2s ease-in-out;
            }
    #totalContBody{
        width:100%;
        flex:1;
        display:flex;
        justify-content:center;
        align-items:flex-start;
    }
        #bodyCont{
            position:relative;
            width:100%;
            max-width:1200px;
            padding:20px;
            display:flex;
            flex-direction:column;
            justify-content:flex-start;
            align-items:center;
        }
            #progressSystem{
                width:100%;
                max-width:800px;
                display:flex;
                flex-direction:column;
                align-items:center;
                justify-content:center;
                padding:0px 20px;
                margin:20px 0;
                gap:12px;
            }
            .progress-labels{
                width:100%;
                display:flex;
                align-items:center;
                justify-content:space-between;
            }
            .progress-track{
                margin:0 auto;
                display:flex;
                align-items:center;
                justify-content:space-between;
            }
                .progress-step{
                    display:flex;
                    flex-direction:column;
                    align-items:center;
                    position:relative;
                    z-index:2;
                }
                .label-item{
                    display:flex;
                    flex-direction:column;
                    align-items:center;
                    position:relative;
                    z-index:1;
                    text-align:center;
                }
                    .progress-circle{
                        width:32px;
                        height:32px;
                        border-radius:50%;
                        background-color:#e0e0e0;
                        border:3px solid #e0e0e0;
                        display:flex;
                        align-items:center;
                        justify-content:center;
                        position:relative;
                        transition:all 0.3s ease-in-out;
                    }
                    .progress-circle.active{
                        background-color:#a7101c;
                        border-color:#a7101c;
                    }
                    .progress-circle.completed{
                        background-color:#c53f30;
                        border-color:#c53f30;
                    }
                        .step-number{
                            font-size:18px;
                            font-weight:700;
                            color:#666666;
                            transition:color 0.3s ease-in-out;
                        }
                        .progress-circle.active .step-number{
                            color:#ffffff;
                        }
                        .progress-circle.completed .step-number{
                            opacity:0;
                        }
                        .check-icon{
                            position:absolute;
                            width:16px;
                            height:16px;
                            background-color:#ffffff;
                            opacity:0;
                            transition:opacity 0.3s ease-in-out;
                            -webkit-mask:url('../resources/web/iconCheck.svg') no-repeat center;
                            mask:url('../resources/web/iconCheck.svg') no-repeat center;
                            -webkit-mask-size:contain;
                            mask-size:contain;
                        }
                        .progress-circle.completed .check-icon{
                            opacity:1;
                        }
                    .step-label{
                        font-size:12px;
                        font-weight:600;
                        color:#666666;
                        text-transform:uppercase;
                        letter-spacing:0.05em;
                        text-align:center;
                        transition:color 0.3s ease-in-out;
                    }
                    .label-item.active .step-label{
                        color:#a7101c;
                    }
                    .label-item.completed .step-label{
                        color:#c53f30;
                    }
                .progress-bar{
                    flex:1;
                    height:4px;
                    background-color:#e0e0e0;
                    margin:0;
                    position:relative;
                    border-radius:0;
                    overflow:hidden;
                }
                    .progress-fill{
                        height:100%;
                        background-color:#a7101c;
                        width:0%;
                        transition:width 0.5s ease-in-out, background-color 0.3s ease-in-out;
                        border-radius:0;
                    }
                    .progress-fill.completed{
                        background-color:#c53f30;
                    }
            #formSystem{
                width:100%;
                max-width:800px;
                margin:40px 0;
                padding:0 20px;
            }
                #formContainer{
                    background-color:#ffffff;
                    border-radius:8px;
                    box-shadow:0 2px 10px rgba(0,0,0,0.1);
                    padding:30px;
                    min-height:400px;
                    display:flex;
                    flex-direction:column;
                }
                    #formContent{
                        flex:1;
                        margin-bottom:30px;
                    }
                        .question-block{
                            margin-bottom:25px;
                            animation:fadeIn 0.3s ease-in-out;
                        }
                        .question-title{
                            font-size:18px;
                            font-weight:600;
                            color:#a7101c;
                            margin-bottom:15px;
                            line-height:1.4;
                        }
                        .question-input{
                            width:100%;
                            padding:12px 15px;
                            border:2px solid #e0e0e0;
                            border-radius:6px;
                            font-size:16px;
                            font-family:"Roboto",sans-serif;
                            transition:border-color 0.3s ease-in-out;
                            background-color:#ffffff;
                            box-sizing:border-box;
                        }
                        .question-input:focus{
                            border-color:#a7101c;
                            outline:none;
                        }
                        .question-select{
                            width:100%;
                            padding:12px 15px;
                            border:2px solid #e0e0e0;
                            border-radius:6px;
                            font-size:16px;
                            font-family:"Roboto",sans-serif;
                            background-color:#ffffff;
                            cursor:pointer;
                            transition:border-color 0.3s ease-in-out;
                        }
                        .question-select:focus{
                            border-color:#a7101c;
                            outline:none;
                        }
                        .select-option{
                            padding:10px 15px;
                            border:2px solid #e0e0e0;
                            border-radius:6px;
                            margin-bottom:8px;
                            cursor:pointer;
                            transition:all 0.3s ease-in-out;
                            background-color:#ffffff;
                        }
                        .select-option:hover{
                            border-color:#a7101c;
                            background-color:#f8f9fa;
                        }
                        .select-option.selected{
                            border-color:#a7101c;
                            background-color:#a7101c;
                            color:#ffffff;
                        }
                    #formNavigation{
                        display:flex;
                        justify-content:space-between;
                        align-items:center;
                        padding-top:20px;
                        border-top:1px solid #e0e0e0;
                    }
                        .form-btn{
                            padding:12px 25px;
                            border:none;
                            border-radius:6px;
                            font-size:16px;
                            font-weight:600;
                            font-family:"Roboto",sans-serif;
                            cursor:pointer;
                            transition:all 0.3s ease-in-out;
                            text-transform:uppercase;
                            letter-spacing:0.05em;
                            min-width:120px;
                        }
                        .btn-primary{
                            background-color:#a7101c;
                            color:#ffffff;
                        }
                        .btn-primary:hover{
                            background-color:#c53f30;
                        }
                        .btn-secondary{
                            background-color:#ffffff;
                            color:#666666;
                            border:2px solid #e0e0e0;
                        }
                        .btn-secondary:hover{
                            background-color:#f8f9fa;
                            border-color:#a7101c;
                            color:#a7101c;
                        }
                        .btn-secondary:disabled,
                        .btn-primary:disabled{
                            opacity:0.5;
                            cursor:not-allowed;
                        }
                .error-message{
                    display:flex;
                    align-items:center;
                    gap:8px;
                    margin-top:8px;
                    padding:8px 12px;
                    background-color:#fff5f5;
                    border:1px solid #fed7d7;
                    border-radius:6px;
                    color:#e53e3e;
                    font-size:14px;
                    font-weight:500;
                    animation:fadeInError 0.3s ease-in-out;
                }
                .error-icon{
                    width:16px;
                    height:16px;
                    background-color:#e53e3e;
                    -webkit-mask:url('../resources/web/iconExclamation.svg') no-repeat center;
                    mask:url('../resources/web/iconExclamation.svg') no-repeat center;
                    -webkit-mask-size:contain;
                    mask-size:contain;
                    flex-shrink:0;
                }
                @keyframes fadeIn {
                    from { opacity: 0; transform: translateY(20px); }
                    to { opacity: 1; transform: translateY(0); }
                }
                @keyframes fadeInError {
                    from { opacity: 0; transform: translateY(-10px); }
                    to { opacity: 1; transform: translateY(0); }
                }
            #calculationLog{
                width:100%;
                max-width:800px;
                margin:20px 0;
                padding:0 20px;
            }
                #logContainer{
                    background-color:#f8f9fa;
                    border-radius:8px;
                    border:2px solid #e0e0e0;
                    overflow:hidden;
                }
                    #logHeader{
                        background-color:#a7101c;
                        color:#ffffff;
                        padding:15px 20px;
                        display:flex;
                        justify-content:space-between;
                        align-items:center;
                    }
                        #logHeader h3{
                            margin:0;
                            font-size:18px;
                            font-weight:600;
                        }
                        .log-btn{
                            background-color:rgba(255,255,255,0.2);
                            color:#ffffff;
                            border:1px solid rgba(255,255,255,0.3);
                            border-radius:4px;
                            padding:6px 12px;
                            font-size:12px;
                            cursor:pointer;
                            transition:background-color 0.3s ease-in-out;
                        }
                        .log-btn:hover{
                            background-color:rgba(255,255,255,0.3);
                        }
                    #logContent{
                        padding:20px;
                        max-height:400px;
                        overflow-y:auto;
                        display:block;
                        transition:all 0.3s ease-in-out;
                    }
                    #logContent.hidden{
                        display:none;
                    }
                        #logContent h4{
                            color:#a7101c;
                            font-size:16px;
                            font-weight:600;
                            margin:0 0 10px 0;
                            border-bottom:1px solid #e0e0e0;
                            padding-bottom:5px;
                        }
                        #answersLog, #calculationsLog, #totalsLog{
                            margin-bottom:25px;
                        }
                        #answersLog:last-child, #calculationsLog:last-child, #totalsLog:last-child{
                            margin-bottom:0;
                        }
                        .log-entry{
                            background-color:#ffffff;
                            border:1px solid #e0e0e0;
                            border-radius:4px;
                            padding:10px 12px;
                            margin-bottom:8px;
                            font-family:monospace;
                            font-size:13px;
                            line-height:1.4;
                        }
                        .log-question{
                            font-weight:600;
                            color:#333333;
                            margin-bottom:4px;
                        }
                        .log-answer{
                            color:#666666;
                            margin-left:15px;
                        }
                        .log-calculation{
                            color:#a7101c;
                            font-weight:500;
                        }
                        .log-total{
                            background-color:#fff5f5;
                            border-color:#fed7d7;
                            font-weight:600;
                        }
                        .log-block-energy{
                            border-left:4px solid #2196F3;
                        }
                        .log-block-management{
                            border-left:4px solid #4CAF50;
                        }
                        .log-block-operation{
                            border-left:4px solid #FF9800;
                        }
            #callMeCont{
                width:80px;
                height:80px;
                background-color:#a7101c;
                border-radius:50%;
                position:sticky;
                left:0;
                bottom:40px;
                margin-bottom:20px; /* Añadido para separar el sticky del borde inferior del contenedor padre */
                align-self:flex-start;
                z-index:3;
                display:flex;
                justify-content:center;
                align-items:center;
                cursor:pointer;
                transition:background-color 0.3s ease-in-out;
                box-shadow:0 2px 10px rgba(0,0,0,0.1);
            }
                #callMeCont:hover{
                    background-color:#c53f30;
                }
                .callme-icon-phone{
                    width:100%;
                    height:100%;
                    background-color:#ffffff;
                    -webkit-mask:url('../resources/web/iconPhone.svg') no-repeat center;
                    mask:url('../resources/web/iconPhone.svg') no-repeat center;
                    -webkit-mask-size:40px 40px;
                    mask-size:40px 40px;
                    cursor:pointer;
                }
            /* Call Me Form Modal */
            #callMeFormModal{
                position:absolute;
                bottom:0;
                left:0;
                width:320px;
                max-height:500px;
                background-color:transparent;
                visibility:hidden;
                z-index:1;
                pointer-events:none;
            }
            #callMeFormModal.show{
                visibility:visible;
                pointer-events:auto;
            }
            #callMeFormModal.closing{
                visibility:visible;
                pointer-events:none;
            }
                .callme-form-content{
                    background-color:#a7101c;
                    border-radius:12px;
                    padding:30px;
                    width:100%;
                    max-height:500px;
                    position:relative;
                    opacity:0;
                    transform:translateY(20px);
                    transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
                    overflow-y:auto;
                    box-sizing:border-box;
                    cursor:auto;
                }
                #callMeFormModal.show .callme-form-content{
                    opacity:1;
                    transform:translateY(0);
                }
                #callMeFormModal.closing .callme-form-content{
                    opacity:0;
                    transform:translateY(0);
                    transition:opacity 0.3s ease-in-out;
                }
                    .callme-close-btn{
                        position:absolute;
                        top:10px;
                        right:10px;
                        width:18px;
                        height:18px;
                        background-color:#ffffff;
                        -webkit-mask:url('../resources/web/iconClose.svg') no-repeat center;
                        mask:url('../resources/web/iconClose.svg') no-repeat center;
                        -webkit-mask-size:contain;
                        mask-size:contain;
                        cursor:pointer;
                        transition:opacity 0.3s ease-in-out;
                    }
                    .callme-close-btn:hover{
                        opacity:0.7;
                    }
                    .callme-form-header{
                        font-size:20px;
                        font-weight:700;
                        color:#ffffff;
                        margin-bottom:20px;
                        text-align:center;
                        line-height:1.3;
                    }
                    .callme-form-group{
                        margin-bottom:15px;
                    }
                        .callme-input{
                            width:100%;
                            padding:12px 15px;
                            border:none;
                            border-radius:6px;
                            font-size:14px;
                            font-family:"Roboto",sans-serif;
                            background-color:#ffffff;
                            color:#333333;
                            box-sizing:border-box;
                            transition:box-shadow 0.3s ease-in-out;
                        }
                        .callme-input:focus{
                            outline:none;
                            box-shadow:0 0 0 3px rgba(255,255,255,0.3);
                        }
                        .callme-input::placeholder{
                            color:#999999;
                        }
                    .callme-checkbox-group{
                        margin-bottom:15px;
                        display:flex;
                        align-items:flex-start;
                        gap:8px;
                    }
                        .callme-checkbox-group input[type="checkbox"]{
                            margin-top:3px;
                            cursor:pointer;
                            flex-shrink:0;
                        }
                        .callme-checkbox-group label{
                            font-size:12px;
                            color:#ffffff;
                            line-height:1.4;
                        }
                        .callme-checkbox-group a{
                            color:#ffffff;
                            text-decoration:underline;
                        }
                        .callme-checkbox-group a:hover{
                            opacity:0.8;
                        }
                    .callme-error-message{
                        display:none;
                        padding:10px;
                        background-color:rgba(255,255,255,0.2);
                        border:1px solid rgba(255,255,255,0.4);
                        border-radius:6px;
                        color:#ffffff;
                        font-size:13px;
                        margin-bottom:15px;
                        animation:fadeInError 0.3s ease-in-out;
                    }
                    .callme-error-message.show{
                        display:block;
                    }
                    .callme-submit-btn{
                        width:100%;
                        padding:12px;
                        border:none;
                        border-radius:6px;
                        background-color:#ffffff;
                        color:#a7101c;
                        font-size:16px;
                        font-weight:700;
                        font-family:"Roboto",sans-serif;
                        cursor:pointer;
                        transition:all 0.3s ease-in-out;
                        text-transform:uppercase;
                        letter-spacing:0.05em;
                    }
                    .callme-submit-btn:hover{
                        background-color:#f0f0f0;
                        transform:translateY(-2px);
                        box-shadow:0 4px 8px rgba(0,0,0,0.2);
                    }
                    .callme-submit-btn:disabled{
                        opacity:0.6;
                        cursor:not-allowed;
                        transform:none;
                    }
            #sessionExpiredModal{
                position:fixed;
                top:0;
                left:0;
                width:100%;
                height:100%;
                background-color:rgba(0,0,0,0.7);
                display:none;
                justify-content:center;
                align-items:center;
                z-index:9999;
                opacity:0;
                transition:opacity 0.3s ease-in-out;
            }
            #sessionExpiredModal.show{
                display:flex;
                opacity:1;
            }
                .session-modal-content{
                    background-color:#ffffff;
                    border-radius:12px;
                    padding:40px;
                    max-width:500px;
                    width:90%;
                    text-align:center;
                    box-shadow:0 10px 30px rgba(0,0,0,0.3);
                    transform:scale(0.9);
                    transition:transform 0.3s ease-in-out;
                }
                #sessionExpiredModal.show .session-modal-content{
                    transform:scale(1);
                }
                .session-modal-title{
                    font-size:24px;
                    font-weight:700;
                    color:#a7101c;
                    margin-bottom:20px;
                }
                .session-modal-text{
                    font-size:16px;
                    color:#666666;
                    margin-bottom:30px;
                    line-height:1.5;
                }
                .session-modal-button{
                    background-color:#a7101c;
                    color:#ffffff;
                    border:none;
                    border-radius:8px;
                    padding:15px 30px;
                    font-size:16px;
                    font-weight:600;
                    cursor:pointer;
                    transition:background-color 0.3s ease-in-out;
                    text-transform:uppercase;
                    letter-spacing:0.05em;
                }
                .session-modal-button:hover{
                    background-color:#c53f30;
                }
    #totalContFooter{
        width:100%;
        height:98px;
        display:flex;
        justify-content:center;
        align-items:center;
        background-color:#000000;
    }
        #footerCont{
            width:100%;
            height:100%;
            max-width:1200px;
            display:flex;
            align-items:center;
            justify-content:center;
            padding:0 10px;
        }
            #footerTextCont{
                width:360px;
                height:100%;
                display:flex;
				flex-direction:column;
                justify-content:center;
                align-items:flex-start;
                color:#ffffff;
                font-size:14px;
                font-weight:300;
                text-align:left;
				gap:4px;
            }
				#footerTextCont a{
					color:#ffffff;
					font-weight:500;
					text-decoration:none;
					transition:color .2s ease-in-out;
				}
				#footerTextCont a:hover{
					color:#a7101c;
				}
            #footerLinksCont{
                width:calc(100% - 360px);
                height:100%;
                display:flex;
                justify-content:right;
                align-items:center;
                gap:40px;
                transition:gap 0.2s ease-in-out;
            }
                #footerLinksCont a{
                    color:#ffffff;
                    text-decoration:none;
                    font-size:14px;
                    font-weight:500;
                    text-align:right;
                    transition:color 0.2s ease-in-out;
                }
                #footerLinksCont a:hover{
                    color:#a7101c ;
                }
#ajaxLoaderCont{
    position:fixed;
    left:0px;
    top:0px;
    width:100%;
    height:100%;
    background-color:rgba(255,255,255,0.9);
    display:none;
    opacity:0;
    z-index:2;
    transition:opacity .2s ease-in-out;
}
    @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
    @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
    @keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
    #ajaxLoaderSpinner{
        position:absolute;
        left:50%;
        top:40%;
        width:150px;
        height:150px;
        margin-left:-75px;
        margin-top:-75px;
        background-image:url('../resources/web/loaderSpinner.png');
        background-repeat:no-repeat;
        background-size:100%;
        font-size:40px;
        font-weight:normal;
        padding-top:0px;
        text-align:center;
        -webkit-animation:spin 4s linear infinite;
        -moz-animation:spin 4s linear infinite;
        animation:spin 4s linear infinite;
    }
#formFinishedModal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    opacity:0;
    transition:opacity 0.3s ease-in-out;
}
#welcomeFaqModal{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
    opacity:0;
    transition:opacity 0.3s ease-in-out;
}
#welcomeFaqModal.show{
    display:flex;
    opacity:1;
}
    .welcome-modal-content{
        background-color:#ffffff;
        border-radius:12px;
        padding:30px 30px 24px 30px;
        max-width:720px;
        width:92%;
        box-shadow:0 10px 30px rgba(0,0,0,0.3);
        transform:scale(0.96);
        transition:transform 0.3s ease-in-out;
    }
    #welcomeFaqModal.show .welcome-modal-content{
        transform:scale(1);
    }
    .welcome-modal-title{
        font-size:22px;
        font-weight:700;
        color:#a7101c;
        margin-bottom:14px;
        text-align:center;
    }
    .welcome-modal-text{
        color:#444444;
    }
    .welcome-modal-actions{
        margin-top:16px;
        display:flex;
        justify-content:center;
    }
#formFinishedModal.show{
    display:flex;
    opacity:1;
}
    .form-finished-modal-content{
        background-color:#ffffff;
        border-radius:12px;
        padding:40px;
        max-width:500px;
        width:90%;
        text-align:center;
        box-shadow:0 10px 30px rgba(0,0,0,0.3);
        transform:scale(0.9);
        transition:transform 0.3s ease-in-out;
    }
    #formFinishedModal.show .form-finished-modal-content{
        transform:scale(1);
    }
    .form-finished-modal-title{
        font-size:24px;
        font-weight:700;
        color:#a7101c;
        margin-bottom:20px;
    }
    .form-finished-modal-text{
        font-size:16px;
        color:#666666;
        margin-bottom:30px;
        line-height:1.5;
    }
    .form-finished-modal-button{
        background-color:#a7101c;
        color:#ffffff;
        border:none;
        border-radius:8px;
        padding:15px 30px;
        font-size:16px;
        font-weight:600;
        cursor:pointer;
        transition:background-color 0.3s ease-in-out;
        text-transform:uppercase;
        letter-spacing:0.05em;
    }
    .form-finished-modal-button:hover{
        background-color:#c53f30;
    }
@media (max-width:979px){
    #footerLinksCont{
        gap:20px;
    }
    #callMeCont{
        width:calc(100% + 40px);
        height:50px;
        bottom:0;
        margin-bottom:-20px;
        border-radius:0;
        margin-left:-20px;
    }
        .callme-icon-phone{
            -webkit-mask-size:30px 30px;
            mask-size:30px 30px;
        }
    /* Call Me Form Modal - Mobile */
    #callMeFormModal{
        position:fixed;
        top:0;
        left:0;
        bottom:auto;
        width:100%;
        height:100%;
        max-height:none;
        background-color:rgba(0,0,0,0);
        visibility:hidden;
        display:flex;
        justify-content:center;
        align-items:center;
        z-index:10000;
        transition:background-color 0.3s ease-in-out;
    }
    #callMeFormModal.show{
        visibility:visible;
        background-color:rgba(0,0,0,0.7);
    }
    #callMeFormModal.closing{
        visibility:visible;
        background-color:rgba(0,0,0,0);
    }
    .callme-form-content{
        width:100%;
        height:100%;
        max-height:none;
        border-radius:0;
        padding:20px;
        opacity:0;
        transform:translateY(20px);
        transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    }
    #callMeFormModal.show .callme-form-content{
        opacity:1;
        transform:translateY(0);
    }
    #callMeFormModal.closing .callme-form-content{
        opacity:0;
        transform:translateY(0);
        transition:opacity 0.3s ease-in-out;
    }
    .callme-form-header{
        font-size:18px;
        margin-top:30px;
    }
}
@media (max-width:896px){
    #totalContFooter{
        height:146px;
    }
    #footerCont{
        flex-direction:column-reverse;
        gap:20px;
    }
    #footerTextCont{
        width:100%;
        height:auto;
        align-items:center;
        text-align:center;
        font-size:12px;
    }
    #footerLinksCont{
        width:100%;
        height:auto;
        justify-content:center;
        flex-wrap:wrap;
        gap:10px;
    }
        #footerLinksCont a{
            width:calc(50% - 20px);
            font-size:12px;
        }
        #footerLinksCont a:nth-child(odd){
            text-align:right;
        }
        #footerLinksCont a:nth-child(even){
            text-align:left;
        }
        #footerLinksCont a:nth-child(1){ order: 1; } /* Aviso Legal */
        #footerLinksCont a:nth-child(2){ order: 4; } /* Política de Privacidad */
        #footerLinksCont a:nth-child(3){ order: 3; } /* Política de Calidad */
        #footerLinksCont a:nth-child(4){ order: 2; } /* Política de Cookies */
}
@media (max-width:600px){
    #bodyCont{
        padding:10px;
    }
    #headerLogoCont{
        width:150px;
    }
    #headerLogoCont img{
        width:120px;
    }
    #headerTextCont{
        letter-spacing:0.05em;
    }
    #headerTextCont{
        width:calc(100% - 150px);
    }
    #progressSystem{
        padding:0px;
        gap:8px;
    }
    .progress-labels{
        justify-content:space-between;
    }
    .progress-track{
        margin:0 auto;
        justify-content:space-between;
    }
    .progress-step{
        flex:none;
        min-width:auto;
    }
    .label-item{
        flex:none;
        min-width:auto;
    }
    .progress-circle{
        width:20px;
        height:20px;
        margin-bottom:0;
    }
    .step-number{
        font-size:12px;
    }
    .check-icon{
        width:12px;
        height:12px;
    }
    .step-label{
        font-size:8px;
    }
    .progress-bar{
        flex:1;
        height:3px;
        margin:0;
    }
    #formSystem{
        margin:20px 0;
        padding:0 10px;
    }
    #formContainer{
        padding:20px;
        min-height:300px;
    }
    .question-title{
        font-size:16px;
    }
    .question-input,
    .question-select{
        font-size:14px;
        padding:10px 12px;
    }
    .form-btn{
        font-size:14px;
        padding:10px 20px;
        min-width:100px;
    }
    .error-message{
        font-size:12px;
        padding:6px 10px;
        margin-top:6px;
    }
    .error-icon{
        width:14px;
        height:14px;
    }
    #callMeCont{
        width:calc(100% + 20px);
        margin-bottom:-10px;
        margin-left:-10px;
    }
    #calculationLog{
        margin:10px 0;
        padding:0 10px;
    }
    #logHeader{
        padding:12px 15px;
    }
    #logHeader h3{
        font-size:16px;
    }
    #logContent{
        padding:15px;
        max-height:300px;
    }
    #logContent h4{
        font-size:14px;
    }
    .log-entry{
        padding:8px 10px;
        font-size:12px;
    }
}

/* Welcome Page Integrated in Form */
.welcome-page{
    padding:40px 20px;
    max-width:800px;
    margin:0 auto;
    text-align:center;
}

.welcome-title{
    font-size:32px;
    font-weight:700;
    color:#a7101c;
    margin-bottom:30px;
}

.welcome-content{
    margin-bottom:40px;
}

.faq-box{
    text-align:left;
    background:#f9f9f9;
    border-radius:8px;
    padding:30px;
}

.faq-item{
    margin-bottom:25px;
}

.faq-item:last-child{
    margin-bottom:0;
}

.faq-question{
    font-weight:600;
    font-size:18px;
    color:#333;
    margin-bottom:10px;
}

.faq-answer{
    font-size:16px;
    color:#555;
    line-height:1.6;
}

.welcome-actions{
    margin-top:30px;
}

.btn-large{
    font-size:18px !important;
    padding:15px 50px !important;
    min-width:200px;
}

@media (max-width:768px){
    .welcome-page{
        padding:30px 15px;
    }
    
    .welcome-title{
        font-size:26px;
        margin-bottom:25px;
    }
    
    .faq-box{
        padding:20px;
    }
    
    .faq-question{
        font-size:16px;
    }
    
    .faq-answer{
        font-size:15px;
    }
    
    .btn-large{
        font-size:16px !important;
        padding:12px 40px !important;
        min-width:180px;
    }
}