:root {
    --primary: #1a56db;
    --primary-dark: #0d3d8c;
    --secondary: #e53e3e;
    --accent: #38b2ac;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: #f9fafb;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 60px;
    margin-right: 10px;
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-link:not(.active):hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 60%;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.9) 0%, rgba(13, 61, 140, 0.9) 100%), url('https://images.unsplash.com/photo-1579154343071-9d7f9d2b9b0a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Feature Cards */
.feature-cards {
    padding: 5rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: none;
    text-align: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--primary);
    z-index: -1;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover:before {
    height: 100%;
}

.feature-card:hover .icon {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.feature-card:hover .card-title,
.feature-card:hover p {
    color: white;
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(26, 86, 219, 0.1);
    color: var(--primary);
    font-size: 2rem;
    transition: var(--transition);
}

.feature-card .card-title {
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-card p {
    color: var(--gray);
    transition: var(--transition);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.about-image:hover {
    transform: rotate(0);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.highlight {
    background: linear-gradient(120deg, rgba(26, 86, 219, 0.1) 0%, rgba(26, 86, 219, 0) 100%);
    padding: 0.5rem 1rem;
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
}

/* Partners Section */
.partners-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f0f7ff 0%, #ffffff 100%);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.partner-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.partner-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: -1;
    transition: var(--transition);
}

.partner-card:hover:before {
    height: 100%;
}

.partner-logo {
    padding: 30px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: rgba(26, 86, 219, 0.05);
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    background: transparent;
}

.partner-logo img {
    max-width: 150px;
    max-height: 70px;
    filter: grayscale(100%);
    transition: var(--transition);
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0) brightness(10);
}

.partner-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.partner-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.partner-card:hover .partner-info h3 {
    color: white;
}

.partner-info p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.partner-card:hover .partner-info p {
    color: rgba(255, 255, 255, 0.9);
}

.partner-badge {
    display: inline-block;
    background: rgba(26, 86, 219, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.partner-card:hover .partner-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

@media (max-width: 992px) {
    .partner-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .partner-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-section:after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-links h5 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .navbar-brand img {
        height: 50px;
    }

    .about-image {
        margin-bottom: 2rem;
    }
}

/* Auto-hide header styles */
.auto-hide-header {
    background: linear-gradient(135deg, #1a56db 0%, #0d3d8c 100%);
    color: white;
    padding: 1.25rem 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auto-hide-header.hide {
    transform: translateY(-100%);
}

.header-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
}

.header-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.header-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header-value {
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
    line-height: 1.4;
}

.header-value a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.header-value a:not(.btn):hover {
    opacity: 0.8;
    text-decoration: underline;
}

.header-value .btn-primary {
    margin-top: 0.25rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-value .btn-primary:hover {
    background: white;
    color: #1a56db;
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1200px) {
    .header-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .auto-hide-header {
        padding: 1rem 0;
    }

    .header-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .header-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .header-value {
        font-size: 0.9rem;
    }

    .header-value .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
