/* Header con logos sponsors - Estilo Institucional Ayuntamiento */
.header-with-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 4px solid #005596;
    padding: 20px 48px;
    box-shadow: 0 4px 12px rgba(0, 85, 150, 0.12);
    gap: 32px;
}

.header-logos-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-logo {
    height: 50px;
    object-fit: contain;
    object-position: left;
    transition: transform 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-title-section h1 {
    color: #005596;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-title-section p {
    color: #718096;
    margin: 6px 0 0 0;
    font-size: 15px;
    font-weight: 500;
}

.header-user-section {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-user-text {
    color: #4a5568;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive para tablets */
@media (max-width: 1100px) {
    .header-with-logos {
        padding: 16px 24px;
        gap: 24px;
        flex-wrap: wrap;
    }

    .header-logo {
        height: 45px;
    }

    .header-title-section h1 {
        font-size: 26px;
    }

    .header-title-section p {
        font-size: 14px;
    }
}

/* Responsive para móvil */
@media (max-width: 640px) {
    .header-with-logos {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 16px;
    }

    .header-title-section {
        width: 100%;
        order: 1;
    }

    .header-logos-container {
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
        order: 2;
    }

    .header-logo {
        height: 38px;
    }

    .header-title-section h1 {
        font-size: 22px;
    }

    .header-title-section p {
        font-size: 13px;
    }

    .header-user-section {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        order: 3;
    }

    .header-user-text {
        font-size: 13px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .header-with-logos {
        padding: 12px 10px;
        gap: 12px;
    }

    .header-logo {
        height: 32px;
    }

    .header-title-section h1 {
        font-size: 18px;
    }

    .header-title-section p {
        font-size: 12px;
    }

    .header-user-text {
        font-size: 12px;
    }
}