html {
    scroll-behavior: smooth;
}

.hero-bg {
    background-image: url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Transiciones personalizadas y efectos premium */
.nav-transition {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-scrolled {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    background-color: rgba(15, 23, 42, 0.92) !important; /* Slate 900 con transparencia */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2); /* Sutil borde dorado */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Animaciones y efectos de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Retardos de animación */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Efecto de marco dorado para imagen biográfica */
.photo-frame-offset {
    position: relative;
}

.photo-frame-offset::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 2px solid #c5a880; /* Color oro/bronce */
    border-radius: 1rem;
    z-index: 0;
    transition: all 0.4s ease;
}

.photo-frame-offset:hover::before {
    transform: translate(-8px, -8px);
    border-color: #0d9488; /* Cambia a teal en hover */
}

/* Cookies TWD */
.cookietwd-settings-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0.7;
    transition: 0.3s ease;
    font-size: 24px;
}

    .cookietwd-settings-icon:hover {
        opacity: 1;
        transform: scale(1.1);
    }

.cookietwd-manager {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: sans-serif;
}

    .cookietwd-manager.show {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

.cookietwd-options {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookietwd-buttons {
    display: flex;
    gap: 10px;
}

.cookietwd-btn {
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    transition: 0.2s;
}

    .cookietwd-btn.primary {
        background: #007bff;
        color: white;
    }

        .cookietwd-btn.primary:hover {
            background: #0056b3;
        }

    .cookietwd-btn.secondary {
        background: #eee;
        color: #333;
    }

        .cookietwd-btn.secondary:hover {
            background: #ddd;
        }

/* Custom Styling for Budget Calculator Slider & Controls */
.calculator-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    outline: none;
    transition: background 0.3s;
    touch-action: manipulation;
}

.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f766e;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.calculator-slider::-webkit-slider-thumb:hover,
.calculator-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
    background: #0d9488;
}

.calculator-slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0f766e;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.calculator-slider::-moz-range-thumb:hover,
.calculator-slider::-moz-range-thumb:active {
    transform: scale(1.15);
    background: #0d9488;
}

/* Calculator Custom Component Styling */
.calc-input-number {
    width: 4.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f766e;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.375rem 0.25rem;
    outline: none;
    -moz-appearance: textfield;
}

@media (min-width: 640px) {
    .calc-input-number {
        width: 5.5rem;
        font-size: 1.25rem;
        padding: 0.375rem 0.5rem;
    }
}

.calc-input-number::-webkit-inner-spin-button,
.calc-input-number::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.calc-input-number:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25);
}

.calc-step-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 700;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    touch-action: manipulation;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .calc-step-btn {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.calc-step-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.calc-input-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .calc-input-card {
        padding: 1.5rem;
    }
}

.calc-result-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .calc-result-card {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .calc-result-card {
        padding: 2.5rem;
    }
}

.calc-glow-top {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 15rem;
    height: 15rem;
    background-color: rgba(15, 118, 110, 0.25);
    border-radius: 9999px;
    filter: blur(48px);
    pointer-events: none;
}

.calc-glow-bottom {
    position: absolute;
    bottom: -5rem;
    left: -5rem;
    width: 15rem;
    height: 15rem;
    background-color: rgba(197, 168, 128, 0.15);
    border-radius: 9999px;
    filter: blur(48px);
    pointer-events: none;
}

.calc-price-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    text-align: center;
    backdrop-filter: blur(8px);
}

@media (min-width: 640px) {
    .calc-price-box {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.calc-annual-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .calc-annual-box {
        padding: 1rem 1.25rem;
        margin-bottom: 2rem;
    }
}

.calc-icon-badge {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .calc-icon-badge {
        width: 2.5rem;
        height: 2.5rem;
    }
}

.calc-icon-primary {
    background-color: rgba(15, 118, 110, 0.12);
    color: #0f766e;
}

.calc-icon-accent {
    background-color: rgba(197, 168, 128, 0.2);
    color: #c5a880;
}

.calc-cta-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    background-color: #0f766e;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.35;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.calc-cta-btn:hover {
    background-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(15, 118, 110, 0.55);
}

@media (min-width: 640px) {
    .calc-cta-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}



