/* ========================================= */
/* Estilos Generales y Tipografía           */
/* ========================================= */
:root {
    --primary-color: #004aad;
    --secondary-color: #ff6600;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --background-light: #f4f7f9;
    --background-dark: #2c3e50;
    --card-bg: #fff;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 5rem;
}

h1, h2, h3, h4 {
    color: var(--primary-color);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ========================================= */
/* Componentes Comunes                       */
/* ========================================= */
.cta-button {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-cta:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ========================================= */
/* Barra de Navegación                       */
/* ========================================= */
.header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center; /* ESTA LÍNEA CENTRA LOS ENLACES */
}

.main-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: var(--primary-color);
}

.secondary-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--secondary-color);
}

/* ========================================= */
/* Secciones de Contenido                    */
/* ========================================= */
.hero-banner {
    background-color: var(--background-light);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-banner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.hero-banner p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #666;
    margin-bottom: 2.5rem;
}

.quienes-somos-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.quienes-somos-content .image-content {
    flex: 1;
}

.quienes-somos-content .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quienes-somos-content .text-content {
    flex: 1;
}

.quienes-somos-content ul {
    list-style: none;
    padding: 0;
}

.quienes-somos-content li {
    margin-bottom: 0.5rem;
}

.quienes-somos-content .fas {
    color: green;
    margin-right: 10px;
}

/* Servicios y Productos */
.services-grid, .products-grid, .soluciones-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-card, .product-card, .solucion-card, .blog-post {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover, .product-card:hover, .solucion-card:hover, .blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.service-card .fas, .product-card img, .solucion-card .fas {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card img, .blog-post img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.learn-more, .product-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s;
}

.learn-more:hover, .product-link:hover {
    color: #e65c00;
}

.blog-post h3 {
    margin-top: 0;
}

.post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Testimonios */
.testimonials {
    text-align: center;
}

.testimonial-card {
    font-style: italic;
    background-color: #f9f9f9;
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    margin: 2rem auto;
    max-width: 800px;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.client-logos img {
    max-height: 50px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.client-logos img:hover {
    opacity: 1;
}

/* Contacto */
.contact-section {
    background-color: #fff;
    padding: 4rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info .fas {
    color: var(--secondary-color);
    margin-right: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================= */
/* Pie de página                             */
/* ========================================= */
.footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 3rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* ========================================= */
/* Responsividad                             */
/* ========================================= */
@media (max-width: 900px) {
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .main-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .quienes-somos-content {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Estilos para la página de equipo */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member-card h3 {
    margin: 0;
}

.team-member-card .position {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.centered-title {
    text-align: center;
}