/* Estilos Generales */
body { 
    font-family: 'Lucida Sans Unicode', sans-serif;
    margin: 0;
    color: #333; 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 50px 20px; 
}

/* Cabecera y Logo */
header { 
    background: #fff; 
    padding: 20px; 
    border-bottom: 1px solid #eee; 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center; 
}

.logo-icon {
    height: 35px; 
    width: auto;  
    margin-right: 12px; 
}

.logo-hydro {
    font-family: 'Times New Roman', Times, serif; 
    font-style: italic;
    font-weight: bold;
    font-size: 1.8rem; 
    color: #000; 
}

.logo-aima {
    font-family: 'Lucida Sans Unicode', sans-serif;
    color: #166EAC;
    font-weight: bold;
    font-style: italic;
    font-size: 1.5rem;
    margin-left: 4px; 
}

/* Seccion Principal (HERO) */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    background-color: #002544; /* Color de respaldo oscuro */
    padding-top: 80px;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url('Imagenes/TPA.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; 
}

.hero h1 {
    color: white;
}

.btn-primary { 
    background: #0056b3; 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold;
}

/* Tarjeta de Soluciones */
.grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-top: 30px; 
}

.card { 
    padding: 20px; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    transition: 0.3s; 
}

.card:hover { 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

/* Marcas y Catalogo */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 50px;
}

.marcas-grid img {
    max-width: 160px;
    height: auto;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marcas-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Estilo especial para la marca Sulzer */
.marcas-grid img.marca-destacada {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.15);
}

.marcas-grid img.marca-destacada:hover {
    transform: scale(1.25);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #0056b3;
    color: #0056b3;
    background-color: transparent;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #0056b3;
    color: white;
}

.categoria-titulo {
    text-align: center;
    color: #166EAC;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 60px;
    margin-bottom: 30px;
}

/* Moviles */
@media (max-width: 768px) {
    header nav.container {
        flex-direction: column; 
        gap: 15px; 
    }

    .hero h1 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr; 
    }
    
    .marcas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .marcas-grid img {
        max-width: 120px;
    }

    .container {
        padding: 30px 15px;
    }
}