/* ======== VARIABLES Y ESTILOS GLOBALES ======== */
:root {
    --primary-blue: #2B75A9; /* Azul oscuro del logo */
    --secondary-blue: #4BA4DD; /* Azul claro del logo */
    --dark-bg: #4F4F4F; /* Gris del fondo del logo */
    --dark-text: #333333;
    --light-text: #f8f9fa;
    --background-gray: #f4f7f6;
    --white: #ffffff;
    --header: #e3e6e5;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
    line-height: 1.7;
    background-color: var(--white);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 20px;}
h3 { font-size: 1.6rem; }

section {
    padding: 120px 0;
}

.section-description {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px auto;
    color: #666;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ======== HEADER ======== */
.header {
    background: var(--header);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px; /* Ajuste de tamaño */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* ======== HERO SECTION ======== */
.hero {
    background-color: var(--background-gray);
    min-height: 35vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 850px;
}

.hero h1 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--secondary-blue), var(--primary-blue));
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* ======== ABOUT SECTION ======== */
#about {
    background-color: var(--white);
}

/* ======== BRANDS SECTION ======== */
.brands-section {
    background-color: var(--background-gray);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.brand-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-10px);
}

.card-header {
    padding: 20px;
    color: var(--white);
    text-align: center;
}
.tech-header { background: var(--primary-blue); }
.industry-header { background: var(--dark-bg); }

.card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.card-body p {
    flex-grow: 1;
    color: #555;
    margin-top: 1rem;
}

.brand-logo {
    height: 70px;
    margin-bottom: 20px;
}

/* Placeholder para los logos que faltan */
.logo-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #ccc;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.brand-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--white);
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.tech-button { background-color: var(--primary-blue); }
.tech-button:hover { background-color: #25648f; }

.industry-button { background-color: var(--dark-bg); }
.industry-button:hover { background-color: #3a3a3a; }


/* ======== CONTACT SECTION ======== */
.contact-section {
    background-color: var(--white);
    padding: 80px 0;
    text-align: center;
}

/* ======== FOOTER ======== */
.footer {
    background-color: var(--dark-bg);
    color: #ccc;
    text-align: center;
    padding: 40px 0;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

.footer p {
    font-size: 0.9rem;
    margin: 0;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.1rem; }
    section { padding: 150px 0; }

    .navbar { flex-direction: column; }
    .logo { margin-bottom: 15px; }
    .nav-links li { margin: 0 15px; }
}