html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #E5E7EB;
    color: #2C3E50;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(100%);
    opacity: 0.15;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.header-floating {
    margin: 1rem;
}

@media (min-width: 768px) {
    .header-floating {
        margin: 1rem 1.5rem;
    }
}

.glass-effect {
    background-color: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Estilos para la calculadora avanzada */
.form-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(44, 62, 80, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: #2C3E50;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #587C9A;
    box-shadow: 0 0 0 3px rgba(88, 124, 154, 0.3);
}

.form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.875rem;
}

.input-group {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.input-group input {
    border: none;
    background: transparent;
}

.input-group-text {
    padding: 0 12px;
    color: #4a5568;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #7f8c8d;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #27ae60;
}

input:checked+.slider:before {
    transform: translateX(22px);
}