:root {
    --violeta: #6f42c1;
    --violeta-claro: #9966cc;
    --verde: #28a745;
    --azul: #0d6efd;
    --azul-claro: #4da3ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--violeta) 0%, var(--azul) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s;
    margin: 0 5px;
}

.nav-link:hover {
    color: var(--verde) !important;
}

/* Hero Section */
.hero {
    background-image: url('../images/fondo2_bandera.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.btn-primary-custom {
    background-color: var(--verde);
    border-color: var(--verde);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.btn-primary-custom:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.5rem;
    color: var(--violeta);
    margin-bottom: 50px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--violeta), var(--verde), var(--azul));
    border-radius: 2px;
}

/* Sección Nosotros */
#nosotros {
    background: #f8f9fa;
}

.nosotros-content {
    display: block;
}

.nosotros-text h3 {
    color: var(--azul);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.nosotros-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
}

.nosotros-icon {
    font-size: 5rem;
    color: var(--verde);
    margin-bottom: 20px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border-left: 5px solid var(--violeta);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-box i {
    color: var(--verde);
    font-size: 2rem;
    margin-right: 15px;
}

/* Sección Clientes */
#clientes {
    background: white;
}

.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cliente-card {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.05), rgba(45, 174, 253, 0.05));
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cliente-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--violeta), var(--verde), var(--azul));
}

.cliente-card:hover {
    border-color: var(--violeta);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.2);
}

.cliente-card i {
    font-size: 3rem;
    color: var(--azul);
    margin-bottom: 15px;
}

.cliente-card img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.cliente-card h4 {
    color: var(--violeta);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--violeta) 0%, var(--azul) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    margin: 5px 0;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background-color: var(--verde);
    border-radius: 50%;
    line-height: 45px;
    color: white;
    margin: 0 10px;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background-color: white;
    color: var(--violeta);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nosotros-content {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    .clientes-grid {
        grid-template-columns: 1fr;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

section {
    animation: fadeInUp 0.6s ease-out;
}
