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

/* BASE */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7fb;
    color: #1a2a3a;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* LOGO */
.logo img {
    height: 40px;
}

/* NAV */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #4a5b6e;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: #2c3e50;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* HERO FLEX (PRO) */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-text p {
    color: #4a5b6e;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
}

/* SECCIONES */
.section {
    padding: 60px 0;
}

.section.light {
    background: #ffffff;
    border-radius: 20px;
    margin: 20px 0;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CARDS */
.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

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

/* IMAGEN RESPONSIVE */
.img-responsive {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
    display: block;
}

/* BOTÓN */
.btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background: #2c3e50;
    color: white;
    border-radius: 25px;
    text-decoration: none;
}

/* FORM */
form {
    max-width: 600px;
    margin: auto;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        justify-content: center;
    }

    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .logo img {
        height: 30px;
    }

    .img-responsive {
        max-width: 100%;
        padding: 0 10px;
    }
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-container span {
    font-weight: 600;
    font-size: 18px;
    color: #1a2a3a;
}
.logo-container img {
    height: 200px; /* cambia este valor */
    width: auto;
}

/* BANNER FULL WIDTH */
.banner {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.banner-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

@media (max-width: 768px) {
    .banner-item img {
        height: 180px;
    }
}


/* ======================================== */
/* GRUPO EMPRESARIAL - LOGOS 333x283 px     */
/* ======================================== */

/* Contenedor de los 3 logos */
.grupo-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

/* Cada cuadrado blanco - ajustado para logos de 333x283 */
.logo-grupo-item {
    background: #ffffff;
    width: 360px;      /* Un poco más grande que el logo (333) */
    height: 310px;     /* Un poco más grande que el logo (283) */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
}

.logo-grupo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

/* La imagen del logo - mantiene su proporción original */
.logo-grupo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .grupo-logos {
        gap: 20px;
    }
    
    .logo-grupo-item {
        width: 280px;      /* Escalado proporcional para móvil */
        height: 240px;     /* Escalado proporcional para móvil */
        padding: 15px;
    }
}
