:root {
    --primary-blue: #0f172a;
    /* Dark Navy from screenshots */
    --accent-orange: #f97316;
    /* Orange from buttons */
    --bg-cream: #fffaf0;
    /* Light cream background */
    --text-dark: #334155;
    --text-light: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
}

/* Utilities */
.text-primary-blue {
    color: var(--primary-blue);
}

.text-accent-orange {
    color: var(--accent-orange);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-cream {
    background-color: var(--bg-cream);
}

.btn-custom-orange {
    background-color: var(--accent-orange);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    /* Reduced radius from user feedback */
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother transition */
}

.btn-custom-orange:hover {
    background-color: #ea580c;
    /* Darker orange */
    color: white;
    transform: translateY(-1px);
}

.btn-custom-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    /* Reduced radius */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-custom-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

/* Navbar overrides */
.navbar-custom {
    background-color: var(--primary-blue);
    padding: 1rem 0;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.95rem;
}

.navbar-custom .nav-link:hover {
    color: white !important;
}

/* Mega Menu */
.dropdown-mega {
    position: relative;
    /* Change from static to relative for local positioning */
}

.dropdown-mega .dropdown-menu {
    width: max-content;
    min-width: 600px;
    max-width: 900px;
    margin-top: 10px;
    padding: 1rem;
    left: 50%;
    transform: translateX(-50%);
    /* Center relative to parent */
    border-radius: 12px;
    /* More rounded as per image */
}

/* Typography adjustments */
.dropdown-mega h6 {
    font-size: 0.75rem;
    /* Smaller headers */
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.dropdown-item {
    font-size: 0.85rem;
    /* Smaller links */
    padding: 0.4rem 0.5rem;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-item i {
    font-size: 0.9em;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

/* Show on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: smoothFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 15px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.dropdown-item {
    font-size: 0.95rem;
    color: var(--text-dark);
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-blue);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.transform-scale {
    transition: transform 0.3s;
}

.transform-scale:hover {
    transform: scale(1.05);
}

.navbar-custom .navbar-brand {
    color: white !important;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-blue);
    color: white;
    padding-top: 4rem;
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Features Cards */
.feature-card {
    background: white;
    border: 1px solid transparent;
    /* Cleaner initial state */
    border-radius: 16px;
    /* Slightly softer corners for cards */
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* "Suavidad" requested */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    /* Subtle base shadow */
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgb(0 0 0 / 0.1), 0 10px 20px -5px rgb(0 0 0 / 0.05);
    /* Softer, deeper shadow */
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    transform: scale(1.05);
    z-index: 10;
}

/* Login Page Styles */
.login-page {
    background-color: var(--primary-blue);
    background-image:
        radial-gradient(at 10% 10%, rgba(249, 115, 22, 0.15) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.login-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-blue) 100%);
}

.animate-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cursor-pointer {
    cursor: pointer;
}

.bg-custom-orange {
    background-color: var(--accent-orange);
    color: white;
}

.transition-hover {
    transition: all 0.2s;
}

.transition-hover:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.pricing-card.featured .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.pricing-card.featured .btn-custom-outline {
    width: 100%;
    background-color: var(--accent-orange);
    border: none;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-card .period {
    font-size: 1rem;
    color: #64748b;
}

.pricing-card.featured .period {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer.footer-custom {
    background-color: var(--primary-blue);
    color: #94a3b8;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

footer.footer-custom h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer.footer-custom a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

footer.footer-custom a:hover {
    color: var(--accent-orange);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: white;
    padding: 1.5rem;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-slider {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
}

.logo-slider:before,
.logo-slider:after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
}

.logo-slider:before {
    left: 0;
    background: linear-gradient(to right, var(--bg-cream), transparent);
}

.logo-slider:after {
    right: 0;
    background: linear-gradient(to left, var(--bg-cream), transparent);
}

.logo-slide-track {
    display: inline-block;
    animation: scroll 35s linear infinite;
}

.logo-slide-item {
    display: inline-block;
    margin: 0 40px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.logo-slide-item:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}