:root {
    --accent-green: #1FFFB0;
    --btn-dark-blue: #002360;
    --text-muted-gray: #cbd5e1;
    --font-encode: 'Encode Sans', sans-serif;
    --bg-white-soft: #F5F5F5;
    --text-dark-gray: #242424;
}

body {
    font-family: var(--font-encode);
    background-color: #ffffff;
    color: var(--text-dark-gray);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.demo-hero-section {
    background-color: var(--bg-white-soft);
    text-align: center;

    .demo-hero-content {
        padding-top: 134px;
        padding-bottom: 134px;
        position: relative;

        .demo-hero-corner {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .container {
            display: flex;
            flex-direction: column;
            gap: 30px;

            .demo-hero-title {
                font-weight: 700;
                font-size: 56px;
                line-height: 56px;
                letter-spacing: 0px;
                color: var(--btn-dark-blue);
                margin: 0;
            }

            .demo-hero-description {
                font-weight: 400;
                font-size: 18px;
                line-height: 30px;
                letter-spacing: 0.36px;
                color: var(--text-dark-gray);
                margin: 0;
            }
            
        }
    }
}

.body-section {
    background-color: white;
    .container {
        padding-top: 90px;
        padding-bottom: 73px;

        .hablemos-section {
            display: flex;
            flex-direction: column;
            gap: 37px;

            .hablemos-titles {
                display: flex;
                flex-direction: column;
                gap: 15px;

                .hablemos-title {
                    font-weight: 600;
                    font-size: 32px;
                    line-height: 40px;
                    letter-spacing: 0px;
                    color: var(--btn-dark-blue);
                    margin: 0;
                }
                .hablemos-description {
                    font-weight: 400;
                    font-size: 18px;
                    line-height: 30px;
                    letter-spacing: 2%;
                    margin: 0;
                    color: var(--text-dark-gray)
                }
            }

            .hablemos-info {
                display: flex;
                flex-direction: column;
                gap: 22px;

                .hablemos-card {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    gap: 20px;

                    .hablemos-card-text {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;

                        .hablemos-card-text-title {
                            font-weight: 600;
                            font-size: 18px;
                            line-height: 30px;
                            letter-spacing: 0.36px;
                            margin: 0;
                            color: var(--text-dark-gray);
                        }

                        .hablemos-card-text-description {
                            font-weight: 400;
                            font-size: 18px;
                            line-height: 30px;
                            letter-spacing: 0.36px;
                            margin: 0;
                            color: var(--text-dark-gray);
                        }
                    }
                }
            }
        }

        .formulario-section {
            display: flex;
            flex-direction: column;
            gap: 27px;
            padding: 24px;
            border-radius: 16px;
            border: 1px solid #B4B4B4;
            
            .formulario-titles {
                display: flex;
                flex-direction: column;
                gap: 5px;

                .formulario-title {
                    font-weight: 600;
                    font-size: 18px;
                    line-height: 22px;
                    letter-spacing: 0;
                    margin: 0;
                    color: var(--btn-dark-blue);
                }

                .formulario-description {
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 30px;
                    letter-spacing: 0.28px;
                    margin: 0;
                    color: var(--text-dark-gray);
                }
            }

            .contact-form {
                padding: 10px;

                .form-label {
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 22px;
                    letter-spacing: 0px;
                }

                .form-control, .form-select {
                    border-radius: 8px;
                    border: 1px solid #D9D9D9;
                    padding: 5px 12px;

                    color: var(--text-dark-gray);
                    font-weight: 400;
                    font-size: 14px;
                    line-height: 22px;
                    letter-spacing: 0px;


                    &::placeholder {
                        font-weight: 400;
                        font-size: 14px;
                        line-height: 22px;
                        letter-spacing: 0px;
                        color: #B3B3B3;
                    }

                    &:focus {
                        box-shadow: none;
                    }

                    textarea& {
                        padding-top: 12px;
                        padding-bottom: 12px;
                        min-height: 90px;
                        font-weight: 400;
                        font-size: 14px;
                        line-height: 22px;
                        letter-spacing: 0;
                    }
                }

                .btn-enviar {
                    font-weight: 600;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: 0;
                    text-align: center;
                    vertical-align: middle;
                    color: white;
                    background-color: var(--btn-dark-blue);
                    border: none;
                    border-radius: 37px;
                    padding: 15px 35px;

                    &:hover {
                        background-color: var(--btn-dark-blue);
                        color: white;
                    }

                }
            }
        }

    }
}

.footer-section {
    background-color: #242424;
    padding-top: 20px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;

    .footer-links {
        font-weight: 400;
        font-size: 14px;
        line-height: 14px;
        letter-spacing: 0px;
    }

    .footer-link {
        color: white;
        text-decoration: none;
        transition: color 0.2s ease;

    }

    .footer-separator {
        color: white;
    }

    .footer-copyright {
        font-weight: 400;
        font-size: 12px;
        line-height: 12px;
        letter-spacing: 0.12px;
        color: white;
        margin-top: 11px;

    }
}

@media screen and (max-width: 768px) {

    .demo-hero-section {
        
        .demo-hero-content {
            padding: 90px 12px;

            .demo-hero-corner {
                
                top: 80px;
                width: 36px;
            }

            .container {
                .demo-hero-title {
                    font-weight: 600;
                    font-size: 40px;
                    line-height: 40px;
                    letter-spacing: 0px;
                    text-align: center;

                }
                .demo-hero-description {
                    font-weight: 400;
                    font-size: 16px;
                    line-height: 26px;
                    letter-spacing: 0%;
                    text-align: center;
                    margin: 0;
                }
            }
        }
    }

    .body-section{
        padding-left: 12px;
        padding-right: 12px;

        .container {
            padding-top: 64px;
            padding-bottom: 40px;

            .hablemos-section {

                .hablemos-titles {
                    
                    .hablemos-description {
                        font-size: 16px;
                        line-height: 29px;
                        letter-spacing: 0.32px;

                    }
                }

                .hablemos-info {
                    .hablemos-card {
                        gap: 16px;

                        .hablemos-card-text {
                            .hablemos-card-text-title {
                                font-weight: 600;
                                font-size: 16px;
                                line-height: 20px;
                                letter-spacing: 0.32px;

                            }
                            .hablemos-card-text-description {
                                font-weight: 400;
                                font-size: 16px;
                                line-height: 20px;
                                letter-spacing: 0.32px;
                            }
                        }
                    }
                }
            }

            .formulario-section {
                margin-top: 48px;
                gap: 12px;

                .formulario-titles {
                    
                    .formulario-description {
                        font-weight: 400;
                        font-size: 14px;
                        line-height: 24px;
                        letter-spacing: 0.28px;
                    }
                }

                .contact-form {
                    padding: 0px;

                    .btn-enviar {
                        width: 100%;
                        text-align: center;
                    }
                }
            }
        }
    }
}

/* Custom alerts and validation feedback for the demo request form */
.alert-success-demo,
.alert-error-demo {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeInAlert 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.alert-success-demo {
    background-color: #ecfdf5;
    border: 1px solid #1fffb0;
    color: #065f46;
}

.alert-error-demo {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

/* Invalid inputs styling */
#demo-form .form-control.is-invalid,
#demo-form .form-select.is-invalid {
    border: 1px solid #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
    padding-right: calc(1.5em + 0.75rem) !important;
}

#demo-form .form-control.is-invalid:focus,
#demo-form .form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
}

/* Error feedback below input fields */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #ef4444;
    font-weight: 500;
}

/* Disable button on loading */
.btn-enviar:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: var(--btn-dark-blue) !important;
    pointer-events: none;
}

@keyframes fadeInAlert {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}