:root {
    --navy: #1a2744;
    --navy-light: #243352;
    --gold: #c9a227;
    --gold-light: #d4af37;
    --cream: #faf8f5;
    --cream-light: #f5f3ef;
    --cream-dark: #ede9e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--navy);
    background-color: var(--cream-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.font-merriweather {
    font-family: 'Merriweather', Georgia, serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Navbar */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

#navbar.scrolled .text-navy {
    color: var(--navy) !important;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

.mobile-link {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: var(--gold);
    padding-left: 8px;
}

/* Floating animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15) !important;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream-light);
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-light);
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--navy);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    
    #inicio h1 {
        font-size: 2.5rem !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
}
