:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --text-color: #333;
    --light-text-color: #777;
    --background-color: #f8f9fa;
    --white: #fff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Base styles */
body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color);
}

.button-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.button-primary:hover {
    background-color: var(--secondary-color);
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
.main-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilo para el logo */
.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Tamaño del logo en escritorio */
    max-width: 100%;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    /* Aquí es donde cambiamos la imagen de fondo */
    background: url('images/banner-fondo.jpg') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 8rem 0;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Ajusté la opacidad a 0.4 para que el texto sea más legible */
    z-index: -1;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: #f0f2f5;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 250px;
    /*height: 80px;*/
    margin-bottom: 1rem;
}

/* Clientes & Logos */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.logos-grid img {
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-grid img:hover {
    filter: none;
    opacity: 1;
}

/* Team Section */
.team-grid {
    display: flex;
    flex-wrap: nowrap; /* Impide que se salten de línea */
    overflow-x: auto; /* Habilita el scroll horizontal */
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.team-card {
    flex: 0 0 300px; /* Ancho fijo para cada tarjeta */
    margin-right: 2rem;
    text-align: center;
    scroll-snap-align: center;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.team-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--light-text-color);
    font-style: italic;
}

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--white);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 1rem;
    }

    .nav-links li {
        margin-left: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .team-grid {
        justify-content: flex-start;
        padding-bottom: 1rem;
    }
}